PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]
Cyber Monday 2021
Cyber Monday 2021 timer

Support Forum

You need to log-in to create request (topic) to the support

Currency + Interest

This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see blue-green button on the right side) and press Save button.
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi Pablo how are you, i like to ask something.

I see when add a currency, have the option to add Interest.

Is there any way that instead of adding a percentage, add an amount.

For example if a product costs U$ 10, and if my secondary currency is $ 3, the product would look at $ 30.

If at this time I add interest 10, the product would look at $ 33.

My idea is that if I put in interest 10, the product looks at $ 40 (U$ 10 * $ 3 + $ 10) that is something like an extra charge or fee for each product but is the same for every product.

 

Thanks

Thank you

Hello

the plugin doesn’t have such a feature. You need code customization.

You can  use this   hooks -  https://currency-switcher.com/hook/woocs_raw_woocommerce_price/   AND  https://currency-switcher.com/hook/woocs_woocommerce_variation_prices/

Hi Pablo i already try, and after a few moments i see when the plugin have the number 60 dosent work, i leave a video on the private area.

Thanks in advance


 

Im testing and its every time you put any multiplier of 30 on the currency i try with 30/60/90/120

Hello

Please  add  the number  here - https://c2n.me/437wcwH.jpg

Hi Pablo thanks, for all, if i put the number where you tellme dont do nothing.

 

Finally i put this and work.

 

add_filter('woocs_raw_woocommerce_price', function($price) {

return((ceil($price)%5 === 0) ? ceil($price) : round(($price+5/2)/5)*5)+70;
});

add_filter('woocs_woocommerce_variation_prices', function($price) {

return((ceil($price)%5 === 0) ? ceil($price) : round(($price+5/2)/5)*5)+70;
});

 

Thanks for all

Hi Pablo, the last question,

Is there any way to make some user roles see one formula and others another?

 

For Example Admin

add_filter('woocs_raw_woocommerce_price', function($price) {

return((ceil($price)%5 === 0) ? ceil($price) : round(($price+5/2)/5)*5)+70;
});

Customers

add_filter('woocs_raw_woocommerce_price', function($price) {

return((ceil($price)%10 === 0) ? ceil($price) : round(($price+10/2)/10)*10)+100;
});

Thanks

Hello

Yes!  Read this - https://wordpress.stackexchange.com/questions/5047/how-to-check-if-a-user-is-in-a-specific-role