Ad
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 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
Related Questions
- → JS Get multiple links in a string
- → SEO effects of wrapping block-level elements in links
- → How to make a div linkable?
- → Nofollow all external links - yes or no?
- → "Link To" not working with React 0.14.5 and React Router 2.0.0.rc4
- → How can i add a picture instead of text in an if or else statement
- → Found a issue related to Laravel routing
- → Navbar Links Not Working
- → How to set the color to the user's link color in CSS?
- → Use of bind when calling a function on onClick Event
- → How do I put hyperlink in buttons with Laravel?
- → Prevent function calling before hyperlink clicked
- → SVG Image Map in Wordpress - Hyperlinks do not work
Ad