- Posts: 1184
- Thank you received: 13
Add to cart HTML link adds only 1 item
8 years 1 month ago #297301
by verzevoul
Add to cart HTML link adds only 1 item was created by verzevoul
-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.11
-- PHP version -- : 7.1
Hi!
I ve been using with no problems in previous version of hikashop, this url Add to cart HTML link
'' www.XXXXXX.gr/index.php?option=com_hikas...&cid=7107&Itemid=262 ''
and every time i hit this url I get a new item in my cart.
If i hit the same item it keeps adding quantity.
From this update , or maybe previous it doest work.
It adds anly 1 item.
How can I use a url to add as many items as I want.
Thank you in advance
-- Joomla version -- : 3.8.11
-- PHP version -- : 7.1
Hi!
I ve been using with no problems in previous version of hikashop, this url Add to cart HTML link
'' www.XXXXXX.gr/index.php?option=com_hikas...&cid=7107&Itemid=262 ''
and every time i hit this url I get a new item in my cart.
If i hit the same item it keeps adding quantity.
From this update , or maybe previous it doest work.
It adds anly 1 item.
How can I use a url to add as many items as I want.
Thank you in advance
Please Log in or Create an account to join the conversation.
8 years 1 month ago #297302
by nicolas
Replied by nicolas on topic Add to cart HTML link adds only 1 item
Hi,
Use that URL instead:
Use that URL instead:
Code:
https://www.xxxxxx.gr/index.php?option=com_hikashop&ctrl=product&task=updatecart&qty=1&cid=7107&add=1&Itemid=262
Please Log in or Create an account to join the conversation.
6 years 7 months ago #315512
by verzevoul
Replied by verzevoul on topic Add to cart HTML link adds only 1 item
Hello!
Is there a way to have a variable in this link like
www.xxxxxx.gr/index.php?option=com_hikas...107&add=1&Itemid=262
Is there a way to have a variable in this link like
www.xxxxxx.gr/index.php?option=com_hikas...107&add=1&Itemid=262
Please Log in or Create an account to join the conversation.
6 years 7 months ago #315524
by nicolas
Replied by nicolas on topic Add to cart HTML link adds only 1 item
Hi,
Sure. Just change the value of that qty parameter as you need, that's not a problem.
Sure. Just change the value of that qty parameter as you need, that's not a problem.
Please Log in or Create an account to join the conversation.
6 years 7 months ago #315527
by verzevoul
Replied by verzevoul on topic Add to cart HTML link adds only 1 item
Like {varquantity}?
Can you please give me an example?
Can you please give me an example?
Please Log in or Create an account to join the conversation.
6 years 7 months ago #315535
by verzevoul
Replied by verzevoul on topic Add to cart HTML link adds only 1 item
I tried
www.demo.webintel.gr/reservemyboat/index...ty=18&cid=2290&add=1
As you can see in &qty=18 but only 1 item is added in the cart.
Also what i was asking befre is if I can use the link as below
www.demo.webintel.gr/reservemyboat/index...tems}&cid=2290&add=1
As you can see in &qty=18 but only 1 item is added in the cart.
Also what i was asking befre is if I can use the link as below
www.demo.webintel.gr/reservemyboat/index...tems}&cid=2290&add=1
Please Log in or Create an account to join the conversation.
6 years 7 months ago #315541
by nicolas
Replied by nicolas on topic Add to cart HTML link adds only 1 item
Hi,
That's because you have some restrictions which limits the add to cart of that product to 1 element.
It's probably the "quantity per order" setting of that product which has a max of 1. So please check the settings of that product.
That's because you have some restrictions which limits the add to cart of that product to 1 element.
It's probably the "quantity per order" setting of that product which has a max of 1. So please check the settings of that product.
Please Log in or Create an account to join the conversation.
6 years 7 months ago - 6 years 7 months ago #315543
by verzevoul
Replied by verzevoul on topic Add to cart HTML link adds only 1 item
Last edit: 6 years 7 months ago by verzevoul.
Please Log in or Create an account to join the conversation.
6 years 7 months ago #315546
by nicolas
Replied by nicolas on topic Add to cart HTML link adds only 1 item
Hi,
I can assure you that it's the case.
Click twice on your add to cart link and you'll see the second time that error message:
"Too much quantity selected for product Sampania"
Note that if you have variants in the product, then it could be a limit in the variant.
Note also that it could come from a limit configured in the Products>Limits menu.
I can assure you that it's the case.
Click twice on your add to cart link and you'll see the second time that error message:
"Too much quantity selected for product Sampania"
Note that if you have variants in the product, then it could be a limit in the variant.
Note also that it could come from a limit configured in the Products>Limits menu.
Please Log in or Create an account to join the conversation.
Time to create page: 0.284 seconds