26.07.2012 10:47
|
|
VasisWeb
Name: Martijn
14.11.2011
Сообщения: 4
|
'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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 25854
|
Aw: 'add to cart' link
www.mysite.com/cart?add&product_id=1&category_id=1&quantity=2
Последнее изменение: 26.07.2012 11:51
|
|
26.07.2012 13:44
|
|
VasisWeb
Name: Martijn
14.11.2011
Сообщения: 4
|
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
Последнее изменение: 26.07.2012 13:49
|
|
26.07.2012 14:13
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 25854
|
Aw: 'add to cart' link
www.mysite.com/cart - exist ?
|
|
30.07.2012 20:31
|
|
VasisWeb
Name: Martijn
14.11.2011
Сообщения: 4
|
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!
Последнее изменение: 30.07.2012 20:32
|
|
18.01.2014 20:16
|
|
farhang_roosta
Name: farhang
19.02.2012
Сообщения: 1
|
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
Последнее изменение: 18.01.2014 23:05
|
|