Ad

How To Add A Hyperlink In A Text Translation In Prestashop?

- 1 answer

When I try to choose a product, when it is out of stock, it shows me the following mesage "There are not enough products in stock". So I want to make the "products" hyperlink.

I tried to edit the products with <a> tags. So I wrote it like this:

There are not enough <a target="_blank" rel="nofollow noreferrer" href="www.example">products</a> in stock

, but unfortunately it didn't work and it shows me the <a> tags as a text.

How can I make the word products a hyperlink?

The Prestashop version is 1.7.5.

Thank you in advance!

Ad

Answer

Go to the theme folder and find
theme_name/templates/catalog/_partials/product-add-to-cart.tpl
in there find
{$product.availability_message}
and modify it like this
{$product.availability_message nofilter}.
It should help P.S. Do not forgot to clear cache and recompile

Ad
source: stackoverflow.com
Ad