Add to cart HTML link adds only 1 item

  • Posts: 1056
  • Thank you received: 11
  • Hikashop Business
6 years 2 months ago #297301

-- 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

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
6 years 2 months ago #297302

Hi,

Use that URL instead:

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.

  • Posts: 1056
  • Thank you received: 11
  • Hikashop Business
4 years 9 months ago #315512

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

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
4 years 9 months ago #315524

Hi,

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.

  • Posts: 1056
  • Thank you received: 11
  • Hikashop Business
4 years 9 months ago #315527

Like {varquantity}?
Can you please give me an example?

Please Log in or Create an account to join the conversation.

  • Posts: 1056
  • Thank you received: 11
  • Hikashop Business
4 years 9 months ago #315535

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

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
4 years 9 months ago #315541

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.

Please Log in or Create an account to join the conversation.

  • Posts: 1056
  • Thank you received: 11
  • Hikashop Business
4 years 9 months ago #315543


No I dont think its that

Attachments:
Last edit: 4 years 9 months ago by verzevoul.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
4 years 9 months ago #315546

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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum