<div class="product_availability"> {if $product.show_price} {if !$configuration.is_catalog} {block name='product_availability'} {if $product.show_availability && $product.availability_message} <span id="product-availability" class="badge {if $product.availability == 'available'} {if $product.quantity <= 0 && !$product.allow_oosp} badge-danger product-unavailable {elseif $product.quantity <= 0 && $product.allow_oosp}badge-warning product-unavailable-allow-oosp {else}badge-success product-available{/if}{elseif $product.availability == 'last_remaining_items'}badge-warning product-last-items{else}badge-danger product-unavailable{/if}"> {if $product.availability == 'available'} <i class="fa fa-check rtl-no-flip" aria-hidden="true"></i> {$product.availability_message} {elseif $product.availability == 'last_remaining_items'} <i class="fa fa-exclamation" aria-hidden="true"></i> {$product.availability_message} {else} <i class="fa fa-ban" aria-hidden="true"></i> {$product.availability_message} {if isset($product.available_date) && $product.available_date != '0000-00-00'} {if $product.available_date|strtotime > $smarty.now}<span class="available-date">{l s='until' d='Shop.Theme.Catalog'} {$product.available_date}</span>{/if} {/if} {/if} </span> {/if} {/block} {/if} {/if}
I also have problems with the refresh of the stock icon in the combinations of the product page. I want to place it somewhere else on the product page, but if I add it before "add-to-cart.tpl it doesn't refresh the stock. Only when it refreshes the whole page.
I attach the code that I place above where I want to place it.
Please help me...😥