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

#   Several problem related variants

##

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 3 weeks ago -  9 years 3 weeks ago [\#282075](#282075) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282075 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.2
-- PHP version -- : 7.1.9

Hi, I have the following problems with the variants.
The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:
[ ![ScreenShot11-08-17at10.37AM.PNG](/forum/attachment/41264) ](/forum/attachment/41264 "...7at10.37AM.PNG")

The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:
[ ![ScreenShot11-08-17at10.39AM.PNG](/forum/attachment/41265) ](/forum/attachment/41265 "...7at10.39AM.PNG")

This is a short video of the test: [ youtu.be/Hjh5h7AoEDE](https://youtu.be/Hjh5h7AoEDE)

- [ ![ScreenShot11-08-17at10.37AM.PNG](/forum/attachment/41264) ](/forum/attachment/41264 "...7at10.37AM.PNG") [ ](/forum/attachment/41264?download=1 "...7at10.37AM.PNG")
- [ ![ScreenShot11-08-17at10.39AM.PNG](/forum/attachment/41265) ](/forum/attachment/41265 "...7at10.39AM.PNG") [ ](/forum/attachment/41265?download=1 "...7at10.39AM.PNG")

Last edit: 9 years 3 weeks ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI2Nzktc2V2ZXJhbC1wcm9ibGVtLXJlbGF0ZWQtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14327
-
-

9 years 3 weeks ago [\#282079](#282079) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282079 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")*

Hi,

Regarding HikaShop, this can only happen if you have variants with data in the hikashop_product but not in the hikashop_variant table.
This should normally not happen. So the issue is not really that setting the default variant doesn't work, but something else which made that situation possible.
Normally, when the first variant is created for a product, it is automatically selected as default, and the data is automatically generated in both tables for all the variants when you create them.
Are you able to reproduce the problem with another product ? What are the steps you took to reach that state ?

Also, which version of HikaMarket do you have ?

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

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 3 weeks ago [\#282122](#282122) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282122 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")*

Hi, all the variants added by other users through Hikamarket is getting this problem. For the test I used the example demo of Hikashop and execute scenarios with two users-one is a user (the partner who added the variant), the other is like a super admin. You can see in the video I've shared in the first post, the exact steps I've done. I use the latest versions of your products (downloaded from today).

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 3 weeks ago [\#282123](#282123) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282123 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")*

duplicate post
[ www.hikashop.com/forum/22-market-bug-rep...ersion-2.html#282043](https://www.hikashop.com/forum/22-market-bug-report/892464-a-few-bugs-discovered-in-version-2.html#282043)

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 3 weeks ago [\#282160](#282160) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282160 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")*

Yes, I opened a new topic because, as far as I understand, it should be in the Hikashop section and we have already commented on some issues that have already been fixed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI2Nzktc2V2ZXJhbC1wcm9ibGVtLXJlbGF0ZWQtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14327
-
-

9 years 3 weeks ago [\#282164](#282164) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282164 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")*

Hi,

As Jerome said on the other thread, and as I said in my last message here, we need to understand how you are able to reproduce the issue.
What you provided in the video only shows the result: the operations in the video don't work. And I already told you, that it's normal, that is because the data is missing in the database.
What we need to know is how you create that situation. So again, could you provide precise instructions of what you do to get to that state with a product which has one variant which isn't default and is missing half of the data in the database ? How is that product created ? How is the variant added exactly ?

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

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 3 weeks ago [\#282234](#282234) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282234 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")*

Hi I made a video from the installation of your products until the creation of the variants and the manifestation of the two errors: [ youtu.be/iuls\_2ReJsY](https://youtu.be/iuls_2ReJsY)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI2Nzktc2V2ZXJhbC1wcm9ibGVtLXJlbGF0ZWQtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14327
-
-

9 years 2 weeks ago [\#282238](#282238) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282238 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")*

Hi,

Great. That helps a lot, thanks.
So change the code: Code:

if(!empty($element-&gt;characteristics)) { $insert = array(); foreach(array_keys($element-&gt;characteristics) as $c) { if(is_numeric($c) &amp;&amp; (int)$c &gt; 0) $insert[] = (int)$c . ',' . (int)$product_id . ',0'; } if(empty($insert)) return false; $query = 'INSERT IGNORE INTO ' . hikashop_table('variant'). ' (variant_characteristic_id, variant_product_id, ordering)'. ' VALUES (' . implode('),(', $insert) . ');'; $this-&gt;database-&gt;setQuery($query); $this-&gt;database-&gt;query(); unset($insert); }

to: Code:

if(empty($element-&gt;characteristics)) return true; $insert = array(); foreach(array_keys($element-&gt;characteristics) as $c) { if(is_numeric($c) &amp;&amp; (int)$c &gt; 0) $insert[] = (int)$c . ',' . (int)$product_id . ',0'; } if(empty($insert)) return false; $query = 'INSERT IGNORE INTO ' . hikashop_table('variant'). ' (variant_characteristic_id, variant_product_id, ordering)'. ' VALUES (' . implode('),(', $insert) . ');'; $this-&gt;database-&gt;setQuery($query); $this-&gt;database-&gt;query(); unset($insert); if(empty($element-&gt;product_parent_id)) return true; // We also check if there is a default variant for the main product $query = 'SELECT * FROM ' . hikashop_table('variant') . ' WHERE variant_product_id = ' . $element-&gt;product_parent_id . ' AND variant_characteristic_id NOT IN (' . implode(',', array_keys($element-&gt;characteristics)) . ')'; $this-&gt;database-&gt;setQuery($query); $default = $this-&gt;database-&gt;loadObject(); if(!empty($default)) return true; // If not, we add the entries for it too using the current variant $insert = array(); foreach(array_keys($element-&gt;characteristics) as $c) { if(is_numeric($c) &amp;&amp; (int)$c &gt; 0) $insert[] = (int)$c . ',' . (int)$element-&gt;product_parent_id . ',0'; } if(empty($insert)) return false; $query = 'INSERT IGNORE INTO ' . hikashop_table('variant'). ' (variant_characteristic_id, variant_product_id, ordering)'. ' VALUES (' . implode('),(', $insert) . ');'; $this-&gt;database-&gt;setQuery($query); $this-&gt;database-&gt;query(); unset($insert);

in the file administrator/components/com_hikashop/classes/product.php
Then, create a new product like this one and test again the same steps and it should hopefully work fine.

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

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 2 weeks ago [\#282270](#282270) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282270 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")*

Hi, unfortunately I got the same error.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 2 weeks ago [\#282273](#282273) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282273 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")*

Hello,

Basically, a characteristic "vendor" do not have any value in the database ; that characteristic is using element provided dynamically via a special trigger.
Due to the fact that there is no "values", you can't have a default value for the vendor because you can't store that information in the database.

So, something has to be changed in the "toggle" in order to avoid to affect a value where there is no available values.

Now regarding the rest, there is a line of code : Code:

$query = 'SELECT * FROM ' . hikashop_table('variant') . ' WHERE variant_product_id = ' . $element-&gt;product_parent_id . ' AND variant_characteristic_id NOT IN (' . implode(',', array_keys($element-&gt;characteristics)) . ')';

The variable $element-&gt;characteristics can have an entry without a name ; so if you do a "array_keys", you can have an empty string in the array of result and not just numbers. That explain one of the errors you got.

That's why, I proposed to replace for the HikaShop product class (in the function updateCharacteristics, that code Code:

$query = 'DELETE FROM ' . hikashop_table('variant') . ' WHERE variant_product_id = ' . $product_id; if(!empty($element-&gt;characteristics)) $query .= ' AND variant_characteristic_id NOT IN (' . implode(',', array_keys($element-&gt;characteristics)) . ')';

into Code:

$c = $element-&gt;characteristics; unset($c['']); $query = 'DELETE FROM ' . hikashop_table('variant') . ' WHERE variant_product_id = ' . $product_id; if(!empty($c)) $query .= ' AND variant_characteristic_id NOT IN (' . implode(',', array_keys($c)) . ')'; unset($c);

Thus it will avoid the SQL error when updating the characteristics.

Regarding the toggle part ; we have to perform deeper investigation and see how we can improve the structure to allow dynamic characteristics like the "vendors" one, to still have the possibility to have a default value (even if there is no values in the database).

Please note that you have to revert the Nicolas' patch.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 2 weeks ago [\#282285](#282285) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282285 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")*

Thanks for the reply. I've been seeing this mistake for a long time, but Jerome told me a while ago that you would release Hikamarket 2 and that's why I did not report this problem to see if it was fixed there. When you're done with the patch, let me know. I have not found any errors more like this ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI2Nzktc2V2ZXJhbC1wcm9ibGVtLXJlbGF0ZWQtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14327
-
-

9 years 2 weeks ago [\#282289](#282289) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Several problem related variants](/forum/26-product-category-display/892679-several-problem-related-variants#282289 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.1.9  Hi, I have the following problems with the variants. The first if I try to set a variant (created by a partner) by default from the administration of Hikashop, I will get the following error:  The second is if I try to change the variant (created by a partner) from the panel of Hikamarket will get this error:  This is a short video of the test:   youtu.be/Hjh5h7AoEDE")*

Hi,

We've added these patches on our end so that the interface doesn't crash when using it, in both HikaShop and HikaMarket.

For the default variant selection to work with dynamic characteristics like the "vendor" one will require a profound rework of the characteristics/variants system. We have an idea of what should be done, basically transfer the data from the hikashop_variant table to a column in the hikashop_product table for the default variant selection, but it means a lot of things to be adapted here and there to handle that change.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI2Nzktc2V2ZXJhbC1wcm9ibGVtLXJlbGF0ZWQtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) 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.085 seconds

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