• hi, trying to make PayPal Checkout receiving EUR

    i have problem with Gateways Currency Converter Module Options
    on Direct bank transfer i have / no changes /

    on PayPal Checkout i have EUR but Direct bank transfer start to get efektet and converting prices to 0 ( zero )
    any idea ?
    thanx

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Support David G

    (@gravid7)

    Hi @sonarscope

    If possible can you please share screenshots of the configuration? We will surely check and help you.

    Thread Starter sonarscope

    (@sonarscope)

    hi David,
    i get some progress
    Direct bank transfer is ok – i get HRK currency /

    Gateways Currency Converter Module is on and is just checked PayPal Express
    HRK to EUR

    now i have problem with Mini-cart /
    when PayPal Express is selected for Payment option
    Mini Cart is not updating currency symbol and price when payment method change

    need to manually refresh a page ( crlr r )

    Paypal Payment express is Live on https://www.sonarscope.hr
    You can Check it
    Gateways Currency Converter Module :

    thanx for help – emil

    Thread Starter sonarscope

    (@sonarscope)

    screenshot configuration Gateways Currency Converter Module :
    https://www.sonarscope.hr/shop/wp-content/uploads/2021/05/Gateways_Currency_Converter_Module_Options-scaled.jpg

    • This reply was modified 3 years, 6 months ago by sonarscope.
    • This reply was modified 3 years, 6 months ago by sonarscope.
    Thread Starter sonarscope

    (@sonarscope)

    update PayPal Checkout

    Checkout on Single Product / page refresh is not helping

    so i have error :

    PayPal error (10605): An error (10605) occurred while processing your PayPal payment. Please contact the store owner for assistance.

    Plugin Author ronyp

    (@ronyp)

    Hello @sonarscope

    Can you please let me know how did you implement the mini cart widget?
    Is that the default woocommerce widget or you have installed any plugin?

    Kind Regards,
    Rony P – Support Team

    Thread Starter sonarscope

    (@sonarscope)

    this is default mini cart Widget / ican change it to something else if that’s going to help / suggestion ? kind regards / emil

    Thread Starter sonarscope

    (@sonarscope)

    i upgrade to PHP ver 7.4 /
    all plugins are up to date /
    theme Storefront /
    default mini cart is still not showing correct currency symbol / when i select PayPal Checkout from payment option refresh page mini cart currency symbol is showing shortly EUR and is changing back to KN ( croatian kuna )

    price is changing to correct value in Mini Cart with wrong currency symbol and Paypal is working so no more PayPal error (10605)
    this page refresh is helping ( windows Ctrl R )

    You can check it on https://www.sonarscope.hr Paypal Checkout is live

    • This reply was modified 3 years, 6 months ago by sonarscope.
    Thread Starter sonarscope

    (@sonarscope)

    hi , little progress – i have test site here
    https://www.sonarscope.com/
    i change Theme to Theme Twenty Sixteen /
    with Theme Twenty Sixteen PayPal Checkout is working ok because this theme dont have Mini Cart

    so Booster Gateways Currency Converter Module Options
    PayPal Checkout is working ok just with Themes without Mini Cart !

    i checked with few different theme

    when You can fix it ?
    thanx best emil

    Thread Starter sonarscope

    (@sonarscope)

    hi, new progress

    in EMAILS & MISC. when

    General Module Options – Enable Module
    Recalculate Cart Totals Recalculate Cart Totals – Enable
    Session Type in Booster – WC session

    Mini Cart is still not showing correctly currency

    but Paypal payment is working ok without page refresh

    Thread Starter sonarscope

    (@sonarscope)

    any news progres fixing Paypal express Gateways Currency Converter Module ?
    after some checking Paypal payment is still not working working ok without page refresh
    thanx

    Plugin Author ronyp

    (@ronyp)

    Hello,

    Apologies for the late response here. Actually, the mini cart you are using is from the storefront theme only. Now as you know the different store owner uses different themes around the globe. So It’s hard to pick a different structure of the mini cart section and update it.

    But to help you I have created a custom code snippet for you and it should work fine with the storefront theme.

    You just need to add the following snippet in the functions.php file of your currently activated theme or you can enable Booster’s Custom PHP module and add a snippet in that (Woocommerce > Settings > Booster > EMAILS & MISC. > Custom PHP).

    add_action('wp_footer','wcj_change_mini_cart_currency_code_payment_method_change');
    function wcj_change_mini_cart_currency_code_payment_method_change()
    {  
    	if ( is_page( 'checkout' ) ) {
    		$page = 'checkout';
    	} elseif ( is_page( 'my-account' ) ) {
    		$page = 'my-account';
    	} elseif ( is_page( 'cart' ) ){
    		$page = 'cart';
    	} else {
    		$page = 'other';
    	}
    	?>
    
    	<script type="text/javascript">
    		jQuery(function () {
    			var page = '<?php echo $page; ?>'
    
    			jQuery(document).ready(function () {
    				jQuery(window).load(function () {
    					if( page == 'checkout' ){
    						jQuery('body').on('change', 'input[name="payment_method"]', function () {
    							jQuery('body').trigger('update_checkout');
    							jQuery('body').trigger('wc_fragment_refresh');
    							
    							jQuery(document).ajaxComplete(function(){
    								update_mini_cart('checkout')
    							});
    						});
    						
    						jQuery(document).ajaxComplete(function(){
    							update_mini_cart('checkout')
    						});
    					}else if( page == 'cart' ){
    						update_mini_cart('cart')
    
    						jQuery('.product-remove').on('click',function(){
    							jQuery(document).ajaxComplete(function(){
    								update_mini_cart('cart')
    							});
    						});	
    					}else{
    						update_mini_cart('other')
    					}
    				});
    			});
    		});
    		function update_mini_cart(page){
    			if(page == 'other'){
    				if(sessionStorage['priceVal'] != "undefined"){
    					jQuery('body .site-header-cart .woocommerce-Price-amount').html(sessionStorage['priceVal']);
    				}
    			}else{
    				var is_subtotal = jQuery('.cart-subtotal .woocommerce-Price-amount').length;
    				if(is_subtotal > 0){
    					var priceVal = jQuery('.cart-subtotal .woocommerce-Price-amount').html();
    					sessionStorage['priceVal'] = priceVal;
    					jQuery('body .site-header-cart .woocommerce-Price-amount').html(sessionStorage['priceVal']);
    				}else{
    					sessionStorage.removeItem('priceVal');
    				}
    			}
    		}
    	</script>
    <?php }

    Please have a look at the above code snippet and give a try.
    Hope the above will solve your issue.

    Kind Regards,
    Rony P – Support Team

    Thread Starter sonarscope

    (@sonarscope)

    Hi Rony, thanks for creating a code
    i copy paste a code to Settings > Booster > EMAILS & MISC. > Custom PHP).
    and enable a module / but again i need to refresh a page /
    New code is live now on sonarscope.hr / You can check it…

    please can You just name 1 good working ecommerce WP Theme so i can tray switching to new theme

    thenx best emil

    Plugin Author ronyp

    (@ronyp)

    Hello @sonarscope ,

    I have checked the snippet again in your side. It was render properly but actually I was did some condition to identify the woocommerce pages but seems you have different name of that pages.

    I have update the snippet, Please remove old and add new one.

    add_action('wp_footer','wcj_change_mini_cart_currency_code_payment_method_change');
    function wcj_change_mini_cart_currency_code_payment_method_change()
    {
    	?>
    
    	<script type="text/javascript">
    		jQuery(function () {
    			var page = 'other'
    
                if ( jQuery('body').hasClass('woocommerce-checkout') ) {
                    page = 'checkout';
                }else if ( jQuery('body').hasClass('woocommerce-cart') ){
                    page = 'cart';
                }
    
    			jQuery(document).ready(function () {
    				jQuery(window).load(function () {
    					if( page == 'checkout' ){
    						jQuery('body').on('change', 'input[name="payment_method"]', function () {
    							jQuery('body').trigger('update_checkout');
    							jQuery('body').trigger('wc_fragment_refresh');
    							
    							jQuery(document).ajaxComplete(function(){
    								update_mini_cart('checkout')
    							});
    						});
    						
    						jQuery(document).ajaxComplete(function(){
    							update_mini_cart('checkout')
    						});
    					}else if( page == 'cart' ){
    						update_mini_cart('cart')
    
    						jQuery('.product-remove').on('click',function(){
    							jQuery(document).ajaxComplete(function(){
    								update_mini_cart('cart')
    							});
    						});	
    					}else{
    						update_mini_cart('other')
    					}
    					jQuery('body #site-header-cart .woocommerce-mini-cart .remove_from_cart_button').on('click',function(){
    						jQuery(document).ajaxComplete(function(){
    							var total_items = jQuery('body #site-header-cart .woocommerce-mini-cart .woocommerce-mini-cart-item').length;
    							update_mini_cart('cart')
    							if(total_items <= 1){
    								sessionStorage.removeItem('priceVal');
    							}
    						});
    					});	
    				});
    			});
    		});
    		function update_mini_cart(page){
    			if(page == 'other'){
    				if(sessionStorage['priceVal'] != "undefined"){
    					jQuery('body .site-header-cart .woocommerce-Price-amount').html(sessionStorage['priceVal']);
    				}
    			}else{
    				var is_subtotal = jQuery('.cart-subtotal .woocommerce-Price-amount').length;
    				if(is_subtotal > 0){
    					var priceVal = jQuery('.cart-subtotal .woocommerce-Price-amount').html();
    					sessionStorage['priceVal'] = priceVal;
    					jQuery('body .site-header-cart .woocommerce-Price-amount').html(sessionStorage['priceVal']);
    				}else{
    					sessionStorage.removeItem('priceVal');
    				}
    			}
    		}
    	</script>
    <?php }

    Please have a look at the above code snippet and give a try.
    Hope the above will solve your issue.

    Kind Regards,
    Rony P – Support Team`

    Thread Starter sonarscope

    (@sonarscope)

    hi Rony , i copy paste new code / now when i select Paypal for payment, mini cart currency symbol is switching to EUR ??

    but still not working / need to refresh page after selecting Paypal payment

    New code is live now on sonarscope.hr / You can check it…

    can You suggest 1 good theme i can switch it to new theme if Storefront is not compatible

    thanx / emil

    • This reply was modified 3 years, 5 months ago by sonarscope.
    • This reply was modified 3 years, 5 months ago by sonarscope.
    • This reply was modified 3 years, 5 months ago by sonarscope.
    Thread Starter sonarscope

    (@sonarscope)

    hi Rony , i change Theme to Astra

    and i think module is working ok

    going to do more test / i come back with results

    thanx best emil

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Gateways Currency Converter Module Options’ is closed to new replies.