Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to build a URL that adds a product to the Cart?


com2

Recommended Posts

Posted

I would like to make some links on a webpage that directly adds 1 product with some attributes. I tried the following on my local server, but I do something wrong:

 

=21&id[4]=1&id[5]=21&id[8]=26&id[7]=29&products_id=28]http://shop.c2/product_info.php?products_i...&products_id=28

 

 

I get these warnings /errors:

Warning: Wrong datatype for second argument in call to in_array in c:my documentscomunica2www.comunica2.netshopincludesboxescategories.php on line 31

 

Warning: Wrong datatype for second argument in call to in_array in c:my documentscomunica2www.comunica2.netshopincludesboxescategories.php on line 38

 

How would I do it right? I tried already:

 

http://shop.c2/product_info.php?products_i...oducts_id=28%20

 

which has the same result.

Posted

look at how the BUY NOW button is made. It does exactly what you need.

 

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

What version are you talking about? I don't see it in mine (2.2-CVS). If it is in my version, where should I see such button?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...