Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
If you configured a shipping service with taxes and you disable the Tax module, you will end up with an inaccessible Drupal site because of a call to an undefined function "commerce_tax_rate_load()". This patch adds Commerce Tax to the dependency list so you are not able to disable the tax module without disabling the Flat Rate module.
Comment | File | Size | Author |
---|---|---|---|
add_commerce_tax_as_dependency.patch | 344 bytes | elmotri |
Comments
Comment #1
Simon Georges CreditAttribution: Simon Georges commentedClosing #1391418: Disabling commerce_tax breaks the site as a duplicate of this issue.
Changing status as there is a patch to review.
Comment #2
TuFrac CreditAttribution: TuFrac commentedChanging status to reviewed & tested by the community
Comment #3
rszrama CreditAttribution: rszrama commentedInstead of adding the dependency, I've just wrapped this code in a check to see if the Tax module is installed. This is how we treat it on the tax rate edit form.