Serial Posted September 22, 2015 Share Posted September 22, 2015 Hi, I want to add a new button in product page. I have just a problem with this. When I click on him, it's add the product in my cart. But, I didn't want to do this. I want that on button click to redirect in a specific url of my shop. I noticed that if my button is not in the form id="buy_block", it works. How can I do to position my button in this form while redirect in a specific url ? Link to comment Share on other sites More sharing options...
cristic Posted September 22, 2015 Share Posted September 22, 2015 You probably added a submit button. Can you place here the code for your button? Link to comment Share on other sites More sharing options...
Serial Posted September 22, 2015 Author Share Posted September 22, 2015 (edited) No it isn't ^^ {if $product->id_category_default != "100"} <div class="box-echantillon" style="padding-bottom: 40px; padding-left: 13px; margin-top:-10px;"> <button id="btn_echantillon" class="btn btn-primary"><i class="fa fa-eyedropper"></i> Acheter un échantillon (10x10cm)</button> </div> {/if} Edited September 22, 2015 by Serial (see edit history) Link to comment Share on other sites More sharing options...
cristic Posted September 22, 2015 Share Posted September 22, 2015 Do you have a link of the page, you can share? Have the button inside the form. Link to comment Share on other sites More sharing options...
Serial Posted September 22, 2015 Author Share Posted September 22, 2015 My shop isn't onlnie for the moment. I share product.js. I think it's the problem is here but i don't know where. product.js.txt 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