Envío de Aramex WooCommerce
La URL del complemento: https://wordpress.org/plugins/aramex-shipping-woocommerce/
- En archivo functions.php de su tema actual de wordpress agregue el siguiente código:
add_filter ('woocommerce_shipping_method_add_rate_args', function ($ arg, $ obj) {if (stristr ($ arg ['id'], '_aramex')! == FALSE AND $ arg ['cost']) {if (class_exists (' WOOCS ')) {global $ WOOCS; if ($ WOOCS-> is_multiple_allowed) {$ currrent = $ WOOCS-> current_currency; if ($ currrent! = $ WOOCS-> default_currency) {$ currencies = $ WOOCS-> get_currencies () ; $ tasa = $ monedas [$ actual] ['tasa']; $ arg ['costo'] = $ arg ['costo'] / $ tasa;}}}} retorno $ arg;}, 2, 100);