willrossi
Forum Replies Created
-
Forum: Plugins
In reply to: [Afterpay Gateway for WooCommerce] Compatibility with Aelia Multi-currencyOk any ETA when this will be supported or another solution because without it we’re unable to use Afterpay.
Our store https://ecowool.com has Afterpay CBT enabled for AUD and NZD, we need to display AU customers, AUD pricing and NZ customers NZD and showcase that the entire way through. AU customers shouldn’t see NZD pricing.
Based on the above this is not possible and we can’t offer Afterpay to AU customers at all? (without setting up 2x websites and setting the default currency to their respective ones)
Forum: Plugins
In reply to: [Afterpay Gateway for WooCommerce] Compatibility with Aelia Multi-currency@afterpayit any update on compatibility with this plugin and if the above fix is not suitable what the correct solution would be?
Forum: Plugins
In reply to: [Afterpay Gateway for WooCommerce] Compatibility with Aelia Multi-currencyIt looks like
get_woocommerce_currency()
correctly returns ‘CAD’, ‘USD’ or ‘AUD’ whereasget_option('woocommerce_currency')
always returns ‘NZD’ which is causing the issue.Forum: Plugins
In reply to: [Afterpay Gateway for WooCommerce] Compatibility with Aelia Multi-currency@afterpayit We have CBT enabled on our account and yet the AP gateway was still not appearing until I made those above changes. get_option(‘woocommerce_currency’) would display ‘NZD’ rather than the user selected ‘AUD’ currency at checkout. If those changes are not correct then no, this module is not compatible with Aelia.
Forum: Plugins
In reply to: [Afterpay Gateway for WooCommerce] Compatibility with Aelia Multi-currencyHi
We have it running with Aelia however needed to patch the plugin in 1 place to get multi currency to work.
In WC_Gateway_After.php Line 292
if(isset($gateways[$this->id]) && get_option(‘woocommerce_currency’) != get_woocommerce_currency()){
Needs to be replaced with
if(isset($gateways[$this->id]) && !$this->is_currency_supported()){
Likewise in the same file, line 839: in process_and_print_afterpay_paragraph() the if statement needs to be removed.
if (get_option(‘woocommerce_currency’) != get_woocommerce_currency()) {
//..
}As it’s checked below.
And you should be good.