[SOLVED] No Metadata when variant on product

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 5 months ago #106150

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 or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #106258

hallo and thanks for reply.

i can't find the line. My file is

/**
 * @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 or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 5 months ago #106259

I told you to add that line in a previous message:
www.hikashop.com/en/forum/3-bug-report/8...?limitstart=0#105963
So it's not possible that you don't have it.

Please Log in or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #106272

i get error

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 or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #106306

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 or Create an account to join the conversation.

  • Posts: 75
  • Thank you received: 3
11 years 5 months ago #106390

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 or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 5 months ago #106394

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum