Can you change the automatic tax value for multiple rules?

  • Posts: 254
  • Thank you received: 16
1 week 3 days 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: 76573
  • Thank you received: 12023
  • MODERATOR
1 week 3 days 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: 254
  • Thank you received: 16
1 week 3 days 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: 76573
  • Thank you received: 12023
  • MODERATOR
1 week 2 days 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.040 seconds
Powered by Kunena Forum