Jump to content

add to chart button problems


Recommended Posts

It seems add to cart button does not appear to products out of stock. Example http://sanita.ro/cabina-dus/154-cabina-dus.html is out of stock and no add to cart button appears to mention is out of stock. The add to chart button apears if the product is in stock.
How to make the add to chart button and out of stock text appear to the products not in stock? I'm interested to appear and write normally....out of stock.
Thank You

And sry for my english...

Link to comment
Share on other sites

Edit product.tpl and find line 283;

quantity == 0} style="display:none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p>



change it with:

{if !$allow_oosp && $product->quantity != 0}

<input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p>
            {else}

{l s='Out of Stock' mod='homefeatured'}
          {/if}



I think it will work, just you have to make some change in global.css

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