- Posts: 26
- Thank you received: 3
Getting error under Specifiations
4 years 4 months ago #341608
by InSite
Getting error under Specifiations was created by InSite
-- 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.
-- 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.
Code:
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.
4 years 4 months ago #341609
by nicolas
Replied by nicolas on topic Getting error under Specifiations
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.
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.
4 years 4 months ago #341626
by InSite
Replied by InSite on topic Getting error under Specifiations
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.
4 years 4 months ago #341632
by nicolas
Replied by nicolas on topic Getting error under Specifiations
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:
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:
Code:
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.188 seconds