-- 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: 
	
<!--//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //-->
<html>
<head>

...

<!-- put the next line to your other style sheet definitions  //-->
<link rel="stylesheet" href="shopping/style.css" type="text/css" />
...

</head>
<body>

<!-- the shopping cart tag should be on the very top of your page, its floating in the middle anyways //-->
<SHOPPING_CART>

...

<!-- wrap this div around the line with <IMAGE_NAME> //-->
<div id="slidingProduct<IMAGE_ID>" class="sliding_product">
		<!-- your line with <a> ... <IMAGE_NAME> ... </a> tag inside here //-->
</div>

...

<!-- this is the button that adds the currently displayed image to your basket //-->
<a href="#" onclick="addToBasket(<IMAGE_ID>);return false;"><img src="shopping/images/print.jpg" alt="Add to Shopping Cart" /></a>
<!-- this is the button that shows the shopping cart it can be somewhere on the bottom of the page, since its fixed top right anyways //-->
<a id="show_button" href="#" onmousedown="show_shop(); return false;"><img src="shopping/images/ico_cart_black.gif" alt="Open Shopping Cart"/></a>
			
...
			
</body>
</html>
<!--//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //-->

If you have any questions or comments, feel free to email me at: harmonious ( t ) tomyeah ( dt ) com

*** Version History ***

	1.1 	Removed the single php files, integrated the whole code into the addon file.
		No more need to insert javascript and the cart-button manually.
	
	1.0	First release