Jump to content

Display Meta Title in place of Product Name


Recommended Posts

Hello,

i'm using a management software to export all of my products before I can upload them to Prestashop: since the title are getting wiped out at every upload (I know I can just ignore the title column, but I work for a pharmacy and products are constatly changing, so I add a lot of them every time) I'm using the meta tag.

The product names from the management are ugly as hell (it's a kind of conventional code of abbreviation for pharmacies, where, for instance, "pills" are "PLL"): is there a way to let the customers display the meta title in place of the ugly product name?

I attached a screenshot with highlighted ugly title and meta title (as under <head>)

Thank you in advance! 

Screenshot 2020-11-18 at 18.58.17.png

Share this post


Link to post
Share on other sites

You could update the product name based on the meta title.

As fallback, you could write a piece of code that will handle the name before creating/updating the product.
For example you could replace PLL with pills etc ­čśë

Share this post


Link to post
Share on other sites

It seems a cumbersome solution: I already got the "meta title" written in its location, I just need prestashop frontend to display that instead of the product name... but when I analyzed the product page I found that there are two <title> tag, one in the head section (that's the meta title, which is what I want my customers to see) and the other one in the body section (the ugly one, but that I can't get rid of because it's automatically imported each time I run the cvs upload)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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