Skip to main content

Set variants default value with import

8 years 4 months ago #294544 by verzevoul
-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.8
-- PHP version -- : 7.0

Hello,

I import data with json string and i need to set a default variant in that import.
How can i do that?

Thank you

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

8 years 4 months ago #294551 by nicolas
Hi,

I don't understand what you mean ? There is no json import in HikaShop.
What is the precise format of the file you're importing ?
Could you provide a copy of the file so that we can see where you are with the import ?

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

8 years 4 months ago #294597 by verzevoul
Hello,

I have created my own import system in php that works fine except that the default variant is not set.
I create the main product, then I create the variants but I can't find the difference of default variant to set it via SQL.
I receive the data via json string.

Thank you

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

8 years 4 months ago #294608 by nicolas
Hi,

The default variant is set by have an entry for each characteristic of the product in the table hikashop_variant linking the main product of the hikashop_product table and the default values you want for each characteristic of the hikashop_characteristic table.
The following user(s) said Thank You: verzevoul

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

Time to create page: 0.055 seconds
Powered by Kunena Forum