- Posts: 39
- Thank you received: 0
Added to cart message in joomla message area
11 years 8 months ago #189637
by dda
Added to cart message in joomla message area was created by dda
-- 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?
-- 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.
11 years 8 months ago #189643
by lousyfool
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" )
Replied by lousyfool on topic Added to cart message in joomla message area
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
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.
11 years 8 months ago #189647
by dda
Replied by dda on topic Added to cart message in joomla message area
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.
11 years 8 months ago #189651
by Xavier
Replied by Xavier on topic Added to cart message in joomla message area
Hi,
You can potentially edit/override the file "components/com_hikashop/controllers/product.php" and in the function "updatecart()" add code like:
After, for example:
You have to disable the "Ajax add to cart" option if enabled, else it will not work as expected.
You can potentially edit/override the file "components/com_hikashop/controllers/product.php" and in the function "updatecart()" add code like:
Code:
$app->enqueueMessage(JText::_('PRODUCT_SUCCESSFULLY_ADDED_TO_CART'));
Code:
$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.240 seconds