ps2k11 Posted December 13, 2011 Share Posted December 13, 2011 I would like to allow customers to order products that are on back order. I know that I can put a message in Displayed text when allowed to be back-ordered: Here's the problem I have. If I choose not to allow back-orders in cart the message 'Out of stock on line' is displayed when browsing a category. If I choose to allow back-orders in cart the message 'Available' is displayed when browsing a category. The customer doesn't know that the product is back-ordered until the view button is clicked. Is there a way to display back-ordered instead of available when browsing a category ? Link to comment Share on other sites More sharing options...
El Patron Posted December 13, 2011 Share Posted December 13, 2011 http://www.prestashop.com/forums/topic/122963-backorder-displayed/ there is a good tip in there... Link to comment Share on other sites More sharing options...
ps2k11 Posted December 17, 2011 Author Share Posted December 17, 2011 http://www.prestasho...rder-displayed/ there is a good tip in there... did not solve the problem but put me in the right track If anybody is interested here's what you have to do change product-list.tpl in line 44 from {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if}</span>{/if} to {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if $product.quantity > 0}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Backorder'}{/if}</span>{/if} Link to comment Share on other sites More sharing options...
fishordog Posted April 26, 2014 Share Posted April 26, 2014 this works well for product-list but how do i do same thing in product.tpl, so it will display "pre-order" button when allow orders option is selected for that product? Link to comment Share on other sites More sharing options...
epohjola Posted November 18, 2017 Share Posted November 18, 2017 I have a problem with 'Text displayed when allowed for backorder' it only shows in product page when stock is 0, but disappears when stock is -negative Any advice? 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