You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, on my store "Out of stock" was not showing when an item was out of stock (and back ordering is disabled for that product). It would just grey out the add to cart button. I did the following:
Check the translations to make sure there were words in the out of stock box, there were
<!-- availability -->
<p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}>
<span id="availability_label">{l s='Availability:'}</span>
<span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>
{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}
</span>
</p>
And now:
!Availability: This product is no longer in stock with those attributes but is available with others." will show on a page with one of out stock item (where others are in stock)
The text was updated successfully, but these errors were encountered:
Try 2 is the right way to address this problem. It was all due to the CSS blocking the messages completely with !important and JS set show/hide status wasn't overwriting it. The same CSS rule is not present in community-theme-default.
@getdatakick Is there a reason why those messages were disabled with this commit? I'm not 100% sure that this change doesn't affect something else.
See https://forum.thirtybees.com/topic/3160-out-of-stock-warning-not-showing-on-front-office-site-partial-fix-already/
The text was updated successfully, but these errors were encountered: