Use Mass Action and/or Product Update Plugin to change images_path

  • Posts: 16
  • Thank you received: 4
2 years 1 week ago #346473

-- url of the page with the problem -- : shop.cwpoolsandspas.com
-- HikaShop version -- : 4.6.2
-- Joomla version -- : Joomla! 4.2.5 Stable
-- PHP version -- : 8.0.17
-- Browser(s) name and version -- : na

I need to sync images entered into my Point-of-Sale software for existing products with Hikashop. I have created a cron job to automatically FTP the images to Hikashop image directory and then it creates .csv file to update the Hikashop products (via the Product Plugin). But what column name do I use to update images_path in Hikashop?

When I test the .csv file import in In Mass Action none of the below work:
product_code,images_path
generates a column/value mismatch error

product_code,images
processes successfully but doesn't update the product image

product_code_images_name
processes successfully but doesn't update the product image

Is it possible to update images on existing products using either Mass Action or Product Update Plugin?

Thank you

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 1 week ago #346477

Hi,

The mass action import mechanism doesn't allow for the update of the images of the products.
But the Product update plugin allows for it, similarly to the manual import in the menu Products>import (they both use the same code to perform the update). So if you follow the documentation on the product import, you can see you need to use the column "images":
www.hikashop.com/support/documentation/73-hikashop-import.html
Note that the plugin actually has a column name conversion option so you can actually have any name you want in the CSV as long as you properly configure the plugin's conversion option to match the column with the "images" normal column name.

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

  • Posts: 16
  • Thank you received: 4
1 year 4 months ago #353625

Using the product Import Plug-in to update images works for my main products but not for my existing variants. The fields in my upload .csv file are

  • product_code
  • product_name
  • images

Do I need to include the product_parent_id for images to be updated for existing variants?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 4 months ago #353630

Hi,

If you use the Products>Import menu, you need the product_parent_id column and probably the characteristic columns too:
www.hikashop.com/support/documentation/7...-import.html#variant

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

Time to create page: 0.059 seconds
Powered by Kunena Forum