How to add your Currency into Cleanly Payment Settings
Follow those steps:
- Go to your WordPress Dashboard
- Edit your Main Theme or Child Theme -> function.php page
- Then, paste the sample code below and update these files.
Note: You can run this code anywhere
Currency:
Add new currency:
add_filter('cleanly/currency/symbol/add', function( $symbol ){
$symbol['ZAR'] = 'R';
return $symbol;
});
add_filter('cleanly/currency/add', function($currency){
$currency['ZAR'] = 'South African Rand (R)';
return $currency;
});
Price HTML:
add_filter('cleanly/get/currency', function( $curHtml, $price, $currency, $formid ){
// code here
// end code here
return $curHtml;
}, 10, 4);
Customer information
Add new Fields in Customer information
add_filter('cleanly/account/details/mapping', function( $fields = []){
// code here
// end code here
return $fields;
}, 10);
Add new Fields in Customer Service Address and Billing Address
add_filter('cleanly/billing/address/mapping', function( $fields = []){
// code here
// end code here
return $fields;
}, 10);
Booking time format
add_filter('cleanly/time/format/list', function( $times = []){
// code here
// end code here
return $times;
}, 10);