Janekx Posted April 19, 2014 Share Posted April 19, 2014 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 More sharing options...
tdr170 Posted April 19, 2014 Share Posted April 19, 2014 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 More sharing options...
Janekx Posted April 19, 2014 Author Share Posted April 19, 2014 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 More sharing options...
tdr170 Posted April 19, 2014 Share Posted April 19, 2014 So take it out of maintenance mode long enough to take a look. Link to comment Share on other sites More sharing options...
Janekx Posted April 20, 2014 Author Share Posted April 20, 2014 here http://rcstudio.cz/12-vysilacky that small grey box below Taranis should be Out of Stock text. Link to comment Share on other sites More sharing options...
tdr170 Posted April 20, 2014 Share Posted April 20, 2014 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. Link to comment Share on other sites More sharing options...
Janekx Posted April 20, 2014 Author Share Posted April 20, 2014 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. Link to comment Share on other sites More sharing options...
tdr170 Posted April 20, 2014 Share Posted April 20, 2014 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 More sharing options...
Janekx Posted April 22, 2014 Author Share Posted April 22, 2014 Hi, it do same think when I set to manage stock manually and alolow orders. Have only one warehouse. Link to comment Share on other sites More sharing options...
irrelevant Posted May 17, 2014 Share Posted May 17, 2014 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 More sharing options...
Janekx Posted May 17, 2014 Author Share Posted May 17, 2014 I did workaround it by setting "preorders" in each product in line show this text when in not in stock and alowed order Link to comment Share on other sites More sharing options...
Recommended Posts