Hi

I'm attaching a patch I'm working in for this, I need to export my taxes for including them in a distribution.
I had to change the original id for the taxes so they could be exported by ctools (numeric ids are not supported, alphanumeric are strongly recommended for tables that store settings). I've also included a update_N that modifies all the existing ids (it also update the conditional actions table) to convert them to alphanumeric.
Once all the ids are alphanumeric, can be exported by ctools both using the export link in the taxes administration page and using features. Taxes can be imported as well.

Please apply this patch carefully if you have a running ubercart installation.

I think that we can use something similar for exporting another settings, like shipping quotes and payment methods. Let me know what you think.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pcambra’s picture

Status: Active » Needs review
FileSize
2.56 KB
7.66 KB

Ok, forget about the first patch, I've worked with exportables module 2.x (http://drupal.org/project/exportables) and I've came up with a lighter patch for getting taxes exportable, which means that you can export them, import in another site/enviroment and include them in features.
An uc_taxes.export.inc is included as well.

pcambra’s picture

FileSize
7.74 KB

Correction of the patch path (was from uc_taxes folder, I've modified to be in ubercart folder directly)

pcambra’s picture

Only for commodity purposes, this is the same patch than in #2 but for 2.2 version

pcambra’s picture

Category: task » feature
FileSize
8.59 KB
8.58 KB

Some bugfixes and rolled against last dev version. Export file remains the same of #1

Nobody else finds this interesting to have in ubercart?

Also attaching patchfile for 2.2

sagannotcarl’s picture

Thanks for the patch! I might need this later this week for a project. I'll report back what I find.

pcambra’s picture

Rerolled against 2.4 and -dev

To do:
hook_schema_alter to include the exportables & ctools options in previously installed ubercart installs
Revert capability

TR’s picture

Status: Needs review » Needs work

I think this is a good idea.

Let's put it through the testbot as a first step to getting this issue back on track.

TR’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, ubercart-832892-exportable-taxes.patch, failed testing.

longwave’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev
Status: Needs work » Postponed

This would be nice but it seems nobody really needs it. In 8.x, perhaps taxes should be config entities.

TR’s picture

Issue summary: View changes
Status: Postponed » Closed (outdated)

This has been implemented in 8.x-4.x.

The patches above are for 6.x-2.x, which is now unsupported. There has been no interest/activity on this issue for years, and the existing patches don't work with 7.x-3.x.

If you are interested in this feature for 7.x-3.x please provide a patch.