Niller Posted April 19, 2015 Share Posted April 19, 2015 Hi. I am working on a prestashop 1.5.2 Is it possible to show the stock availability block on product list best regards Link to comment Share on other sites More sharing options...
PascalVG Posted April 20, 2015 Share Posted April 20, 2015 Hi Niller, This topic may help you: https://www.prestashop.com/forums/topic/138553-available-and-out-of-stock-text-in-different-colours-in-product-list/ My $0.02, pascal Link to comment Share on other sites More sharing options...
Niller Posted April 21, 2015 Author Share Posted April 21, 2015 Hey Pascal. Thanks for answer. I want to show the text from products->stock amount-> Text that appears when the product is available/ Text that appears when the product can pre-order: Do you have any tips here Best regards Link to comment Share on other sites More sharing options...
Niller Posted April 23, 2015 Author Share Posted April 23, 2015 I want this - which is the availability status set in the products on product-list instead of just "in stock" Link to comment Share on other sites More sharing options...
Niller Posted April 24, 2015 Author Share Posted April 24, 2015 Bump Link to comment Share on other sites More sharing options...
PascalVG Posted April 26, 2015 Share Posted April 26, 2015 Product depeendent available- Text can be shown like this: themes/<your theme folder>/product-list.tpl Find this piece of code and add red code: <div class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if} {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'}*}{$product.available_now}{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} </div> By default, the product list never shows the "Displayed text when allowed to be back-ordered", only 'Available'/'out of stock'. Do you really need this as well, that we have to find out how to add this to the product-list.tpl file. So let me know if you really need it. pascal. Link to comment Share on other sites More sharing options...
Niller Posted April 27, 2015 Author Share Posted April 27, 2015 Hej Pascal. Thank you. But, yeah i need the textbox on the list if possible Hope you can help Link to comment Share on other sites More sharing options...
PascalVG Posted April 29, 2015 Share Posted April 29, 2015 OK, maybe try this: Edit file themes/<your theme folder>/product-list.tpl again. (Make backup first!) Add red code: <div class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp && $product.quantity lte 0)}{$product.available_later}{elseif ($product.allow_oosp || $product.quantity > 0)}{*{l s='Available'}*}{$product.available_now}{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} </div> Give it a try, pascal 1 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