I have a question.
I'm using Opencart 184.108.40.206 and I want to add an automatic meta descritption in the header but as I have 4 different categories, the text has to be different for each one.
Basically, I want to use a something simple like:
if category id = 22 echo <meta name="description" content="product name and some text 1">
if category id = 33 echo <meta name="description" content="product name and some text 2">
if category id = 55 echo <meta name="description" content="product name and some text 3">
I know that categoryID of a product is not specified in the header.pho controller so I would have to add it there.
Additionally I need the product's name too which is not specified in the header.php as far as I know.
Can someone please tell me what to add to the header.php so that I can do what I have intenteded?
I did some search on the forum but have not found what exactly I need.
Thanks a lot!
to get it made by a Dev, I assume.
https://www.opencart.com/index.php?rout ... load_id=47
I don't use the Forum Mailer, to reach me, contact: email@example.com
OpenCart LIGHT v.220.127.116.11 http://www.bigmax.ch/
OpenCart V-PRO v.18.104.22.168 http://www.ocshop.li/shop/
1'500+ FREE OC Extensions - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
Users browsing this forum: No registered users and 36 guests