View after update

  • Posts: 216
  • Thank you received: 10
  • Hikashop Multisite
7 years 8 months ago #279254

-- HikaShop version -- : 3.2
-- Joomla version -- : 3.8
-- PHP version -- : 7

Hi,

In Hikashop 2.6 i've had this page: www.banketbakkerijdevlaam.nl/bestelgebak
I added to this page:

if(in_array($this->element->category_id,array('197'))) {
    $this->config->set('show_quantity_field',2);
}
And it worked fine.

Now i have updated to Hikashop 3.2.0, removed the old overrides and created new ones.
Next to the add to cart button is also a quantity i don't want (see attachment) and the button doesn't seem to work.
Can you tell me how to fix this?

Thanks in advance
Jeroen

Attachments:

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

  • Posts: 83935
  • Thank you received: 13593
  • MODERATOR
7 years 8 months ago #279257

Hi,

Did you try changing the "add to cart legacy" setting of the HikaShop configuration ?
That might help.
Also, for the display of the quantity, you now have a "quantity input method" to configure how the quantity field displays.

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

  • Posts: 216
  • Thank you received: 10
  • Hikashop Multisite
7 years 8 months ago #279292

Thank you,

When i set add to cart to legacy it works.

Will it be also possible to set the legacy mode only for a specific category like?

if(in_array($this->element->category_id,array('38'))) {
$this->config->set('show_quantity_field',2);
}

So we can use the nice ajax way at the other pages?

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

  • Posts: 83935
  • Thank you received: 13593
  • MODERATOR
7 years 8 months ago #279299

Hi,

You can do like that:
if(in_array($this->element->category_id,array('38'))) {
$this->config->set('add_to_cart_legacy',1);
}

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

  • Posts: 216
  • Thank you received: 10
  • Hikashop Multisite
7 years 8 months ago #279525

The view is ok now.
But the order-button at the bottom don't work.
see: www.banketbakkerijdevlaam.nl/2017/bestelgebak

It only reloads the page but don't add products to cart.
Thanks for your help.

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

  • Posts: 83935
  • Thank you received: 13593
  • MODERATOR
7 years 8 months ago #279554

Hi,

There is a javascript error. That's why it does that.
Activate the "add to cart legacy" setting of the HikaShop configuration and it should work.

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

  • Posts: 216
  • Thank you received: 10
  • Hikashop Multisite
7 years 8 months ago #279592

ok thanks anyway :)

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

Time to create page: 0.065 seconds
Powered by Kunena Forum