Different Add to Cart Buttons, different behaviors ?

  • Posts: 45
  • Thank you received: 3
  • Hikashop Business
7 years 10 months ago #273462

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.3
-- PHP version -- : 7.0.11

Hello

When I have a Product with variants and I click "add to cart" - it shows me a nice message (I guess this is the Ajax). The "Add to Cart" is an <a href with the classes "hikabtn" + "hikacart"

When I have no Variants - the "Add to Cart" is a input button with the classes "button" + "hikashop_cart_input_button"

I found the setting "Display view files" and see that in the variants a "add_to_cart_ajax.php" is loaded, in the other not.

but i really don't know where/how to add thes file, that the message is also shown on normal products

for any tipp I'm very thankful
Maya




After Update to Hika 3.1.1 I deleted all the html overrides and puted my changes in the new files; so it should not be a problem of the overrides... hopefully

Attachments:

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 10 months ago #273464

Hi,

Check that the "add to cart legacy" setting is turned off. Otherwise, you should see the add to cart buttons with the classes "button" + "hikashop_cart_input_button" and you don't want that.

Besides that, I can only think of a view override from an old version.
You can see on the screenshot without the variants that it is using the view file quantity_legacy.php and that is only the case when the legacy option is turned on, or if you have a view override from an old version.

The following user(s) said Thank You: bytekultur

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

  • Posts: 45
  • Thank you received: 3
  • Hikashop Business
7 years 10 months ago #273595

Thank you! That was the solution!

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

Time to create page: 0.062 seconds
Powered by Kunena Forum