AbanteCart Community

Shopping Cart Operations => Support => Topic started by: Kat8990 on August 25, 2016, 01:34:23 PM

Title: How to Add Jquery Screen Popup
Post by: Kat8990 on August 25, 2016, 01:34:23 PM
I want to add a popup to my website to show a special offering. I've found a couple of free open source jquery popups. I have the zipped files containing all the coding files but which file in the Abantecart platform do I put the jquery code and the other code for my popups. The instructions for the popups say to put the codes in the header and footer files.

I've examined the header.php file in /storefront/controller/common/  and do not see a Jquery code. I see that it says to customize the file, go to the abantecart.com site for answers.

Please let me know how to add my Jquery popups.

Title: Re: How to Add Jquery Screen Popup
Post by: abolabo on August 25, 2016, 02:32:44 PM
what about bootstrap modals instead?
http://getbootstrap.com/javascript/#modals
Title: Re: How to Add Jquery Screen Popup
Post by: Kat8990 on August 25, 2016, 09:12:53 PM
Abolabo


Bootstrap modals is fine. How do I incorporate the code and which file?
Title: Re: How to Add Jquery Screen Popup
Post by: abolabo on August 31, 2016, 08:40:17 AM
Abantecart have html-element which calls by $this->html->buildElement('type'=> 'modal');
Please check file core/engine/html.php for details.
You can also find usage of it inside tpls.