Jump to content

Modal for Button


Senior33
 Share

Recommended Posts

Hello again,

I want to add a new 'button' to my single product page, for example above the ADD CART button. When 'Button' is selected, the modal popup will appear and I will show the user a text or table containing the information I want.

eq: Shipping Details Button and an information table or text about shipping and fees when opened.

Thank you
Regards

Share this post


Link to post
Share on other sites

54 minutes ago, endriu107 said:

We are in Developers forum section so I think you are developer and have some coding skills. Most of PrestaShop themes are based on bootstrap so you can use bootstrap modal: https://getbootstrap.com/docs/4.0/components/modal/#live-demo and add it to your template or create own module for that.

 

Welcome ,

Actually, I need to explain in more detail. It is really easy to design modals thanks to ready-made codes. What I was wondering is to run the Modal on presta and place it with the add to cart button (below or above). Here is where I don't fully understand.

 

Regard

 

modal_simple.png

Share this post


Link to post
Share on other sites

You can put this code anywhere you want in your theme file, there is nothing to explain. Not all theme have same file structure, as I can see you don't use classic theme so you have to find correct file.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More