Hey that does sound pretty cool — can you open an issue and add the code (or a pull request would be really awesome) on our github repo? thanks!
Thread Starter
Tevya
(@thefiddler)
Thread Starter
Tevya
(@thefiddler)
I don’t know if you want me to post more suggestions as issues on Git, or suggest them here first. But another common thing that needs to be changed is the “Sort Code” for the Bacs (bank transfer) checkout. In the US we call it a “Routing Number”, in Australia they call it a “BSB” or “BSB Code”.
I found this code that will change it:
function wpse_77783_woo_bacs_ibn($translation, $text, $domain) {
if ($domain == 'woocommerce') {
switch ($text) {
case 'Sort Code':
$translation = 'BSB';
break;
}
}
return $translation;
}
add_filter('gettext', 'wpse_77783_woo_bacs_ibn', 10, 3);
From this thread: http://ww.wp.xz.cn/support/topic/change-sort-code-to-bsb-for-bacs-payment-method?replies=14#post-4314024
It would be nice to have a field where you can type whatever you want, and have it substitute it. Or have a drop-down of common alternatives like those I listed, plus maybe a few others.
thanks for posting on github, and yeah any future requests or issues is best on github as well, it’s easier to manage them there.
as for this request, it’s probably not a good fit for the customizer because it relies on the gettext filter, which isn’t a WooCommerce-related filter and really should only be used when there’s no other good way to change the content. I’d add an issue to the WooCommerce github repo to ask them to consider adding a specific filter for this instead 🙂
Thread Starter
Tevya
(@thefiddler)