- Posts: 63
- Thank you received: 1
Customise Notification?
8 years 8 months ago #286714
by mikekiy
Customise Notification? was created by mikekiy
-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3
How can we customize the added to cart notification?
-- 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.
8 years 8 months ago #286717
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Customise Notification?
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,
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.
Please Log in or Create an account to join the conversation.
8 years 8 months ago #287107
by mikekiy
Replied by mikekiy on topic Customise Notification?
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
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.
8 years 8 months ago #287121
by nicolas
Replied by nicolas on topic Customise Notification?
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.
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.201 seconds