La URL del plugin: https://wordpress.org/plugins/wp-crowdfunding/
- en el archivo functions.php de tu tema hijo de WordPress actual tema hijo de WordPress añade el código:
add_filter('wp_head', function () {
if (is_checkout() AND class_exists('WOOCS')) {
global $WOOCS;
$WOOCS->reset_currency();
}
});
- En el archivo wp-content\plugins\wp-crowdfunding\wpcftemplate\woocommerce\basic\include\fund-raised.php cambia el código:
$amount = wpcf_function()->total_goal(get_the_ID());
$raised = wpcf_function()->fund_raised();
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$amount = $WOOCS->woocs_exchange_value(floatval($amount));
$raised = $WOOCS->woocs_exchange_value(floatval($raised));
}
}

- al archivo wp-content\plugins\wp-crowdfunding\includes\woocommerce\Woocommerce.php añade el siguiente código:
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currencies = $WOOCS->get_currencies();
$conversion_rate = $currencies[$WOOCS->current_currency]['rate'];
$donate_amount = $donate_amount / $conversion_rate;
}
}

🌸
Referencia de shortcodes, funciones, acciones y filtros de FOX WooCommerce Currency Switcher
Codex — FOX Currency Switcher
Utilizamos cookies para ofrecerle la mejor experiencia en nuestro sitio web. Si continúa utilizando este sitio, entenderemos que está de acuerdo.