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

Conflict with my another plugin - not showing corresponding correct dollar sign

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.

Hi,

I fount the WOOCS Currency Switcher conflict with my another plugin that run in backend for creating Purchase Order to suppliers. After enabled the currency switcher, all currency using same single"$" dollar sign in my PO plugin.
https://prnt.sc/uo7j50

Is there any way or code snippets can work to prevent the currency switcher to affect in backend?

Please help

Million thanks

Hello

what link do you use to display this data

Example  for  woocs  settings - /wp-admin/admin.php?page=wc-settings&tab=woocs

Hello,

I use"Currency Switcher" which has no problem, but the"Currency Switcher" conflict with my another plugin for creating Purchase Order to suppliers in backend admin dashboard, after activated"Currency Switcher", the Purchase Order plugin shows with the same"$" dollar sign for all currency. After disabled"Currency Switcher", the Purchase Order plugin shows corresponding dollar sign correctly.

However, the Purchase Order plugin not using any or depends on"Currency Switcher", it runs it's own code for multiple currency.

I have try with a plugin"Plugin Organizer" to disable the"Currency Switcher" to run in backend specify for the Purchase Order plugin pages, but fail to fix the conflict.

So, I hope you may have advise for me.

Million thanks

Best,
Chris

Great!  Please  drop  me  a link to " the Purchase Order plugin" as i wrote here - https://c2n.me/49eAtVk.png

main idea:

Add similar code to my plugin to exclude it from third party plugin pages

if(isset($_GET['slug_third_party_plugin'])){

return false;

}

The Purchase order has several pages and tab as below

https://staging.sgt-store.com/wp-admin/admin.php?page=icpo_settings
https://staging.sgt-store.com/wp-admin/admin.php?page=icpo_settings&page_tab=exchange_rates
https://staging.sgt-store.com/wp-admin/admin.php?page=icpo-purchase-order
https://staging.sgt-store.com/wp-admin/admin.php?page=icpo-purchase-order&action=add
https://staging.sgt-store.com/wp-admin/admin.php?page=icpo-purchase-order&action=edit&ID=5
https://staging.sgt-store.com/wp-admin/admin.php?page=icpo-purchase-invoice&generate_purchase_order=pdf&po_id=5&po_no=PO00000005
https://staging.sgt-store.com/wp-admin/admin.php?page=icpo-purchase-invoice
https://staging.sgt-store.com/wp-admin/admin.php?page=icpo-purchase-invoice&action=add
https://staging.sgt-store.com/wp-admin/admin.php?page=icpo-purchase-invoice&action=edit&ID=7

some action and page with URL arguments, like"ID" and"PO_NO", is there any code can be added to prevent to load"Currency Switcher" for specify plugin for all pages (no matter with any arguments)?

Million thanks for help

 

Hello

You  can  try  this  code:

if(isset($_GET['page']) AND  strripos ($_GET['page'],'icpo')!==false ){

return false;

}

Hi,

Should I input the above code? I have input at function.php in my theme but seems doesn't work.

Thanks

Chris

Hello

paste  it   in - \wp-content\plugins\woocommerce-currency-switcher\index.php - here - https://c2n.me/49glItc.png

Hello,

Thanks for your code and help, now fixed by disable the Currency Switcher using specify URL arguments. BUT in the email and email attached PDF, the dollar sign still not showing correct.
Would you please help and advise, how to prevent the conflict or even not to load the Currency Swticher in the WooCommerce Email and system generated PDF attached in email?

https://prnt.sc/uuy4ef
https://prnt.sc/uuyedx
https://prnt.sc/uuygfd

Million thanks for help

Best,
Chris

Hello Chris

Unfortunately I have no idea

You  can  try to add this  code in functions.php:

add_action('admin_head', function(){

if (class_exists('WOOCS')) {
global $WOOCS;

$WOOCS->reset_currency();

}

});

 

Unfortunately the code not work, anyway million thanks for your help :)

Hello

Welcome;)