Jump to content
  • 0

Problem z wyświetlaniem dostępnych ilości na karcie produktu


GrzegorzCh

Question

10 answers to this question

Recommended Posts

  • 1

W pliku themes/classic/templates/catalog/_partials/product-details.tpl w linii ~ 29 masz:

{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}

ten kod przenieś do pliku np. themes/classic/templates/catalog/_partials/product-add-to-cart.tpl możesz go umieścić zaraz przed tą linijką kodu:

{block name='product_availability'}

 

Po zmianach wyczyść cache sklepu.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...