Jump to content

1.6.0.6 out-of-stock alowed for order no value in FO


Janekx

Recommended Posts

When I have item with 0 on stock but allow the order on product listing I not get Out of Stock text in box but only small box without text 

 

in code 

<span itemprop="offers" itemscope="" itemtype="http://schema.org/Offer" class="availability">
<span class="out-of-stock">
<link itemprop="availability" href="http://schema.org/InStock"> </span>
</span>
 
but I should get 
<span itemprop="offers" itemscope="" itemtype="http://schema.org/Offer" class="availability">
<span class="out-of-stock">
<link itemprop="availability" href="http://schema.org/OutOfStock">Out of Stock
</span>
</span>

 

Link to comment
Share on other sites

Check the file product-list.tpl in you themes, default-bootstrap folder at line 177 you should find these lines, I am assuming that you got the code from an inspector not from the file the code should look like this

 

 

<span class="out-of-stock">
<link itemprop="availability" href="http://schema.org/OutOfStock" />{l s='Out of stock'}
</span>
 
Also it helps us help you if when asking for help that you give us a link to the site so we may see the issue and even better is a link to the page in question. (no worries)
Link to comment
Share on other sites

Yes I know but shop is in maitanance mode now before launch

 

I found this 

 

<span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="availability">
{if ($product.allow_oosp || $product.quantity > 0)}
<span class="{if $product.quantity <= 0}out-of-stock{else}available-now{/if}">
<link itemprop="availability" href="http://schema.org/InStock" />{if $product.quantity <= 0}{if $product.allow_oosp}{$product.available_later}{else}{l s='Out of stock'}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now}{else}{l s='In Stock'}{/if}{/if}
</span>
{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}
<span class="available-dif">
<link itemprop="availability" href="http://schema.org/LimitedAvailability" />{l s='Product available with different options'}
</span>
{else}
<span class="out-of-stock">
<link itemprop="availability" href="http://schema.org/OutOfStock" />{l s='Out of stock'}
</span>

But in case of not in stock (stock extension mode) but allowed orders it takes instock procedure

 

Link to comment
Share on other sites

Ok so this is strange as when I inspect the page the Out of stock text does not exist within the <span out of stock> if I edit the code and add the Out of stock it shows as you see in the pics.

 

So what I am wondering is if this is a Translation issue, go to localization, translations, Front office translations select the language and click modify scroll down to product list and check the translation for out of stock and add a translation and see if it works.

 

 

I am assuming that the code you provided is from the product-list.tpl file from the themes/default-bootstrap file from the files online not the downloaded unzipped file.

 

 

post-310220-0-17539800-1398002582_thumb.jpg

 

 

 

post-310220-0-88131300-1398002592_thumb.jpg

Link to comment
Share on other sites

Thanks

That code is from live theme /default-bootstrap product-list.tpl file and I looked to traslations but there is all translated well and on other not stocked items it shows well, this is only item that is not at stock (advanced stock mode) and When not on stock : allow orders in product page.

When I do it on other item that is not at stock it makes same small box without text.

 

post-367274-0-10443600-1398006221_thumb.jpg

Link to comment
Share on other sites

OK so it is an issue with the configuration of advanced stock management, do you have multipule warehouses where you products are stocked.

Try changing to manual stock management and see if the box shows for the product.

Link to comment
Share on other sites

  • 4 weeks later...

I'm having I think the same issue.  Recent upgrade to 1.6, new bootstrap theme.   ASM in use on all products. On product lists, items that are not in stock but set to either Allow order or default (which is allow) on out of stock just show a small orange block under the product, rather than "In stock" or "Out of stock".   Since I allow ordering on a lot of products, this is an issue for me.  I'd already checked the translations..  I have two warehouses configured, but everything is currently just registered against #1.

Link to comment
Share on other sites

×
×
  • Create New...