Where is the Add to Cart Pop Up Module?

  • Posts: 33
  • Thank you received: 0
  • Hikashop Business
4 years 10 months ago #175219

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.3

I have to set up the positions fields on the Add To Cart Pop up Module, but I don't know where is it...

Can you help me please?

Thanks a lot...

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

  • Posts: 66619
  • Thank you received: 9806
  • MODERATOR
4 years 10 months ago #175233

Hi,

I'm not sure what you want to change.
If you want to activate the popup notice on add to cart, you can change the "After a product is added to the cart" option of the configuration to "stay and display a popup notice".
If you want to customize that popup notice, you can edit the file "notice" of the view "checkout" via the menu Display>Views.

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

  • Posts: 55
  • Thank you received: 2
  • Hikashop Business
3 weeks 4 hours ago #309422

I'm not finding this in the config of v 4.2.1.

I want to activate the popup function.

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

  • Posts: 66619
  • Thank you received: 9806
  • MODERATOR
2 weeks 6 days ago #309427

Hi,

This option has been removed since then. You can now configure the behavior after the add to cart by changing the settings of the HikaShop cart notification plugin via the Joomla plugins manager.

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

  • Posts: 55
  • Thank you received: 2
  • Hikashop Business
2 weeks 5 days ago #309439

Thank you for that. I found what I was after - it works fine from within HikaShop.

I am having trouble using it from the product tag (content) plugin. The button that is rendered from the plugin puts the product in the cart but does not trigger the cart notification popup.

How can I troubleshoot that?

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

  • Posts: 12090
  • Thank you received: 1666
  • MODERATOR
2 weeks 4 days ago #309471

Hello,

There's actually no option to display a popup for products added via product tag plugins, but the solution can be to redirect your customers to the product page which will have the good add to cart button !

We wish you a nice day !
Kind regards,
Mohamed Thelji.

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

  • Posts: 55
  • Thank you received: 2
  • Hikashop Business
2 weeks 14 hours ago #309690

Interestingly, I have two sites with virtually identical Hikashop setups.

The Cart Notification Plugin (CNP) popup works (from the content plugin) with one but not the other. So we know that it <should> work.

How does the CNP activate the popup? It should just be upon addition to the cart - wherever it came from (product page or content page)?

Any ideas how I can track this down to fix it?

Scott

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

  • Posts: 55
  • Thank you received: 2
  • Hikashop Business
2 weeks 14 hours ago #309694

The plugin is not loaded on the page - thats why it is not working on the other site.

Any idea why a plugin would not load? It is activated.

Attachments:
Last edit: 2 weeks 14 hours ago by virusys.

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

  • Posts: 66619
  • Thank you received: 9806
  • MODERATOR
2 weeks 11 hours ago #309697

Hi,

I suppose that it's because you have no HikaShop elements displayed on the page (no module, no plugins, etc). So the plugins of the group "hikashop" are not loaded.

Try adding the line:
JPluginHelper::importPlugin('hikashop');
after the code:
$this->classbadge = hikashop_get('class.badge');
in the file plugins/system/hikashopproductinsert/hikashopproductinsert.php and that should fix the problem.
Let us know how it goes so that we can add that patch on our end.

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

  • Posts: 55
  • Thank you received: 2
  • Hikashop Business
2 weeks 4 hours ago #309707

No joy.

In context:

$db = JFactory::getDBO();
		$currencyClass = hikashop_get('class.currency');
		$this->image = hikashop_get('helper.image');
		$this->classbadge = hikashop_get('class.badge');
		JPluginHelper::importPlugin('hikashop');
		$para = array();
		$nbtag = count($matches[1]);
		for($i = 0; $i < $nbtag; $i++) {
			$para[$i] = explode('|', $matches[1][$i]);
		}

Cleared cache, closed browser, reopened - still no content plugin loaded.

Last edit: 2 weeks 4 hours ago by virusys.

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

  • Posts: 66619
  • Thank you received: 9806
  • MODERATOR
1 week 4 days ago #309772

Hi,

The plugin is loaded. If not, you wouldn't see the add to cart buttons, but you would see the content tags themselves.
It's only either the javascript missing, or the javascript not loaded because of some javascript error, or some javascript conflict I think.
Then, please provide a link to the page with the add to cart buttons so that we can investigate.

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

  • Posts: 55
  • Thank you received: 2
  • Hikashop Business
1 week 4 days ago #309785

Sent PM

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

  • Posts: 55
  • Thank you received: 2
  • Hikashop Business
1 week 3 days ago #309797

Yay! Got it.

I added the HS cart module to the margin and Voila! the JS of the cart notify plugin loaded.



All set now it seems.

Thanks for your help.

Attachments:
Last edit: 1 week 3 days ago by virusys.

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

  • Posts: 66619
  • Thank you received: 9806
  • MODERATOR
1 week 3 days ago #309788

HI,

OK, I think I know what is the problem.
Add the code:

	function onAfterRoute() {
		$app = JFactory::getApplication();

		if(version_compare(JVERSION,'3.0','>=')) {
			$layout = $app->input->getString('layout');
			$ctrl = $app->input->getString('ctrl');
			$task = $app->input->getString('task');
			$function = $app->input->getString('function');
		} else {
			$layout = JRequest::getString('layout');
			$ctrl = JRequest::getString('ctrl');
			$task = JRequest::getString('task');
			$function = JRequest::getString('function');
		}
		if(version_compare(JVERSION,'4.0','>=')) {
			$admin = $app->isClient('administrator');
		} else {
			$admin = $app->isAdmin();
		}

		if($admin)
			return true;

		//If we are in edition page or "Product" button popup
		if($layout == 'edit' || $ctrl == 'plugins' && $task == 'trigger' && $function == 'productDisplay')
			return true;
		if(!defined('DS'))
			define('DS', DIRECTORY_SEPARATOR);
		if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php'))
			return true;
		JPluginHelper::importPlugin('hikashop');
	}
before the line:
function onAfterRender() {
in the same file.
That will force the loading of the HikaShop plugins.

The following user(s) said Thank You: virusys

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

Time to create page: 0.107 seconds
Powered by Kunena Forum