PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

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

Compatibility with Payment Gateway Based Fees and Discounts for WooCommerce

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
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.
12

Hi guys,

Would it be possible to add compatibility with Payment Gateway Based Fees and Discounts for WooCommerce? - https://www.tychesoftwares.com/products/woocommerce-payment-gateway-based-fees-and-discounts-plugin/

Hello

Please read this - https://currency-switcher.com/woocs-labs

Drop me wp-admin+ftp access  to your test site - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png

Describe in more detail all incompatibilities (you can use screenshots and videos)

And I'll add this to the queue for adaptation.

Thank you. Added all the details asked as private data. Will need your IP to allow access.

I added my IP in private data

Added IP and FTPS credentials.

Hello

Great! I added this to the adaptation queue

I'll write to you as soon as I get the result.

Hello Alex

Please do a test

Fantastic! Everything is working fine now! Thank you!

Hi,
I'm sorry, I don't know what happened, but everything reverted to the same wrong behavior.
Example:
https://woocommerce-723066-2444548.cloudwaysapps.com/product/heliconia-chartacea-sexy-pink/?currency=SEK
https://prnt.sc/TqMSrk3We2Tb

I installed your plugin on my production site, but it was behaving as I described before. Then I checked again the staging and it was the same even there.

Hello

Please check this  option  - https://c2n.me/4lx4fQa.png - and do a test

Ah, yes, this solves the problem with the tiered variations. I would rather have checkout in the default currency (USD), but if it's not possible, I will go for this option.

Please try  this  solution - https://currency-switcher.com/force-currency-on-checkout-page

 

Strangely it works on staging, but not on production. With all identical settings.
here is same product on staging with all correct prices:
https://prnt.sc/maNWR7XALo_r

Here on production with wrong tiers prices:
https://prnt.sc/mUkAeWD2fOJ2

My fault, the settings were not identical. On the staging I activated a compatibility switch in Tiered Prices plugin settings, but missed to do that on production. Activated now and it's working.

I'm happy with the solution now and appreciate your great support! Thank you!

Great! Welcome;)

I'm sorry, but need to get back on this one. I got your code in functions.php, but it stops working from time to time. I.e. the user's currency stops getting converted to the default one on checkout and I don't want that. I need the checkout in USD only.

What I do to fix this is removing your lines from functions.php, updating it, adding the lines back and updating again. Then it starts working for sometime.
Would need a more permanent solution. Maybe adding a php file with your lines and scheduling a cron job?

Any better ideas?

Hello

This is very strange behavior and it simply cannot happen.

Please give a screenshot where you insert this code.

Do you use caching?

Link to the screen shot in the private data.
I use Breeze as caching plugin from my host Cloudways. It is also behind Cloudflare.

But I never had a similar problem with any other code in functions.php and I do use it extensively.

I think I figured out what the problem is.

You are using a custom checkout page. so this condition does not work - is_checkout()

Please try to change this condition:

if( is_checkout()  || is_page('shopping-cart-checkout') ) {

Ah, yes, I do. That must be it.

Changed the condition and will monitor how it works. Thank you again!

12