giasemis Posted November 25, 2021 Share Posted November 25, 2021 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 More sharing options...
JulienPct Posted November 26, 2021 Share Posted November 26, 2021 Hello, First of all, the button is not supposed to redirect if it is empty unless it is itself included in a <a> link. Have you tried to fill it, that is to say to give it an action to perform in order to see its behavior? 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