Questo utente non ha argomenti preferiti.
Argomenti preferiti del forum
Argomenti del forum creati
| Stato |
Argomento
|
Supporter | Voci | Post | Freschezza |
|---|---|---|---|---|---|
|
Currencies wrongly cached
Iniziato da: andersE-18 in: Chat Support |
|
1 | 2 |
3 anno, 4 mese fa
|
|
|
automatic currency switching not working based on country
Iniziato da: andersE-18 in: Chat Support |
|
1 | 2 |
3 anno, 10 mese fa
|
|
|
automatic currency switching with Klarna payment provider
Iniziato da: andersE-18 in: Chat Support |
|
1 | 2 |
3 anno, 10 mese fa
|
|
|
nitropack and multi-currency
Iniziato da: andersE-18
in: English Support
Problem: Solution: function wcml_set_custom_currency_cookie( $currency = false ) {<br />if ( is_admin() && !( defined('DOING_AJAX') && DOING_AJAX ) )<br />return;<br />if ( !empty( $currency ) ) {<br />setcookie('wcml_custom_currency_cookie', $currency, time() + 60*60*24*7, '/');<br />return;<br />}<br />if ( empty( $_COOKIE['wcml_custom_currency_cookie'] ) && function_exists( 'get_woocommerce_currency' ) ) {<br />setcookie('wcml_custom_currency_cookie', get_woocommerce_currency(), time() + 60*60*24*7, '/');<br />}<br />}<br />add_action('wcml_switch_currency', 'wcml_set_custom_currency_cookie');<br />add_action('init', 'wcml_set_custom_currency_cookie');4) We advised the client to add this code to their functions.php file and to ask NitroPack how to exclude the 'wcml_custom_currency_cookie' from caching. If this solution does not seem relevant to your situation, please open a new support ticket with us. |
|
2 | 7 | 4 anno, 3 mese fa |