#5375 - Setup Wizard: install test content fails on catalogues hook when eCommerce is not installed due to missing tax code field

  • By
  • Added
  • 7 views
Identifier #5375
Issue type Minor issue (breaks specific functionality)
Title Setup Wizard: install test content fails on catalogues hook when eCommerce is not installed due to missing tax code field
Status Completed
Handling member Chris Graham
Addon General / Uncategorised
Description When running install_test_content() with the ecommerce addon uninstalled, the catalogues hook fails because the products catalogue still exists with a tax_code field (which belongs to the ecommerce addon, thus does not exist).
Steps to reproduce

Additional information Needs discussion on how to handle situations like this:

* Should ecommerce remove all products-type catalogues on uninstall?
* Should special fields like tax_code fall back to a core field type installed with Composr depending on the set database type for that field (in this case, probably a list or short text)?
* When field hooks are uninstalled, should all fields of the same type be removed from the database?
* Should tax_code be a core field, not an ecommerce field?
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated