opnash
opnash

Reputation: 63

How to add a hyperlink in a text translation in prestashop?

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

Upvotes: 0

Views: 734

Answers (1)

Alexander Grosul
Alexander Grosul

Reputation: 1814

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

Upvotes: 1

Related Questions