Local Currency Support - Appointments+

How do we go about adding local currency support for the Appointments+ plugin?
We are in South Africa and need the currency to be displayed as ZAR instead of USD.

Also we do not use Paypal at all, can we use another payment gateway provider with the plugin?

    Michael Bissett

    Hey @chalki, hope you're doing well this evening!

    How do we go about adding local currency support for the Appointments+ plugin?
    We are in South Africa and need the currency to be displayed as ZAR instead of USD.

    You can insert the following PHP code into your site as a mu-plugin (more on that here):

    add_filter('app-template-currencies', 'add_additional_currency_option');
    
    function add_additional_currency_option( $array ) {
    	$extra_array = array(
    			'ZAR' => __('ZAR - South African Rand', 'appointments')
    		);
    
    	// combine the two arrays
    	$array = array_merge( $array, $extra_array );
    
    	return $array;
    }
    
    add_filter('app-template-currency_symbols', 'add_additional_currency');
    
    function add_additional_currency( $array ) {
    	$extra_array = array(
    			'ZAR' => __('ZAR', 'appointments')
    		);
    
    	// combine the two arrays
    	$array = array_merge( $array, $extra_array );
    
    	return $array;
    }

    And that will allow you to choose that particular currency to be used inside of Appointments+.

    Also we do not use Paypal at all, can we use another payment gateway provider with the plugin?

    Sure can!

    If you were to enable the MarketPress integration by checking the box for "Integrate with MarketPress" inside of the "Payment Settings" section inside of Appointments+, you can use MarketPress's payment gateways (one of which, would be the Stripe gateway).

    https://premium.wpmudev.org/project/e-commerce/

    Hope this helps!

    Kind Regards,
    Michael

    P.S. Shout to Pippin's Plugins for the code inspiration:

    https://pippinsplugins.com/a-quick-introduction-to-using-filters/