PrestaShark Posted July 12, 2013 Share Posted July 12, 2013 Hi All! I want to ask another thing. It is possible to open (view) external html files in Prestashop modal popup box? So i want to open help files to customer. "How to buy", "Whats new in new shop" etc. I have make a bootstrap alert box with that informations and these two buttons. When customer want to view these tutorials click on and modal box open with external content. Sorry for my english! ;/ Link to comment Share on other sites More sharing options...
vekia Posted July 12, 2013 Share Posted July 12, 2013 can you give more informations about your modal popup box module? i will try to test it for now i don;t know what module you use (i know several popup modules) Link to comment Share on other sites More sharing options...
PrestaShark Posted July 12, 2013 Author Share Posted July 12, 2013 I want use native prestashop popup script. Like in "Terms of use" when popup box display shop legal regulations etc Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 12, 2013 Share Posted July 12, 2013 It's pretty simple but you must do some modification in .php files, 1. You must include fancybox .js, .css files on all pages not only in product.tpl etc. You can do this by modify class/controller/FrontController.php, method: setMedia(); 2. Create jQuery script to bind fancybox to .class or #id, whatever you want. You can place it in for eg. footer.tpl, how to use fancybox you can see in themes/yourtheme/js/product.js (just search for fancybox). 3. Create link like: <a class="my-modal" href="{$base_dir}some_file.html" title="Some file title">Some file popup</a> and that's it. 1 Link to comment Share on other sites More sharing options...
PrestaShark Posted July 12, 2013 Author Share Posted July 12, 2013 Very nice Krystian, thank You for hint. I will try it tomorrow its late ... Dziękuję za podpowiedź Link to comment Share on other sites More sharing options...
vekia Posted July 12, 2013 Share Posted July 12, 2013 ps. polish section needs more threads! Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 12, 2013 Share Posted July 12, 2013 yep and we will be chief assistants Link to comment Share on other sites More sharing options...
PrestaShark Posted July 12, 2013 Author Share Posted July 12, 2013 No. Jedi Masters! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now