Cyclical import of products without changing the category

  • Posts: 33
  • Thank you received: 3
  • Hikashop Business
2 years 11 months ago #332316

-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.9.26

Hello, I am integrating the store in the dropshiping model. The products are downloaded several times a day from the csv file. This is the same product database, but updated, among others, stocks or prices several times a day. How to do it so that the product categories themselves do not update? When I manually change the category of an already imported product in the hikashop panel, I would like the category not to change after the next import from csv (update). How to do it?

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
2 years 11 months ago #332318

Hi,

There is no option for that.
However, what you can try is this:
Change the line:
if(empty($product->product_id))
in the function _insertCategories of the file administrator/components/com_hikashop/helpers/import.php to:
if(empty($product->product_id) || !empty($product->hikashop_update))
This should skip the update of the categories for products already on the website so that only products that are new get linked to the categories in the CSV.

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

Time to create page: 0.046 seconds
Powered by Kunena Forum