What's New
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.
Hi there,
I am updating the theme in a website (same website just different theme) that had default theme and i find a problem, if i have default theme i can see the stock quantity available https://prnt.sc/1seosy9 but when i put transformer theme it only shows it when it is in the “almost out of stock” umbrall https://prnt.sc/1seowo6
can you help me? thank you
Hi,
Please modify the \themes\transformer\templates\catalog\_partials\product-details.tpl, add the following code in it and clear the Smarty cache.
{block name='product_quantities'}
{if $product.show_quantities}
<div class="product-quantities">
<label class="label">{l s='In stock' d='Shop.Theme.Catalog'}</label>
<span data-stock="{$product.quantity}" data-allow-oosp="{$product.allow_oosp}">{$product.quantity} {$product.quantity_label}</span>
</div>
{/if}
{/block}
{block name='product_availability_date'}
{if $product.availability_date}
<div class="product-availability-date">
<label>{l s='Availability date:' d='Shop.Theme.Catalog'} </label>
<span>{$product.availability_date}</span>
</div>
{/if}
{/block}
Best regards.
Good morning Yobo,
Thank you for the code, it works perfectly, just one thing, if i want it right below the price (like when there are not much quantity left) istead of in more details tab, where should i put it?
Thank you so much
You must be logged in to reply to this topic.