Add to cart notification

  • Posts: 81
  • Thank you received: 2
  • Hikashop Multisite
4 years 10 months ago #307740

-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.8
-- PHP version -- : 7.1.30
-- Browser(s) name and version -- : Google Chrome
-- Error-message(debug-mod must be tuned on) -- : No error message

Hi Support Team,

I'm having issue where when user add product to cart and the add to cart notification not appear on the site.

In the console the is no error regarding any JS or conflict with Hikashop.



When user add to cart the item is added to cart but there is no notification. Here is the setting for the add to cart notification..





Can someone help me how to get the notification appear on the site?

Thanks in advance.

Attachments:

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
4 years 10 months ago #307765

Hello,

I'm afraid that your page is not an HikaShop page but is a Joomla article with an inserted product.
Because of the context, the HIkaShop plugins are not loaded, which means that the HIkaShop Cart Notification plugin is not loaded.
Which explain why you do not have the notification since the "com_content" page is not loading HikaShop plugins.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 81
  • Thank you received: 2
  • Hikashop Multisite
4 years 10 months ago #307768

Any ways that i can include the com_content to be load in the article page so we can have the Hikashop Cart Notification?

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

  • Posts: 81508
  • Thank you received: 13064
  • MODERATOR
4 years 10 months ago #307769

Hi,

You can add that line in the index.php file of your template in order to load the HikaShop plugins on the pages of your frontend:
JPluginHelper::importPlugin('hikashop');

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

  • Posts: 81
  • Thank you received: 2
  • Hikashop Multisite
4 years 10 months ago #307779

Put the line in the index.php as your suggested.



Then get this error on the page.

Attachments:

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

  • Posts: 81508
  • Thank you received: 13064
  • MODERATOR
4 years 10 months ago #307782

Hi,

Ah yes, you also want to load HikaShop before that.
Add that line just before the other one:

include_once(rtrim(JPATH_ADMINISTRATOR, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_hikashop' . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'helper.php');

The following user(s) said Thank You: oxido, alainz

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

Time to create page: 0.097 seconds
Powered by Kunena Forum