ZenphotoCMS Forum
Shopping cart solution (that worked for me) - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Shopping cart solution (that worked for me) (/thread-6867.html)



Shopping cart solution (that worked for me) - amyg - 2010-04-04

Hey everyone,
I've been struggling to add a shopping cart to a site for awhile -I'm sure I'm not the only one.
I just managed to integrate FoxyCart. (www.foxycart.com)
I'm always hesitant to become dependent on hosted services - but this one is making life much easier right now.
Thought I'd share this find in case it can help someone else.
Just follow the instructions on their site.
I used a version of following code on my image.php file

`




Shopping cart solution (that worked for me) - amyg - 2010-04-04

You'll need to call the foxycart js in no-conflict mode like: (or it will conflict with some zenphoto scripts)

`

jQuery.noConflict();

`




Shopping cart solution (that worked for me) - acrylian - 2010-04-05

How about making this a plugin?




Shopping cart solution (that worked for me) - erika_conn - 2010-04-05

Yes, please, make that a plugin.




Shopping cart solution (that worked for me) - amyg - 2010-04-05

It's SO easy to configure - I'm not up to the task of creating a plugin - but I'll tell you how to add set it up.

First - you have to go foxycart.com and create an account. it's free for development - then $19.99 a month (or something like that)

Once you configure your account - they'll give you links to the scripts which you'll insert into the head of your pages. (image.php and any other pages you want shopping cart info on - ie a mini cart in your sidebar on the album page etc)

`

`
Then on your image.php file: Something like this

`




Shopping cart solution (that worked for me) - amyg - 2010-04-05

OH - and you can probably ignore my earlier post about the no-conflict...

I did remove any calls to 'edit in place' on my pages which solved conflicts that I was having - it that's important to you, you'll need to work out a solution.

example:

this
``

instead of this;
``