• Hi, I need help with the Tutor LMS plugin, is it possible to set the currency display next to the course amount, not before the amount?

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Md. Jobayer Al Mahmud

    (@jobayertuser)

    Hello
    Do you mean like this 7000$?

    Thread Starter xtomsx

    (@xtomsx)

    Yes please, that’s exactly it. Do you have a solution?

    Hello @xtomsx,

    You can navigate to woocommerce settings > general > currency options to change currency position.

    Thread Starter xtomsx

    (@xtomsx)

    Hello @munayam;

    Unfortunately this solution does not work for me. Have you tried it?

    Hello @xtomsx,

    Can you navigate to Woocommerce settings > general > currency options and share a screenshot.

    Thread Starter xtomsx

    (@xtomsx)

    Hello @munayam

    Here is screenshot :https://prnt.sc/1jCNs38uovfg

    Hello @xtomsx,

    Thanks for bringing this to our attention. We will fix this in our upcoming update within a week. Thanks for bearing with us.

    Dear

    Please go to this file /tutor/includes/tutor-general-functions.php

    Then replace this code

    if(!function_exists('tutor_wc_price_currency_format')){
    	function tutor_wc_price_currency_format($amount){
    
    		$symbol = get_woocommerce_currency_symbol();
    		$position = get_option('woocommerce_currency_pos', 'left');
    		
    		switch($position){
    			case 'left' 		: $amount = $symbol . $amount; break;
    			case 'left_space' 	: $amount = $symbol . ' ' . $amount; break;
    
    			case 'right' 		: $amount = $amount . $symbol; break;
    			case 'right_space' 	: $amount = $amount . ' ' . $symbol; break;
    
    			default 			: $amount = $symbol . $amount; break;
    		}
    
    		return $amount;
    	}
    }

    With this code

    if(!function_exists('tutor_wc_price_currency_format')){
    	function tutor_wc_price_currency_format($amount){
    
    		$symbol = get_woocommerce_currency_symbol();
    		$position = get_option('woocommerce_currency_pos', 'left');
    		
    		switch($position){
    			case 'right' 		: $amount = $symbol . $amount; break;
    			case 'right_space' 	: $amount = $symbol . ' ' . $amount; break;
    
    			case 'left' 		: $amount = $amount . $symbol; break;
    			case 'right_space' 	: $amount = $amount . ' ' . $symbol; break;
    
    			default 			: $amount = $symbol . $amount; break;
    		}
    
    		return $amount;
    	}
    }

    Thank you

    largbasket

    (@largbasket)

    Dear
    Then please go to this file

    /tutor/templates/single/course/add-to-cart-woocommerce.php

    Replace this code

    <?php echo $symbol . $regular_price; ?>

    With this code

    <?php echo $regular_price . $symbol; ?>

    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Tutor LMS – change currency position?’ is closed to new replies.