DOKAN - WOOCS - WooCommerce Currency Switcher
[/] Home FAQ Codex Video Downloads DEMO Support More LABS Pre-sale questions Compatibility Changelog Sitemap Currency Switcher for WordPress Get More Tools WOOCS - WooCommerce Currency Switcher Home DOKAN DOKAN From 28-09-2020 this code added to the Dokan plugin by its author(s) Plugin : https://wedevs.com/dokan/ in functions.php of your current wp theme add next code: add_action('woocommerce_order_status_completed', 'woocs_payment_complete', 1); add_action('woocommerce_payment_complete', 'woocs_payment_complete'); function so_payment_complete($order_id) { if (class_exists('WOOCS')) { global $WOOCS; $WOOCS->recalculate_order($order_id); } } add_filter('wp_head', function() { if (is_page('dashboard')) { if (class_exists('WOOCS')) { global $WOOCS; $WOOCS->reset_currency(); } } }); 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 add_action ( 'woocommerce_order_status_completed' , 'woocs_payment_complete' , 1 ) ; add_action ( 'woocommerce_payment_complete' , 'woocs_payment_complete' ) ; function so_payment_complete ( $ order_id ) { if ( class_exists ( 'WOOCS' ) ) { global $ WOOCS ; $ WOOCS - > recalculate_order ( $ order_id ) ; } } add_filter ( 'wp_head' , function ( ) { if ( is_page ( 'dashboard' ) ) { if ( class_exists ( 'WOOCS' ) ) { global $ WOOCS ; $ WOOCS - > reset_currency ( ) ; } } } ) ; Prev: "WooCommerce Points and Rewards (by WooCommerce)" Next: "Wholesale Suite" Search FAQ Codex Video Tutorials Hints Information Get Compatibility Get WOOCS on: Questions? Get Answers! Our team specializes in development of WordPress and WooCommerce plugins. Information About us Contact Us Changelog Sitemap Privacy Policy Help Downloads FAQ Support News You may be interested in: © 2012 - 2021 with by PluginUs.NET . All rights reserved. We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok Read more English Deutsch Espa単ol