mottaghian
Forum Replies Created
-
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Wrong currency when cache enabledThank you for your reply.
So if we use for this url (http://www.mysite.com/?wcpbc-manual-country=DE) for all of our advertisement campaigns that are are for Germany, it creates a unique session for every browser and invalidate the cache?
Yes, we are using the native Geolocation with caching support of woocommerce, but it is affecting our speed (do to redirect) and quality scores on Ads. I’m trying to find a solution to have a specific url for each regions (currently only 4) to have their currency correct.
Thank you again for your support
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Wrong currency when cache enabledHi Oscar,
Thank you for your support. Can we solve this cache issue by forcing an automatic URL parameter to the URL?
I understand that “?wcpbc-manual-country=XX” forces the currency to switch. Is there a way to define a few regions (corresponding to the currencies we serve) and add this parameter based on the browsers geolocation as an ultimate solution for geolocation with caching?For example, I want a customer who visits from US see this link:
http://www.mysite.com/?wcpbc-manual-country=UsIf it had the parameter correctly it keeps it, and if it didn’t exist or it was wrong (based on the geolocation coming form Cloudflare), it adds the parameter to the URL.
Hi,
The picture Captura-de-pantalla-de-2020-10-12-11-33-55 on your is not loading.
Would you reupload?Thanks
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Same value for all currencies!after deactivating and activating the plugin just now, the process took long and wordpress sent me this email. Now it’s back to the way it was. Plugin is installed but all values are the same.
An error of type E_ERROR was caused in line 524 of the file /home/public_html/app/themes/personal/functions.php. Error message: Uncaught Error: Call to undefined function WCPBC() in /home/public_html/app/themes/personal/functions.php:524
Stack trace:
#0 /home/public_html/wp/wp-includes/class-wp-hook.php(288): add_custom_price(Object(WC_Cart))
#1 /home/public_html/wp/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)
#2 /home/public_html/wp/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /home/public_html/app/plugins/woocommerce/includes/class-wc-cart.php(1235): do_action(‘woocommerce_bef…’, Object(WC_Cart))
#4 /home/public_html/app/plugins/woocommerce-multilingual/inc/class-wcml-cart.php(217): WC_Cart->calculate_totals()
#5 /home/public_html/wp/wp-includes/class-wp-hook.php(288): WCML_Cart->translate_cart_subtotal(Object(WC_Cart))
#6 /home/public_html/wp/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#7 /home/public_html/wp/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#8 /home/