Customise Notification?

  • Posts: 63
  • Thank you received: 1
  • Hikashop Business
6 years 10 months ago #286714

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3

How can we customize the added to cart notification?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 10 months ago #286717

Hello,

It depends what you want to do exactly.
It could require some CSS override or to duplicate the plugin in order to put your own content instead.

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: 63
  • Thank you received: 1
  • Hikashop Business
6 years 9 months ago #287107

Hello,

Why does this plugin not use the tmpl folder to generate the template so it can be overridden? Duplicating a plugin isn't a good idea in general in case you change some methods or functions.

Many thanks
Tony

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
6 years 9 months ago #287121

Hi,

There is no HTML view in the plugin. The HTML of the notification box is generated in javascript on the fly by the browser.
So it's not possible to provide a view to override.
And regarding the duplication of the plugin, the add to cart notification system has been made especially so that it's possible to create notification plugins in a standard way.
As long as you implement the javascript trigger from HikaShop you can develop a plugin independently from how HikaShop evolves.
So duplicating the plugin to make your own custom won't be a problem even if we change methods or functions, because you'll only rely on the javascript trigger, and this one won't change.

Also, most of normal customization of the notification box can be done either with translation overrides or CSS code.
It's only if you want to add extra HTML elements to it that you need to modify the javascript of the plugin since the HTML elements are added dynamically by the javascript.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum