Jump to content

[SOLVED] "In Stock" field not being translated


soluthier
 Share

Recommended Posts

  • 3 weeks later...

Hello guys

I found easy way to achive this, but don't know if it's correct

in product.tpl file change this line

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

into

<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*}{l s='Available now'}{/if}</span>

and this

{addJsDef availableNowValue=$product->available_now|escape:'quotes':'UTF-8'}

into

{addJsDef availableNowValue = {l s='Available now'[spam-filter]

Now in Back office -> Localization -> Translation you need to edit your store pages translation (sorry for not literal tutorial but atm I don't have english version of PS)

There is litte bug with cards/tabs on this page cause java script is on href part of link so use button to expand all cards and then find (ctrl + F) Available now.

Insert your translation and save.

That's all

 

Edit:

Tip: better use comments (instead of deleting) because im not sure if this is 100% correct way to achive this.

Edited by falkor (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

  • 4 months later...
  • 4 weeks later...
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More