'add to cart' link

26.07.2012 10:47
#1
VasisWeb
Joomshopping forum user no avatar
Name: Martijn
14.11.2011
Сообщения: 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
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25854
Quote
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
#3
VasisWeb
Joomshopping forum user no avatar
Name: Martijn
14.11.2011
Сообщения: 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


Последнее изменение: 26.07.2012 13:49
 
26.07.2012 14:13
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25854
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
Сообщения: 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!


Последнее изменение: 30.07.2012 20:32
 
18.01.2014 20:16
#6
farhang_roosta
Joomshopping forum user no avatar
Name: farhang
19.02.2012
Сообщения: 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


Последнее изменение: 18.01.2014 23:05
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.