Jump to content

New button in product page


Serial

Recommended Posts

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

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 by Serial (see edit history)
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...