Okay
  Public Ticket #3039822
Labels for products stock no display
Closed

Comments

  •  8
    SPYRIDON started the conversation

    Good morning,

    The Labels of products stock  ‘’ Available, Not available’’ are not display on Front Office (product page etc.). See files

    How do I fix to display?

    Thanks

  •  310
    Andrea replied

    Please provide us FTP credentials and Back Office access of your site.

    We will handle the problem to help you.

    Best Regards,

    Andrea - FieldThemes Support Team

  •  8
    SPYRIDON replied

    Hi,

    you do have my BO credentials is active for you (I've also added the Product Settings module)

    what path? folder or file access do you need for FTP?

    I'll appreciate if you know where the issue may be, to guide me and try do it myself.

    Thanks

  •   SPYRIDON replied privately
  •  310
    Andrea replied

    Hi
    You go to the file
    \themes\name_theme\templates\catalog\_partials\product-add-to-cart.tpl
      Add the below code as attached image
    {block name='product_availability'}
               <span id="product-availability">
                 {if $product.show_availability && $product.availability_message}
                   {if $product.availability == 'available'}
                     <i class="fa fa-check rtl-no-flip product-available"></i>
                   {elseif $product.availability == 'last_remaining_items'}
                     <i class="fa fa-exclamation-triangle product-last-items"></i>
                   {else}
                     <i class="fa fa-ban product-unavailable"></i>
                   {/if}
                   {$product.availability_message}
                 {/if}
               </span>
             {/block}

    Attached image
    https://prnt.sc/cKzqLFGUcXeV
    Thanks

    Best Regards,

    Andrea - FieldThemes Support Team

  •  8
    SPYRIDON replied

    Hi,

    Issue solved thank you but I have a question. see files

    Can you please explain to me why the Label ‘’Not Available’’ is configured from the International > translations under the  presta classic theme (which took me 1 hour to locate and tranlate the phrase) and the Label ‘’Available'' is configured from shop parameters  > Product Settings?

    Why is it mixed up? Shouldn’t both Labels be config. From Product Settings?

    Thanks

  •  310
    Andrea replied

    Hi
    Those labels are set in Product settings, when you add languages you have to change those labels in all languages you add. You don't have to go to International > translations to translate it.
    Thanks

    Best Regards,

    Andrea - FieldThemes Support Team

  •  8
    SPYRIDON replied

    Hi,

    I change all Labels in Product settings but only the Label in-stock products reflect the changes to the Product pages.

    The Labels out-of-stock products do not reflect any changes to product pages, but only when I change from the International translation and through the classic theme then the Labels change on product pages.

    I can not explain it. Can you?

    Thanks

  •  310
    Andrea replied

    Hi
    Usually those labels are edited in product settings, not translation related.
    Maybe your page is cached or your products are still available in combination with your products
    Thanks

    Best Regards,

    Andrea - FieldThemes Support Team

  •  8
    SPYRIDON replied

    Hi,

    I' see to it.

    Thanks

  •  310
    Andrea replied

    Hi SPYRIDON
    Nice to help you, have a nice day
    Thanks

    Best Regards,

    Andrea - FieldThemes Support Team