Getting error under Specifiations

  • Posts: 26
  • Thank you received: 3
1 year 11 months ago #341608

-- HikaShop version -- : 4.5.1
-- Joomla version -- : latest
-- PHP version -- : 7.4
-- Browser(s) name and version -- : brave latest
-- Error-message(debug-mod must be tuned on) -- : Your products condition ( you can use either 'used', 'new' or 'refurbished' and no other value is allowed). If you enter here the column name of a custom product field, it will use the value of the custom field for each product allowing you to have a different condition for each product

Hello trying to add the conditions, new,used,refurbished and everything shows fine except get this error below.

Your products condition ( you can use either 'used', 'new' or 'refurbished' and no other value is allowed). If you enter here the column name of a custom product field, it will use the value of the custom field for each product allowing you to have a different condition for each product

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 year 11 months ago #341609

Hi,

There is already a field in each product to select the "condition" under the "SEO" section of the product edit screen.
So you can just enter "product_condition" in the setting of the Google Products plugin and it will use what you selected in each product.

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

  • Posts: 26
  • Thank you received: 3
1 year 11 months ago #341626

Hello thanks for the reply. I did have that selected but it wouldn't show up on the frontend product listing under specifications?

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 year 11 months ago #341632

Hi,

It's not meant to be displayed there.
It's meant to be added as a meta tag for search engines.
If you want to add that information to the product page, you need to add some code in a view override of the product page to handle that via the menu Display>Views.
Something like that for example:

switch($this->element->product_condition) {
 case 'NewCondition'
  echo JText::_('HIKA_NEW');
  break;
 case 'UsedCondition'
  echo JText::_('HIKA_USED');
  break;
 case 'RefurbishedCondition'
  echo JText::_('HIKA_REFURBISHED');
  break;
}

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

Time to create page: 0.061 seconds
Powered by Kunena Forum