Jump to content

show/hide add to cart button on product sheet


marhor.hr

Recommended Posts

When examining the product sheet (product.tpl) with firebg, i see a piece of code that shows the add to cart button:

<p id="add_to_cart" class="buttons_bottom_block" style="display: block;">

 

 

<span></span>

 

<input class="exclusive" type="submit" value="U košaricu" name="Submit">

</p>

 

Depending on if the product is in or out of stock, the display style changes dynamicly between display:none and display:block.

I'm rather inexperienced in php and can't find it in the product.tpl file, so can somebody please explain to me how this works?

 

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

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