Jump to content

When is displayed the message: "Product is available with different options"?


Recommended Posts

Hello and thanks for reading this message:

 

I would like to know under what conditions, appears in the list of products in our store the message: "Product is available with different options."

 

Until now I thought that this message appeared when we added an attribute to a product, for example, attribute Number, and as Values ​​37, 38, 39, 40 .... etc.

 

At that time I thought it was when it would come out in the list of products that message, but I see no, that sometimes it just says "Available".

 

Of course, neither is disabled the "Add to Cart" when the message is "Available". Because, this only happens when displaying the message: "Product is available with different options."

 

Does anyone happen the same?, Does anyone know under what conditions is display this message?.

 

POSDATA:

The code I have in the product-list.tpl file is as follows:

 

{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}

 

Is this the most current code?

 

I've tried to find the variable $ product.quantity_all_versions in prestashop MySQL table, but have found no field with this name.

 

Is a variable that is not stored in the database?

 

A greeting and thanks.

Link to comment
Share on other sites

  • 3 weeks later...

Hi,

 

Not sure if you still need this but the only way I got the text to change was set the code back to how it was (as quoted above).

 

Then, go to Back Office Tools Translations and go to the English translation and change the 1 or 2 values there.

 

e.g.

aQAor.png

 

Hope this helps.

Link to comment
Share on other sites

  • 1 year later...

I've solved (version 1.5.4.1 theme from Templatemonster) with this modify to product-list.tpl

 

{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">
		    {if ($product.allow_oosp || ($product.quantity > 0) && $product.quantity_all_versions==$product.quantity)}{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}

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...