PrestaSupport Posted May 11, 2011 Share Posted May 11, 2011 Hello!Working on a site. Prestashop 1.4.1I have a product in shop that has 2 attributesAttribute one (default attribute) Is out of stockAtribute two has items in stockIn product list it show "Out of stock" even if i have products in the other attributeIs this something wrong? Shouldn't it display something like is "Product available with different options" or something like that?It is a little confusing that it show out of stock when there is product in attributes.Help will be apreciated Link to comment Share on other sites More sharing options...
PrestaSupport Posted May 13, 2011 Author Share Posted May 13, 2011 Maybe there is a module for this issue?Any. ideas? Link to comment Share on other sites More sharing options...
PrestaSupport Posted May 16, 2011 Author Share Posted May 16, 2011 I answer this myself.It is solved in prestashop version 1.4.1see code in product-list.tpl:{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}{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}{/if} 1 Link to comment Share on other sites More sharing options...
salko Posted May 16, 2011 Share Posted May 16, 2011 I answer this myself.It is solved in prestashop version 1.4.1see code in product-list.tpl:{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}{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}{/if} I tried to replace this code in PS 1.4.0.17 and it did not worked for me ... Link to comment Share on other sites More sharing options...
PrestaSupport Posted May 16, 2011 Author Share Posted May 16, 2011 Okey Salko, Maybe it will not work with 1.4.0.17 Link to comment Share on other sites More sharing options...
cast Posted August 29, 2011 Share Posted August 29, 2011 I answer this myself.<br/>It is solved in prestashop version 1.4.1<br/><br/>see code in product-list.tpl:<br/><br/>{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} <br/><br/>I tried to replace this code in PS 1.4.0.17 and it did not worked for me ... Wow! this is what i've been lookin out for months! Thanks for sharing salko! I believe many people will be helped after reading your solved thread! I did use PS 1.4.0.17 before, and it was failed in any ways! but now it's working! Great job, man! Link to comment Share on other sites More sharing options...
PrestaSupport Posted August 29, 2011 Author Share Posted August 29, 2011 Thanks Link to comment Share on other sites More sharing options...
cast Posted August 29, 2011 Share Posted August 29, 2011 Thanks Sorry, actually it should be thanked to you, but somehow I read salko.. haha.. Thanks Sampras! Link to comment Share on other sites More sharing options...
PrestaSupport Posted August 29, 2011 Author Share Posted August 29, 2011 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