Added to cart message in joomla message area

  • Posts: 39
  • Thank you received: 0
10 years 7 months ago #189637

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.2.4
-- PHP version -- : 5.4.32
-- Browser(s) name and version -- : Opera 27

Is it possible to get hikashop to show a message that says a person added something to their cart in the joomla <jdoc:include type="message" /> area? Or in some area of a template by some other means?

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

  • Posts: 2143
  • Thank you received: 747
10 years 7 months ago #189643

Of course!

Not familiar with the optional popup after a product was added to the cart? It can be activated and configured in the main system configuration. And it's documented here: hikashop.com/support/support/documentati...onfig.html#main_cart


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 39
  • Thank you received: 0
10 years 7 months ago #189647

Yes I am but I don't see how to get the message displayed in the message area of my index.php.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #189651

Hi,

You can potentially edit/override the file "components/com_hikashop/controllers/product.php" and in the function "updatecart()" add code like:

$app->enqueueMessage(JText::_('PRODUCT_SUCCESSFULLY_ADDED_TO_CART'));
After, for example:
$params = new HikaParameter( @$module->params );

You have to disable the "Ajax add to cart" option if enabled, else it will not work as expected.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum