Set variants default value with import

  • Posts: 1055
  • Thank you received: 11
  • Hikashop Business
6 years 4 months ago #294544

-- 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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 4 months ago #294551

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.

  • Posts: 1055
  • Thank you received: 11
  • Hikashop Business
6 years 4 months ago #294597

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 4 months ago #294608

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.057 seconds
Powered by Kunena Forum