diana13 Posted October 6, 2015 Share Posted October 6, 2015 I want to display disabled products, but instead of box info product with price, add to cart button and everything, just to display a box with "This product is no longer available in our offer", something like that. I've managed to do so until in prestashop 1.6.0.13, I,ve added in product.tpl this: {if !$product->active} <div class="box-info-product"> <div id="short_description_content" style="text-align: center;padding: 10px; font-size: 14px; font-weight: bold;"><p>This product is no longer available in our offer.</p></div> </div> {else} {if ($product->show_price && !isset($restricted_country_mode)) || isset($groups) || $product->reference || (isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS)} <!-- add to cart form--> ......... but I,ve made un upgrade to 1.6.1.1 and now I get the error page (product is no longer available) for disabled products, though the above line of code are still in my product.tpl file. Anyone have any idea how to solve this? Link to comment Share on other sites More sharing options...
musicmaster Posted October 6, 2015 Share Posted October 6, 2015 Look at the init() function in the file \controllers\productController.php. There is a check there. 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