• Resolved Noelle Steegs

    (@noellesteegs)


    Hi,

    My client has been having the strangest issue where new products were being imported from WooCommerce to Facebook in ZAR and changed to USD overnight. She’s been using this plugin for years without any issues.

    After extensive troubleshooting I found the possible cause of this ussue: the product data source’s currency is for some reason was set to USD instead of ZAR. Now, we believe that years back when I built the site we might have started the site as USD base currency and switched it to ZAR (honestly it’s too long ago to be sure). So, we ended up deleting the entire catalogue in Facebook’s Catalogue Manager, the data source, and the Facebook for WooCommerce plugin.

    Then I reinstalled the plugin, deleted the connection to the Facebook page (I saw it was still being stored somewhere), reconnected the Facebook page and synched the WooCommerce products with the Facebook Shop. Which is currently processing.

    Here’s the thing: the product data source was in USD again! Could this possibly a bug? I immediately changed it to ZAR in the hope the issue above doesn’t reoccur, but I can only confirm all is well now after everything is processed. Regardless, I’d like to find out why the currency was incorrectly set to USD instead of ZAR.

    Thanks in advance for looking into this.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Noelle Steegs

    (@noellesteegs)

    Update: yesterday the products were importing in ZAR and almost done processing but this morning they are back to USD.

    The website was using Multi Currency for WooCommerce. I know it’s unlikely this could potentially affect a feed, but for testing purposes I deactivated it, deleted the data feed and catalogue, deleted the connection to the page in Woo, readded the connection and pulled in a new feed. The product data source currency is in USD again. The products in it are in ZAR. This was the case yesterday as well and then they changed to USD overnight.

    Any help with this will be much appreciated.

    • This reply was modified 4 years, 7 months ago by Noelle Steegs.

    Hey @noellesteegs!

    What a strange-sounding issue! Is it possible to set a default currency for these products, rather than using the currency assigned to the WooCommerce store?

    The product sync should use the store currency as far as I can see, as it calls the get_woocommerce_currency() function when sending over the data. Perhaps one of the other plugins is filtering this call if the plugin doesn’t have a specific language or address selected like a customer would.

    To look into this further, I think we’d need to enable debug logging for the plugin and update a product to see what data was sent over to Facebook from the logs. We can also try generating a feed file to check the data contained with the CSV file, that would be used during the full manual sync, or the daily sync schedule.

    As we’ll need to take a closer look at your site to run these sets, it would be great if you could contact us directly! In which case, could you please raise a support request via our support form? This will allow us to reply directly to your email and gather more information about your site privately.

    Cheers!

    Simon.

    Thread Starter Noelle Steegs

    (@noellesteegs)

    Hey @skyverge, thanks so much for your reply. So, interestingly… after deactivating the multi-currency plugin the products in the Facebook store stopped switching currencies overnight. Do you think it is possible that, when synching (which happens at 6 am) Facebook is seen as being international and thus being served USD and imports that?

    As far as I can see it’s not possible to set a default for the products within Facebook.

    Based on your response I will log a support request, but perhaps this needs to be raised with the developer of the currency plugin instead?

    Cheers!

    Hey @noellesteegs,

    Ah, so that does seem to suggest they have something applied to adjust the currency returned by the get_woocommerce_currency() call. If the Facebook shop should always sync the same currency, e.g. ZAR, we could hardcode this with a custom snippet if you like?

    The product data that gets generated is filterable before it is sent over to Facebook. So in this instance, we could add a small custom snippet to adjust the product_data currency, and always set it to ZAR. This wouldn’t have any effect on the product itself, and wouldn’t require any changes to the Multi Currency plugin either. The downside is that hardcoding values like this isn’t always a great option, though in this case, perhaps it’s the simplest.

    I could provide an example snippet for you to test if you’d like to give this option a go. What do you think?

    Cheers,

    Simon.

    Thread Starter Noelle Steegs

    (@noellesteegs)

    Hi @skyverge, I’d love to try that solution, thank you!

    Hi @noellesteegs!

    Sure thing, we typically don’t provide custom code snippets, though this one was fairly simple to try, so I’d be happy to share it! However, please be aware of a couple notes:

    • I’m afraid that customizations are not covered under our support policy, so implementing this directly or modifying it further isn’t something I can assist with.
    • Please be sure you know how to add custom code to your site. Personally, I like the free Code Snippets plugin method.

    You can view the snippet here: https://gist.github.com/simonporter007/ef6b08b71dbc4432b6af469aefc557b3

    I gave it a quick test locally, and it seemed to do the job! Could you let me know how you get on with it?

    Cheers,

    Simon.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Currency of product data source incorrect’ is closed to new replies.