Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Addons (http://www.pixelpost.org/forum/forumdisplay.php?f=13)
-   -   Addon: Simple Shopping Cart v1.0 - for pixelpost v1.6 (http://www.pixelpost.org/forum/showthread.php?t=6618)

tomyeah 05-16-2007 10:32 PM

Addon: Simple Shopping Cart v1.1 - for pixelpost v1.6
 
http://tomyeah.com/images/simple_sho...art_screen.jpg

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

GeoS 05-19-2007 02:40 PM

It can be very useful addon for some of our users :D Good work.

tomyeah 05-19-2007 04:02 PM

just updated and simplyfied the addon, would be good if somebody could test it on their server.

regards, tom.

greentraveler 05-20-2007 06:02 PM

Another sweet add-on, Tom. :D

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.

tomyeah 05-22-2007 11:13 AM

@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.

greentraveler 05-22-2007 05:17 PM

Tom,

Thanks...that fixed it right away.

Again, major props for your recent work!!!

SnowScan 06-03-2007 07:39 PM

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

dshooter 02-14-2008 11:38 AM

Hi Tomyeah,

Does this work with the latest version 1.7.1 ?

explorerpro 09-25-2008 08:16 AM

when you update for pp v1.7.1? Thank you

OjiBraids 10-02-2008 01:25 AM

I'm curious as well, if this works w/ the v1.7.1
Please let us know :o)


All times are GMT. The time now is 08:49 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.