php - Force Woocomerce checkout to new currency when Paypal is selected -


i developing woocommerce store in base currency required aed , 1 of payment options required paypal.

i use woocommerce-currency-switcher allow customer select preferred currency, of not supported paypal currencies ( aed, bhd, kwd, omr, qtr, sar, usd, eur, gbp ). able force paypal getaway display pushing unsupported currencies paypal array using woocommerce_paypal_supported_currencies hook.

if paypal selected , currency not (gbp||usd||eur) force store usd. forcing store usd when first loads not suitable force payment methods (cod, bacs) use usd too.

what need force usd when paypal selected, have no idea of how trap section event - did try using woocommerce_update_order_review_fragments not seem work.

any ideas? totally stumped. thanks


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -