Add to cart popup not displaying

  • Posts: 123
  • Thank you received: 1
  • Hikashop Business
2 months 2 days ago #316879

-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.3.9
-- Browser(s) name and version -- : Firefox and Chrome
-- Error-message(debug-mod must be tuned on) -- : Browser console log: ReferenceError: hikashopModifyQuantity is not defined

Hello,

When clicking/tapping the "add to cart" button on the product listings or single product pages, the item is added to the cart, but the popup does not display. The pages refreshes and the URL changes to /book-store/action-training?popup=1 or /book-store/action-training/product/advanced-steel-dvd?popup=1 depending on the view. The console log in the browser displays this error: ReferenceError: hikashopModifyQuantity is not defined.

I have tried the various "Popup" modes in the HikaShop configuration and have also adjusted the "Add to cart notification" plugin settings, but nothing is working.

Any ideas on why this is happening?

Cheers,

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

  • Posts: 69451
  • Thank you received: 10401
  • MODERATOR
2 months 2 days ago #316883

Hi,

You're using the legacy add to cart system.
Turn off the add to cart legacy setting of the HikaShop configuration and it should work better.

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

  • Posts: 123
  • Thank you received: 1
  • Hikashop Business
2 months 2 days ago #316884

Hello Nicolas,

Under Configuration > Legacy Settings, “Add to cart legacy” is set to “No”. I would assume this means that it is disabled. Would a template override from a previous version of HikaShop be conflicting with the pop up functionality?

Cheers,

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

  • Posts: 2481
  • Thank you received: 333
  • MODERATOR
2 months 1 day ago #316887

Hello,

Yes it's possible, to check this you can switch for a default template like ProtoStar to see if that solve your issue.
But take care that you haven't yourself create an override from old HikaShop views.

To check this, from HikaShop Main Configuration, go to Display dropdown => Views



If you see a little trash icon, try to keep this custom view on your side (in order to don't loose your custom code), and try to remove this override view, to see if that solve your issue (with your current template).

Hope this will help you.
Regards

Last edit: 2 months 2 days ago by Philip.

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

  • Posts: 123
  • Thank you received: 1
  • Hikashop Business
1 month 4 weeks ago #316994

Hello,

Thanks for the reply.

What is the name of the file that controls the "added to cart" modal message?

Cheers,

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

  • Posts: 69451
  • Thank you received: 10401
  • MODERATOR
1 month 4 weeks ago #317002

Hi,

It depends what part you want to change.
If it's just the text you want to change, you can use translation overrides:
www.hikashop.com/download/languages.html#modify
If it's the look, then you can add CSS code on your website:
www.hikashop.com/support/documentation/1...ize-the-display.html
If it's the behavior (how long it appears, should there be a redirect to the checkout), then you can find settings to control that in the HikaShop cart notification plugin via the Joomla plugins manager.
If it's something else, then you might have to change the file plugins/hikashop/cartnotify/cartnotify.php or another file which controls the way the modal displays.

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

  • Posts: 123
  • Thank you received: 1
  • Hikashop Business
1 month 4 weeks ago #317023

Hello Nicolas,

Thanks for the information. I will look into the cartnotifiy file and see what I find.

Much appreciated.

Cheers,

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

Time to create page: 0.065 seconds
Powered by Kunena Forum