• Resolved viktormorales

    (@viktormorales)


    I’ve created a plugin which use the WooCommerce hook “raw_woocommerce_price” to alter the price of the product in the frontend cart (USD x Argentinian pesos).

    Problem: The product price shown on the Facebook Store is the one that it is displayed in the backend.

    What I need: To show the same price as the one shown in the frontend (the one I explain at the beggining)

    My question is: Which hook can I use to alter the product price that it’s shown on the Facebook Store.

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @viktormorales,

    Thanks for reaching out about Facebook for WooCommerce! I’ll be happy to help.

    While customizations like this are technically beyond the scope of our support policy, I’ll be happy to see what I can recommend to try to point you in the right direction on this. ?? I am running this question by one of our developers to try to get some additional information on how the price is passed to Facebook and any hooks that you might be able to use to update the price beforehand – as soon as I’ve heard back, I will get back to you to let you know what I find out.

    Thanks,

    Jennifer

    Simon

    (@simonskyverge)

    Hi @viktormorales,

    Thanks for the question. There are two options for adjusting the price sent to Facebook with the plugin. The first, being the simplest, is to edit the Facebook price field which is available on the edit product page > Facebook tab: https://cloud.skyver.ge/qGuNw6A1

    The second is to use one of the plugins available filters, namely: facebook_for_woocommerce_integration_prepare_product, which is given the $product_data and $id. This will then allow you to adjust the $product_data[‘price’] field.

    As Jennifer mentioned, I’m afraid we don’t cover directly implementing custom code, though I hope this gives you something to work with!

    Is there anything else I can help out with today?

    Cheers,

    Simon.

    Hey @viktormorales,

    It has been a long time since we heard from you, so I’m going to mark this topic as resolved. If you’re still experiencing issues please take a look at our documentation for more information and create a new thread if you have further questions.

    Thanks,
    Tamara ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product Price Hook’ is closed to new replies.