Can you change the automatic tax value for multiple rules?

  • Posts: 290
  • Thank you received: 22
2 years 2 months ago #344954

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2.2
-- PHP version -- : 8.1

Hi, I want to change all the shipping rules so they use "Proportion" as the Automatic taxes.

Can this be done without doing them all manually like we do with actions in the product listing?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344959

Hi,

No, you need to do them one by one via the interface as that setting is serialized in a field of the database.

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

  • Posts: 290
  • Thank you received: 22
2 years 2 months ago #344983

Ok, that's too bad then.

Can the default setting for this field be changed somewhere?
Then I could remove all 500+ shipping lines and re-import them :-)

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344986

Hi,

Well, if you export a CSV of the hikashop_shipping table via PHPMyAdmin, maybe you can use some search & replace in Excel to change the value in the shipping_params serialized data and then reimport the CSV.

Note that the default value for that setting is already "Proportion". You can see that when you create a new shipping method.
It is set with the line:

$this->element->shipping_params->shipping_tax = 1;
in the view file plugins / form.php

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

Time to create page: 0.059 seconds
Powered by Kunena Forum