tinhduong Posted August 30, 2012 Share Posted August 30, 2012 (edited) I'm using prestashop with theme Prestashop_newI want to display "Out of stock" when product is out of stock.http://winterbootsreviews.comI've read something in this forum ( Edit homefeatured.tpl ). I edited to : {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if} <a class="button" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a> {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to Cart' mod='homefeatured'}">{l s='Add to Cart' mod='homefeatured'}</a> {else} <span class="exclusive"> {l s='Out of stock' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} But it still doesn't work.I tried to edit /themes/prestashop_new/modules/homefeatured/homefeatured.tpl with the same content as above. But my site still look like the attached image.Please help Thank you Edited March 14, 2014 by tinhduong (see edit history) 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