Product import unexpectedly changes tax category

  • Posts: 458
  • Thank you received: 19
  • Hikashop Business
2 days 20 hours ago #373192

Hi,

I have noticed an issue when updating existing products through HikaShop import.

The import itself works correctly and updates the product information as expected. However, after importing, the product's Tax category is automatically changed.

Before the import, the product has:

Tax category: Impuestos España

After the import, it changes automatically to:

Tax category: Electronic goods & services

I am not intentionally modifying the tax category during the import.

Could you please tell me:

What CSV field/column controls the product tax category during an import?
If that column is not included in the CSV, should HikaShop preserve the existing tax category?
Could HikaShop be assigning a default tax category during the import?
Is there any configuration or import behaviour that could explain why Electronic goods & services is being assigned automatically?

The product already exists in HikaShop; I am using the import mainly to update its content, not to create a new product.

I can provide the CSV headers and an example imported row if necessary.

I have attached screenshots showing the tax category before and after the import.

Thanks.

Attachments:

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

  • Posts: 86089
  • Thank you received: 14195
  • MODERATOR
2 days 13 hours ago #373197

Hi,

Thank you for the clear report, you found a bug and I could reproduce it here.

To answer your questions in order:

- The column is product_tax_id, and it takes either the identifier of a tax category or its name.
- Yes, when that column is not in your file, an update should leave the tax category of the product alone.
- It does not, and that is the bug: the tax category HikaShop gives to a product being created was also applied to the products being updated. The one it picks is the last of your tax categories in the ordering of Configuration > Taxes, which is why "Electronic goods & services" is the one you see.
- So there is no setting behind it, nothing on your side to correct.

It is fixed on our end and the fix has been added on our end. Download the install package of HikaShop on our website and install it on yours in order to get it.


Without the patch, adding a product_tax_id column to your file with the value you want, for example:

product_code;product_name;product_tax_id
REF001;My product;Impuestos España

keeps each product on its own tax category through the import. If all the products of the file share the same one, that is a single value repeated on every row.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum