WOOCS - Cambiador de divisas de WooCommerce

DOKAN

Desde el 28-09-2020 este código agregado al complemento Dokan por su autor (es)


Enchufar: https://wedevs.com/dokan/

  • en functions.php de su tema de wp actual agregue el siguiente código:
    add_action ('woocommerce_order_status_completed', 'woocs_payment_complete', 1); add_action ('woocommerce_payment_complete', 'woocs_payment_complete'); función 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 ();}}});