Jump to content

Prestashop 1.6 make a button that pops up an image


Juan Rios1

Recommended Posts

Hello, I'm starting to sell shirts, but I want to put a sizes chart. 

Since I don't have more room for pictures, I was thinking of adding a button that would show a pop up with the image.

Any ideas how to do this? I'm not a developer, but I've gotten the hang of some things.

Thanks in advance!

Link to comment
Share on other sites

It has become more complicated by categories.
To do this, the module would have to be done and created a hook for product.tpl
Because you would have to manually enter conditions into product.tpl

eg:

{if $product->id_category_default == 3 || $product->id_category_default == 11}
<img src="{$img_dir}/shirt-size-men.png" style="max-height:150px;">
{/if}

 

Link to comment
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
×
×
  • Create New...