Importing Product Options

  • Posts: 16
  • Thank you received: 1
9 years 4 months ago #234391

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Chrome latest

Can you give my any advice on importing options from a text file? I made a sample and exported it to see how that looked and the only field it generated that seemed important was "related". The field contained the product_code of the option. But when I upload using a "related" field, the option is not attached. Also in the hikashop_product_related table I see a field for product_related_type with the value "options" inserted, but that is not a field that is allowable in the import file. Any ideas? If I need to I'll write a script to attach the options. If I do, is there any other tables that would be affected (besides the product and the option in the product table)? Or is it possible to override the import to do the additional processing?

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 4 months ago #234405

Hi,

Their is an 'options' column you can use to add your product options to products in your CSV. In it, you want to enter the product_code of the option product. Also, the product option row (which defines the product information for the option) needs to be placed before the product row in the CSV.

The import already handles the import of options (and the export exports the options in the CSV generated as well), so there is no need to override the import system or add any additional processing.

The following user(s) said Thank You: daylily

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

Time to create page: 0.055 seconds
Powered by Kunena Forum