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 pleaseIf 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.
Quote from wisenet on September 26, 2020, 12:00Hi,
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/uo7j50Is there any way or code snippets can work to prevent the currency switcher to affect in backend?
Please help
Million thanks
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
Quote from Pablo Borysenco on September 28, 2020, 10:58Hello
what link do you use to display this data
Example for woocs settings - /wp-admin/admin.php?page=wc-settings&tab=woocs
Hello
what link do you use to display this data
Example for woocs settings - /wp-admin/admin.php?page=wc-settings&tab=woocs
Quote from wisenet on September 28, 2020, 11:08Hello,
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
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
Quote from Pablo Borysenco on September 28, 2020, 11:15Great! 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;
}
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;
}
Quote from wisenet on September 28, 2020, 11:37The 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=7some 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
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
Quote from Pablo Borysenco on September 29, 2020, 10:14Hello
You can try this code:
if(isset($_GET['page']) AND strripos ($_GET['page'],'icpo')!==false ){
return false;
}
Hello
You can try this code:
if(isset($_GET['page']) AND strripos ($_GET['page'],'icpo')!==false ){
return false;
}
Quote from wisenet on September 29, 2020, 16:31Hi,
Should I input the above code? I have input at function.php in my theme but seems doesn't work.
Thanks
Chris
Hi,
Should I input the above code? I have input at function.php in my theme but seems doesn't work.
Thanks
Chris
Quote from Pablo Borysenco on September 30, 2020, 10:36Hello
paste it in - \wp-content\plugins\woocommerce-currency-switcher\index.php - here - https://c2n.me/49glItc.png
Hello
paste it in - \wp-content\plugins\woocommerce-currency-switcher\index.php - here - https://c2n.me/49glItc.png
Quote from wisenet on October 7, 2020, 20:52Hello,
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/uuygfdMillion thanks for help
Best,
Chris
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
Quote from Pablo Borysenco on October 8, 2020, 10:03Hello 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();
}
});
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();
}
});
Quote from wisenet on October 8, 2020, 22:42Unfortunately the code not work, anyway million thanks for your help :)
Unfortunately the code not work, anyway million thanks for your help :)
Quote from Pablo Borysenco on October 9, 2020, 13:18Hello
Welcome;)
Hello
Welcome;)