Jump to content

Prestashop 1.7 problem when adding a button to product.tpl


giasemis

Recommended Posts

Hello,

I try to add a button to product.tpl in default theme here  

themes/classic/templates/catalog/product.tpl 

(the idea behind is to press a button and open a modal window with informations I have done it here

The problem is that the new button is direct me immediately to show cart page.

 

So I go to the default theme and I create just an empty button in  themes/classic/templates/catalog/product.tpl 

with this code 

<button id="testring">{l s='Test button' d='Shop.Theme.Catalog'} </button>

and nothing attached to it ( I mean no any related javascript or css) 

please see here

https://wehost.gr/presta17/art/3-13-the-best-is-yet-to-come-framed-poster.html

the test button just above add to cart

So I face the same behaviour. This empty test button direct you to show cart page https://wehost.gr/presta17/καλάθι

I think this is a kind of bug. With this behaviour I cannot add any button in product tpl (product.tpl)

Has anybody face something like this in before? Is there any workaround or solution? (mean empty button should not send you anywhere)

 

Thank you in advance

Gerasimos

 

 

 

 

 

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...