Member
Member
amyg   04-04-2010, 22:55
#1

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

`

Member
Member
amyg   04-04-2010, 23:45
#2

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

`

jQuery.noConflict();

`

Administrator
Administrator
acrylian   05-04-2010, 08:16
#3

How about making this a plugin?

Member
Member
erika_conn   05-04-2010, 11:04
#4

Yes, please, make that a plugin.

Member
Member
amyg   05-04-2010, 20:37
#5

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

`

Member
Member
amyg   05-04-2010, 20:40
#6

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;
``

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.