Skip to main content

Add to cart notification

7 years 5 months ago #307740 by alainz
-- 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.

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

7 years 5 months ago #307765 by Jerome
Replied by Jerome on topic Add to cart notification
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.

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

7 years 5 months ago #307768 by alainz
Replied by alainz on topic Add to cart notification
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.

7 years 5 months ago #307769 by nicolas
Replied by nicolas on topic Add to cart notification
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.

7 years 5 months ago #307779 by alainz
Replied by alainz on topic Add to cart notification
Put the line in the index.php as your suggested.



Then get this error on the page.

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

7 years 5 months ago #307782 by nicolas
Replied by nicolas on topic Add to cart notification
Hi,

Ah yes, you also want to load HikaShop before that.
Add that line just before the other one:
Code:
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.079 seconds
Powered by Kunena Forum