Jump to content

show/hide add to cart button on product sheet


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;">





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



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?



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