• Resolved Garden of Plugins

    (@sebosfato)


    hello your plugin is very nice.. however im having a small problem with facebook getting wrong prices from it… since its based on geolocation and im in south america it seems facebook is taking the dolars value but showing the wrong currency…

    Have you seeing this problem? is there a solution?

    thanks for the great plugin

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi,

    What method do you use to add the product to the facebook feed?

    Thread Starter Garden of Plugins

    (@sebosfato)


    Hello Oscar, im currently using the facebook for woocommerce plugin…

    Im from brazil so as my website so the currency of the website is Reais BRL and it aparently takes the dollar value but the woo currency BRL since facebook access the site from maybe north america and the plugin sets the value to a dollar value but facebook microdata seem to not get the currency correctly…

    i tried changing on facebook the currency to Us dollar just to not display wrong values…

    have you had such problem before?

    thanks a lot for the quick response!

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    The Facebook for WooCommerce plugin should use the shop-based currency, i.e., the WooCommerce default currency and product price.
    What’s your default currency, USD or BRL?

    Thread Starter Garden of Plugins

    (@sebosfato)

    Here the default shop currency is BRL and your plugin sets for other countries dollar and if is in europe it sets to euro…

    In facebook store i noticed yesterday the values were in dollar (5 times less) but displaying BRL reais as currency… so appears like it took only the value and not currency.. im not really sure whats going

    Plugin Author Oscar Gare

    (@oscargare)

    Ok,
    Thank you. I will check it.

    Thread Starter Garden of Plugins

    (@sebosfato)

    I was thinking maybe in your plugin you could add some filter for a list of domains the user could input on the settings page… that could maybe prevent it to change the price when access come from a specific domain or ip address maybe for example…

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    Could you add the following code snippet?

    add_filter(
    	'wc_price_based_country_is_ajax_frontend',
    	function( $is_frontend, $action ) {
    		if ( in_array( $action, [ 'wc_facebook_background_product_sync', 'wc_facebook_sync_products' ], true ) ) {
    			$is_frontend = false;
    		}
    		return $is_frontend;
    	},
    	100,
    	2
    );

    Run the Facebook “product sync” after adding the code snippet from wp-admin > Marketing > Facebook.


    The code snippet turns off the fronted pricing for the Facebook product sync background process, so Facebook should receive the product’s price in the shop-based currency.

    Please test it.

    How to Easily Add Custom Code in WordPress (Without Breaking Your Site)

    • This reply was modified 1 year, 3 months ago by Oscar Gare.
    Plugin Author Oscar Gare

    (@oscargare)

    Hi @sebosfato,

    Do you test the code snippet?

    Thread Starter Garden of Plugins

    (@sebosfato)

    hello my friend i added to the website and run the command… today looking at facebook store it seem it converted most of the values back to the correct values and currency… however some were still wrong maybe because im also using a pixel to update info from products but aparently all from woointegration corrected! thanks a lot!

    If you plan to add this to the plugin please tell me so i can remove from the child theme.

    I thanks you a lot for your help!

    Thread Starter Garden of Plugins

    (@sebosfato)

    One thing i noticed is that when i copy and paste the code from email the array went wrong on pasting and i wast few minuts wondering why hahah =)

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    Version 3.4.2 includes the fix for the Facebook for WooCommerce issue. So you can deactivate the code snippet.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Facebook is showing incorrect prices’ is closed to new replies.