madpugger Posted January 5, 2024 Share Posted January 5, 2024 Hi, I have an issue where a tax group is deleted (tax group 1) and I would like to restore it, since product imports default to 1 on our import sheets. This then causes an error on the product when it is edited where the next tax is used (0%) when saved. If this is not noticed, then the customer will not pay VAT and it causes us problems! So in the DB, ps_tax_rules_group, there is a column "deleted" which shows this group as "1". When I change it to "0" i can see and edit the group in the BO, but when I save, it goes back to it's deleted state with no changes saved. Is there any other tables i should also edit to re-enable this group? Thanks Link to comment Share on other sites More sharing options...
musicmaster Posted January 6, 2024 Share Posted January 6, 2024 Did you check the ps_tax_rules_group_shop table? Link to comment Share on other sites More sharing options...
Nickz Posted January 6, 2024 Share Posted January 6, 2024 make to person pay for damage who deleted that group. So it won't happen again. Ask your hosting if they have a back up of before the act (of deleting). Link to comment Share on other sites More sharing options...
madpugger Posted January 6, 2024 Author Share Posted January 6, 2024 2 hours ago, Nickz said: make to person pay for damage who deleted that group. So it won't happen again. Ask your hosting if they have a back up of before the act (of deleting). It was me. It was deliberate at the time. And a back on help if I don’t know which tables need restored. in theory, setting deleted to 0’shoukd work. But when I do this, the tax rule only exists until I try to edit it (I.e. remove the EU countries to leave only UK. The deleted status returns in the table on save. so there must be a log somewhere that the BO checks and is deleting it again. for clarity, the tax group is not deleted in the database when you delete it. It simply adds a 1 to the deleted column. (And does something else too somewhere!) All the data is still there. Link to comment Share on other sites More sharing options...
madpugger Posted January 6, 2024 Author Share Posted January 6, 2024 3 hours ago, musicmaster said: Did you check the ps_tax_rules_group_shop table? Yes, it seems to be fine… is there something specific there? Thanks Link to comment Share on other sites More sharing options...
Nickz Posted January 6, 2024 Share Posted January 6, 2024 3 hours ago, madpugger said: It was deliberate at the time. Well next time don't do that. Set up a shop in localhost and test there first, get used to make back ups and such. Link to comment Share on other sites More sharing options...
madpugger Posted January 6, 2024 Author Share Posted January 6, 2024 30 minutes ago, Nickz said: Well next time don't do that. Set up a shop in localhost and test there first, get used to make back ups and such. I thank you for your condescending remarks and politely ask that you keep them to yourself! it was intentional at the time and I have plenty backups. I also have plenty text servers. Additionally, your comments offer nothing to the topic and are therefore completely pointless other than to make you feel good about yourself. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now