'add to cart' link

26.07.2012 10:47
#1
VasisWeb
Joomshopping forum user no avatar
Name: Martijn
14.11.2011
Posts: 4
Quote
'add to cart' link

Hello,

What is the best way to add a product to the cart with a link?

For example if I use www.mysite.com/cart?add&product_id=1&amount=2
Does it add 2 products with product_id 1 to the cart?

What is the syntax for it?

Regards,
Martijn


Joomla: 2.5.6
JoomShopping: 3.8.0
PHP: 5.2 (upgrading to 5.3)
MySQL: 4.1.22
 
26.07.2012 11:51
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16517
Quote
Aw: 'add to cart' link

www.mysite.com/cart?add&product_id=1&category_id=1&quantity=2


Letzte Änderung: 26.07.2012 11:51
 
26.07.2012 13:44
#3
VasisWeb
Joomshopping forum user no avatar
Name: Martijn
14.11.2011
Posts: 4
Quote
Aw: 'add to cart' link

Tried that already, but returns a 404... therefore I'dd asked the forum :-)

edit: product_id and category_id are right. I tried with an existing product


Letzte Änderung: 26.07.2012 13:49
 
26.07.2012 14:13
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16517
Quote
Aw: 'add to cart' link

www.mysite.com/cart - exist ?

 
30.07.2012 20:31
#5
VasisWeb
Joomshopping forum user no avatar
Name: Martijn
14.11.2011
Posts: 4
Quote
Aw: 'add to cart' link

Doesn't exist.

It's a mulitlingual site (ES/EN/NL) but still in development (ES only)

This results in '/es/' being added tot the URI.
The page where the cart is displayed is mysite.com/es/ver-cesta

Therefore I tried my**.com/es/ver-cesta/add&product_id=1&category_id=2&quantity=2 this works. Exept for the attributes selectable, but I can figure them out also :-)

Thanks!


Letzte Änderung: 30.07.2012 20:32
 
18.01.2014 20:16
#6
farhang_roosta
Joomshopping forum user no avatar
Name: farhang
19.02.2012
Posts: 1
Quote
Aw: 'add to cart' link

Try this:
http://yourdomain/index.php?option=com_jshopping&controller=cart&task=add&product_id=1&category_id=1&quantity=6


Letzte Änderung: 18.01.2014 23:05
 
Copyrights MAXXmarketing GmbH. All Rights Reserved