The default value of one of the characteristics of that product isn't available

  • Posts: 548
  • Thank you received: 11
  • Hikamarket Multivendor Hikashop Business
1 year 11 months ago #341699

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.2.34
-- Browser(s) name and version -- : google chrome
-- Error-message(debug-mod must be tuned on) -- : The default value of one of the characteristics of that product isn't available as a variant. Please check the characteristics and variants of that product

The default value of one of the characteristics of that product isn't available as a variant. Please check the characteristics and variants of that product

how to remove this message and why this message will show out?

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
1 year 11 months ago #341703

Hi,

That means that you have some discrepency in the data of the variants of the product.
If you edit the product in the backend, you can access the list of variants under its "variants" tab.
There, you'll find a listing of the variants with a "default" column. In that column, you can see which variant is the default one. Normally, each product has one default variant.
That message indicates that the variant which is selected as default uses a value of a characteristic which has been removed from the characteristic when you edit it in the menu Products>Charactersitics.
So you need to check the variants of that product, and maybe select a new default variant or resave the default variant.

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

  • Posts: 548
  • Thank you received: 11
  • Hikamarket Multivendor Hikashop Business
1 year 11 months ago #341719

Hi, possible to remove the message alert? Where can I remove?

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
1 year 11 months ago #341720

Hi,

There should be several ways. But I don't know what you did to reach that situation and I don't know how your product and its characteristics and variants are currently configured so it's hard to say anything precise.
The simplest and cleanest is this:
- delete all the variants of the product
- add back all the variants and reconfigure them

The quick and dirty solution is to remove the line

$app->enqueueMessage('The default value of one of the characteristics of that product isn\'t available as a variant. Please check the characteristics and variants of that product');
in the file administrator/components/com_hikashop/classes/product.php but I don't recommend that.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum