Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Methods of adding products to cart, from outside cs-cart Rate Topic   - - - - -

 
  • YouRockDaddy
  • Senior Member
  • Members
  • Join Date: 11-Apr 06
  • 319 posts

Posted 21 October 2009 - 06:03 PM #1

I would like the know the best method of adding products directly to the cart from outside cs-cart, like an email or another website.

Can it be done via a URL, or does it need to be a form post. What info is required, product_id, quantity?

Example of how I might use this is, to send an email with product info and buy button, that would add a product directly to the cart.

Is there a way to add more than one product at a time, with a single button.

 
  • YouRockDaddy
  • Senior Member
  • Members
  • Join Date: 11-Apr 06
  • 319 posts

Posted 27 October 2009 - 10:25 PM #2

I'm sure someone has done this, right?

Adding a product directly to cart with a URL? Or a from a form?

I have the product_id, and quantity, Isn't that enough to add a product(s) to the cart?

 
  • Quaro
  • Junior Member
  • Members
  • Join Date: 13-Nov 09
  • 1 posts

Posted 13 November 2009 - 06:58 PM #3

I'm quite interested in this too, has anyone done it? I guess I'm just going to downoad the trial and poke around to see if it's possible?

 
  • YouRockDaddy
  • Senior Member
  • Members
  • Join Date: 11-Apr 06
  • 319 posts

Posted 13 November 2009 - 08:36 PM #4

I just wrote a php page that handles the reformatting or the URL for cs-cart.

So I use it like /mypage.php?pid=1234_1,1266_2

where pid=[product_id]_[quantity],[product_id]_[quantity]

the mypage.php then formats a URL for adding the product(s) to the cart.

It seems to be working fine and is currently in testing with the client I wrote it for.