pedrodigitalgreen
Forum Replies Created
-
Hello, I’m having the same issue with the latest release.
How did you fix it?
[2025-06-26 12:39:34] [cache_controller::purge_urls] Unable to purge some URLs from Cloudflare due to error: Authentication error (err code: 10000) [2025-06-26 12:39:42]
[cache_controller::ajax_purge_whole_cache] Purge whole Cloudflare cache [2025-06-26 12:39:42] [cache_controller::purge_all] Unable to purge the whole Cloudflare cache due to error: Authentication error (err code: 10000)
Best Regards
Tenho o mesmo problema em vários websites. Com a versão do elementor 3.25.10.
Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/smart-marketing-for-wp/includes/class-egoi-for-wp-apiv3.php:1171
Stack trace: #0 /wp-content/plugins/smart-marketing-for-wp/includes/class-egoi-for-wp.php(1379):EgoiApiV3->getExtraFields(‘7’, ‘obj’)Has I needed the message translated I did this clumsy fix, however it’s not ideal and if someone has a better way to translate the messages of the plugin it would be much appreciated.
Best Regards
add_filter('woocommerce_add_error','dg_translate_error_messages',1,99); function dg_translate_error_messages($message){ $the_lang = $_GET['lang']?:'pt'; $message_to_translate = 'A Encomenda deverá ter o valor mínimo de 10€ (excluindo envio).'; //check the message to translate if($message == $message_to_translate){ if($the_lang == 'fr'){ $message = 'La Commande doit avoir un montant minimum de 10€ (hors frais de port).'; } if($the_lang == 'es'){ $message = 'El Pedido debe tener un valor mínimo de 10 € (sin gastos de envío).'; } if($the_lang == 'en'){ $message = 'The Order must have a minimum value of €10 (excluding shipping).'; } } return $message; }Hello @cjhill44, you’re right, I had to fix that issue after my vacations.
I updated the code to use a default suffix when the booster session toggle is not defined.The updated code:
/* Change the suffix of tax based on booster bt */ add_filter('woocommerce_get_price_suffix', 'dg_add_price_suffix', 99, 4); function dg_add_price_suffix($html, $product, $price, $qty) { //current booster toggle session value $session_toggle = wcj_session_get('wcj_toggle_tax_display'); if ($session_toggle == 'excl') { //sem iva $html .= ' excl/iva'; } else if ($session_toggle == 'incl') { //com iva $html .= ' incl/iva'; } else { //default suffix - toggle value not defined $html .= ' excl/iva'; } return $html; }@danielnr87 maybe you want to update the code as well.
Regards
Hi @danielnr87, my booster shortcode to show the tax switcher is this:
[wcj_button_toggle_tax_display class=”tax-switcher” label_incl=”Com Iva” label_excl=”Sem Iva” ]
I stayed with the “button like switcher” only added a custom css class (tax-switcher) changing the button aspect to follow my theme colors. To modify it as a checkbox I believe we must change the code of the booster itself. This was a workaround.
As for the text inside the button, the params “label_incl” and “label_excl” will do the trick.
The documentation I have follow is in this Link
Regards
Hi @danielnr87, what I did after analyzing the booster code was to change the suffix depending on the current session toggle value.
In the ‘woocommerce_get_price_suffix’ filter, I use the ‘wcj_toggle_tax_display’ to change the suffix as needed.
My snippet is bellow, maybe this will help you.
/* Change the suffix of tax based on booster bt */ add_filter( 'woocommerce_get_price_suffix', 'dg_add_price_suffix', 99, 4 ); function dg_add_price_suffix( $html, $product, $price, $qty ){ //current booster toogle session value $session_toogle = wcj_session_get('wcj_toggle_tax_display'); if($session_toogle == 'excl'){ //sem iva $html .= ' excl/iva'; } if($session_toogle == 'incl'){ //com iva $html .= ' incl/iva'; } return $html; }Regards.
Hello, I’m trying to accomplish the same has @danielnr87.
I intend to show “Inc VAT” and “Ex Vat” has price suffix depending on the toggle.Is there a filter or action that I can use?
Regards
Forum: Plugins
In reply to: [Hide Price Until Login] PHP Warning when browsing to WooCommerce settingsHello, getting the same issue.
Regards