Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 05-16-2007, 10:32 PM
tomyeah's Avatar
tomyeah Offline
pp veteran
 
Join Date: Aug 2006
Posts: 74
Send a message via ICQ to tomyeah
Addon: Simple Shopping Cart v1.1 - for pixelpost v1.6



Code:
-- Simple Shopping Cart v1.1 -- Addon for pixelpost v1.6 --


Description:
	
	This is a shopping system for everyone. No need for paypal, no need for users to register or login.
	
	This Addon gives you a very simple implementation of a Shopping Cart in your pixelpost. It works as a floating menu above your recent theme.
	
	You can collect images all the way through your blog, and even leave the page for some time (just don't quit the browser completely). It identifies the viewer with the session ID and his IP adress.
	
	Add and Delete pics as you like. Next Press the "Checkout" button and Last the "Send Order" button. Now some new email window on your local mail client should open with all necessary contents in it.
	
	Right after the basket gets deleted automatically. The basic AJAX stuff is from http://www.dhtmlgoodies.com/index.html?whichScript=fly-to-basket .
	

What you got to do:

	Open the simple_shopping_cart.php and edit:

		Line 7: Price per Picture
		Line 8: insert your email address for print orders here
		Line 9: This is the message that appears in the email under the price calculations.


Installation:

	Copy the simple_shopping_cart.php from this "addons" folder into the "addons" folder of your pixelpost base directory.
	
	Copy the "shopping" folder directly in your basedirectory, just next to "addons", "admin", "doc", "images" ....
	
	Go to the "cache" folder inside of the "shopping" folder ( like shopping/cache ) on your server and CHMOD it to 777
	
	Next you got to insert 5 lines into your "image_template.html". Don't be afraid, its easier than you think:
... more in the included readme.txt

Download: simple_shopping_cart_v1.1.zip (20KB) Last Update: 19.5.2007

Last edited by tomyeah; 05-19-2007 at 03:56 PM.
Reply With Quote
  #2  
Old 05-19-2007, 02:40 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
It can be very useful addon for some of our users Good work.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #3  
Old 05-19-2007, 04:02 PM
tomyeah's Avatar
tomyeah Offline
pp veteran
 
Join Date: Aug 2006
Posts: 74
Send a message via ICQ to tomyeah
just updated and simplyfied the addon, would be good if somebody could test it on their server.

regards, tom.
Reply With Quote
  #4  
Old 05-20-2007, 06:02 PM
greentraveler's Avatar
greentraveler Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 106
Another sweet add-on, Tom.

Any way to adjust the "Shopping Cart" button's position on the page? I'd like it right next to the "Buy This Print" button but can't figure out how to swing that.
__________________
wwp
Reply With Quote
  #5  
Old 05-22-2007, 11:13 AM
tomyeah's Avatar
tomyeah Offline
pp veteran
 
Join Date: Aug 2006
Posts: 74
Send a message via ICQ to tomyeah
@greentraveler: just look into the shopping/style.css and look for #show_button (line 14)
position: fixed; // makes it floating fixed on some position on the screen, no matter if u scroll

just delete all inside #show_button { ... } and it should just work as another graphics.


regards, tom.
Reply With Quote
  #6  
Old 05-22-2007, 05:17 PM
greentraveler's Avatar
greentraveler Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 106
Tom,

Thanks...that fixed it right away.

Again, major props for your recent work!!!
__________________
wwp

Last edited by greentraveler; 05-24-2007 at 04:18 AM.
Reply With Quote
  #7  
Old 06-03-2007, 07:39 PM
SnowScan Offline
pp regular
 
Join Date: Aug 2005
Posts: 42
Hi Tomyeah,

I tried to install it my site (now using your new template )
However it does not work for me.
Could I ask you to have a look at the site for any issues?

Thanks for some great work
__________________
Regards,
Peter Hestbæk
www.snowscan.dk
Reply With Quote
  #8  
Old 02-14-2008, 11:38 AM
dshooter Offline
pp regular
 
Join Date: Dec 2005
Location: Singapore
Posts: 29
Hi Tomyeah,

Does this work with the latest version 1.7.1 ?
Reply With Quote
  #9  
Old 09-25-2008, 08:16 AM
explorerpro's Avatar
explorerpro Offline
forum loafer
 
Join Date: Sep 2008
Posts: 1
when you update for pp v1.7.1? Thank you
Reply With Quote
  #10  
Old 10-02-2008, 01:25 AM
OjiBraids Offline
forum loafer
 
Join Date: May 2005
Location: Toronto, Ontario
Posts: 3
I'm curious as well, if this works w/ the v1.7.1
Please let us know )
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 12:20 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs