WooCommerce Tax column is not exporting when hpos is used
When setting up a custom order view using Admin Columns Pro with the WooCommerce Add-on the tax field appears to allow the export option but it doesn’t actually export.
This seems to be related to using WooCommerce hpos. It also doesn’t seem to work when you have hpos enabled and the “Enable compatibility mode (synchronizes orders to the posts table).” option enabled.
It seems that the old method had public/wp-content/plugins/admin-columns-pro/addons/woocommerce/classes/Column/ShopOrder/Tax.php
included the use ACP\Export;
, it also has an export class.
Wherthe public/wp-content/plugins/admin-columns-pro/addons/woocommerce/classes/Column/Order/Tax.php
is missing this.
It seems like it is missing some items the old method had public/wp-content/plugins/admin-columns-pro/addons/woocommerce/classes/Column/ShopOrder/Tax.php
When I update public/wp-content/plugins/admin-columns-pro/addons/woocommerce/classes/Column/ShopOrder/Tax.php
to include the following and the export function it worked again.
namespace ACA\WC\Column\Order;
use AC;
use ACA\WC\Sorting\Order\OrderData;
use ACP\ConditionalFormat\FilteredHtmlFormatTrait;
use ACP\ConditionalFormat\Formattable;
use ACP\Sorting\Sortable;
use ACP\Sorting\Type\DataType;
use ACP\Export;
class Tax extends AC\Column implements Export\Exportable, Formattable, Sortable
I’m hoping this could get added to the next release.
Please let me know if you need any additional information.
You must be logged in to reply to this topic.