Closed devinsays closed 2 years ago
Hi @devinsays 👋 thanks for reaching out!
Our plugin does indeed support this functionality through the use of taxjar-specific filters in TaxJar_Order_Record::class and TaxJar_Refund_Record::class.
To add your unique storefront transaction prefix, you will want to use the add_filter
method to apply a custom callback function (usually added in your functions.php
file) that will prepend the desired prefix to the default transaction identifier.
function add_custom_store_prefix( $id ) {
return 'web1-' . $id;
}
add_filter('taxjar_get_order_transaction_id', 'add_custom_store_prefix');
add_filter('taxjar_get_refund_transaction_id', 'add_custom_store_prefix');
I'm going to close this issue now, but please feel free to reply to this comment for additional guidance if needed!
Perfect! Thanks for getting us set in the right direction.
Hi there. Sorry this is more of a support question than a feature request, but I think y'all could probably guide us best.
We are looking to set up multiple WooCommerce stores that all tie into the same TaxJar account. TaxJar support has recommended order prefixing so that we can have unique order numbers across all sites.
Is this something that is supported by the plugin? And if so, what is the best way to implement.
Here's the details from TaxJar support: