[Skip to main content](#vessel-content)

#   \[SOLVED\] No Metadata when variant on product

##

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

13 years 5 months ago [\#106150](#106150) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No Metadata when variant on product](/forum/3-bug-report/81963-solved-no-metadata-when-variant-on-product?start=20#106150 "Hallo.  I changed from virtuemart to hikashop because youre solution is more intuitive and easier to handle for my needs. Compliments. I'im still experiencing before to change to paid plans because i need some features you offer with these.  I have only one big problem with the metadata.  When i ad variants to the product there are shown the genereal joomla metadatas. Only product with no variants show the right metadata put in the product section.  Now my question. How do i get the mainproduct metadata. I think the product keeps the same also if it changes color or size don't you agree?  Please give me some advice how i can fix this.  best regards")*

Change the line:
if(!in_array($field, array('product_keywords','product_description','product_page_title','product_canonical','product_alias','product_url')))

by:
if(!in_array($field, array('product_keywords','product_meta_description','product_page_title','product_canonical','product_alias','product_url')))

at the same place and that should help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTk2My1zb2x2ZWQtbm8tbWV0YWRhdGEtd2hlbi12YXJpYW50LW9uLXByb2R1Y3Q/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kubwit](/forum/user/19182-kubwit "View kubwit's Profile")**
- [![kubwit's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/19182-kubwit "View kubwit's Profile") Topic Author
- [ Offline](/forum/user/19182-kubwit)

Less More

- Posts: 75
- Thank you received: 3
-
-

13 years 5 months ago [\#106258](#106258) by [kubwit](/forum/user/19182-kubwit "View kubwit's Profile")  Replied by *[kubwit](/forum/user/19182-kubwit "View kubwit's Profile")* on topic *[No Metadata when variant on product](/forum/3-bug-report/81963-solved-no-metadata-when-variant-on-product?start=20#106258 "Hallo.  I changed from virtuemart to hikashop because youre solution is more intuitive and easier to handle for my needs. Compliments. I'im still experiencing before to change to paid plans because i need some features you offer with these.  I have only one big problem with the metadata.  When i ad variants to the product there are shown the genereal joomla metadatas. Only product with no variants show the right metadata put in the product section.  Now my question. How do i get the mainproduct metadata. I think the product keeps the same also if it changes color or size don't you agree?  Please give me some advice how i can fix this.  best regards")*

hallo and thanks for reply.

i can't find the line. My file is
Code:

/** * @package HikaShop for Joomla! * @version 2.1.3 * @author hikashop.com * @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */

maybe i'm working on the wrong version??

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTk2My1zb2x2ZWQtbm8tbWV0YWRhdGEtd2hlbi12YXJpYW50LW9uLXByb2R1Y3Q/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

13 years 5 months ago [\#106259](#106259) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No Metadata when variant on product](/forum/3-bug-report/81963-solved-no-metadata-when-variant-on-product?start=20#106259 "Hallo.  I changed from virtuemart to hikashop because youre solution is more intuitive and easier to handle for my needs. Compliments. I'im still experiencing before to change to paid plans because i need some features you offer with these.  I have only one big problem with the metadata.  When i ad variants to the product there are shown the genereal joomla metadatas. Only product with no variants show the right metadata put in the product section.  Now my question. How do i get the mainproduct metadata. I think the product keeps the same also if it changes color or size don't you agree?  Please give me some advice how i can fix this.  best regards")*

I told you to add that line in a previous message:
[ www.hikashop.com/en/forum/3-bug-report/8...?limitstart=0#105963](http://www.hikashop.com/en/forum/3-bug-report/81963-no-metadata-when-variant-on-product.html?limitstart=0#105963)
So it's not possible that you don't have it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTk2My1zb2x2ZWQtbm8tbWV0YWRhdGEtd2hlbi12YXJpYW50LW9uLXByb2R1Y3Q/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kubwit](/forum/user/19182-kubwit "View kubwit's Profile")**
- [![kubwit's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/19182-kubwit "View kubwit's Profile") Topic Author
- [ Offline](/forum/user/19182-kubwit)

Less More

- Posts: 75
- Thank you received: 3
-
-

13 years 5 months ago [\#106272](#106272) by [kubwit](/forum/user/19182-kubwit "View kubwit's Profile")  Replied by *[kubwit](/forum/user/19182-kubwit "View kubwit's Profile")* on topic *[No Metadata when variant on product](/forum/3-bug-report/81963-solved-no-metadata-when-variant-on-product?start=20#106272 "Hallo.  I changed from virtuemart to hikashop because youre solution is more intuitive and easier to handle for my needs. Compliments. I'im still experiencing before to change to paid plans because i need some features you offer with these.  I have only one big problem with the metadata.  When i ad variants to the product there are shown the genereal joomla metadatas. Only product with no variants show the right metadata put in the product section.  Now my question. How do i get the mainproduct metadata. I think the product keeps the same also if it changes color or size don't you agree?  Please give me some advice how i can fix this.  best regards")*

i get error Code:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /srv/www/ilmondodiwit.com/components/com_hikashop/views/product/view.html.php on line 825

adding the word meta_.

The line now is

if(!in_array($field,array('product_keywords','product_meta_description','product_page_title','product_canonical','product_alias','product_url')))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTk2My1zb2x2ZWQtbm8tbWV0YWRhdGEtd2hlbi12YXJpYW50LW9uLXByb2R1Y3Q/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 5 months ago [\#106306](#106306) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[No Metadata when variant on product](/forum/3-bug-report/81963-solved-no-metadata-when-variant-on-product?start=20#106306 "Hallo.  I changed from virtuemart to hikashop because youre solution is more intuitive and easier to handle for my needs. Compliments. I'im still experiencing before to change to paid plans because i need some features you offer with these.  I have only one big problem with the metadata.  When i ad variants to the product there are shown the genereal joomla metadatas. Only product with no variants show the right metadata put in the product section.  Now my question. How do i get the mainproduct metadata. I think the product keeps the same also if it changes color or size don't you agree?  Please give me some advice how i can fix this.  best regards")*

Hi,

And if you remove this "meta" it's working ?
Are you sure that you don't have inadvertently added a character somewhere else in this file ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTk2My1zb2x2ZWQtbm8tbWV0YWRhdGEtd2hlbi12YXJpYW50LW9uLXByb2R1Y3Q/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kubwit](/forum/user/19182-kubwit "View kubwit's Profile")**
- [![kubwit's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/19182-kubwit "View kubwit's Profile") Topic Author
- [ Offline](/forum/user/19182-kubwit)

Less More

- Posts: 75
- Thank you received: 3
-
-

13 years 5 months ago [\#106390](#106390) by [kubwit](/forum/user/19182-kubwit "View kubwit's Profile")  Replied by *[kubwit](/forum/user/19182-kubwit "View kubwit's Profile")* on topic *[No Metadata when variant on product](/forum/3-bug-report/81963-solved-no-metadata-when-variant-on-product?start=20#106390 "Hallo.  I changed from virtuemart to hikashop because youre solution is more intuitive and easier to handle for my needs. Compliments. I'im still experiencing before to change to paid plans because i need some features you offer with these.  I have only one big problem with the metadata.  When i ad variants to the product there are shown the genereal joomla metadatas. Only product with no variants show the right metadata put in the product section.  Now my question. How do i get the mainproduct metadata. I think the product keeps the same also if it changes color or size don't you agree?  Please give me some advice how i can fix this.  best regards")*

> Xavier wrote: Are you sure that you don't have inadvertently added a character somewhere else in this file ?

You got right !!

it works !!!

Thanks. I put solved ! Will this inserted in the code of future updates or do i have to change after each update.
Is the code of the essential and the business version the same ?? And will the work i did until now (products and shop settings) kept after upgrade from free version

I would like to purchase next week.

Please let me know.

Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTk2My1zb2x2ZWQtbm8tbWV0YWRhdGEtd2hlbi12YXJpYW50LW9uLXByb2R1Y3Q/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

13 years 5 months ago [\#106394](#106394) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No Metadata when variant on product](/forum/3-bug-report/81963-solved-no-metadata-when-variant-on-product?start=20#106394 "Hallo.  I changed from virtuemart to hikashop because youre solution is more intuitive and easier to handle for my needs. Compliments. I'im still experiencing before to change to paid plans because i need some features you offer with these.  I have only one big problem with the metadata.  When i ad variants to the product there are shown the genereal joomla metadatas. Only product with no variants show the right metadata put in the product section.  Now my question. How do i get the mainproduct metadata. I think the product keeps the same also if it changes color or size don't you agree?  Please give me some advice how i can fix this.  best regards")*

Hi,

The modification will be added in next release of HikaShop.
That file is the same in all the versions of HikaShop.
You won't loose your settings and data when you upgrade.
Note however that this code modification will have to be done again each time you install HikaShop on your website until next version of HikaShop if you want that problem fixed.

The following user(s) said Thank You: [kubwit](/forum/user/19182-kubwit "View kubwit's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTk2My1zb2x2ZWQtbm8tbWV0YWRhdGEtd2hlbi12YXJpYW50LW9uLXByb2R1Y3Q/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.076 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
