Sale Price not syncing in Facebook
-
Hi!
I am currently using the Woo Discount Rules plugin for Sale Price, but no luck in syncing the original cost to the sale price.
Is there a way to sync the sale price on Facebook?
I really appreciate any help you can provide.
-
Hi?@cmgeoogz,
Thanks for writing to us about Facebook for WooCommerce! I am happy to help with this. ??
I believe that the Facebook Catalog Manager displays the regular price by default.
Would you please try opening one of the products in the Catalog Manager, and then click View More Fields in the product pop-up, and see if the sale price is listed there?
Cheers,
BenjaminThank you for responding to me!
Would you please try opening one of the products in the Catalog Manager, and then click View More Fields in the product pop-up, and see if the sale price is listed there?
Yes, it is listed there, but the price is the same as the original.
Is the plugin able to change the sale price together with the sale price start & end date?As mentioned above, I’m using the “Woo Discount Rules plugin for Sale Price.”
Thank you in advance!
Hi @cmgeoogz,
You’re very welcome! ?? To clarify, you’re seeing a field called Sale Price, and the value of the field is equal to the regular price, not the sale price you’ve set in WooCommerce?
If that’s the case, it could indeed be a compatibility issue with the Woo Discount Rules plugin. As a test, would you please try the following steps?
- Create a new test product
- Set a Sale Price on that product on the Product Data tab of the Edit Product screen instead of using the Woo Discount Rules plugin
- Check to see if the correct sale price comes in under View more fields
Would you please let me know if that sale price comes through correctly, or if you have any questions along the way?
Cheers,
BenjaminI tried the test that you mentioned above, and it is working correctly. It seems that the Woo Discount Rules plus has a compatibility issue on setting the sale price globally.
Do you have any plugin suggestions that can automatically update the sale price globally?
Thanks!
Hey there @cmgeoogz,
I don’t know of a plugin in particular. Without custom code, only the product sale price on the WooCommerce product will be use, as the plugin pulls this value in particular over to the Catalog as the sale price.
With custom code, you could use the Facebook product_data filter to adjust the sale price. If Woo Discount rules had a way to retrieve a discounted price, you could potentially use that price in your code customization.
If you’re going the custom code route and need help, I’d recommend hiring a developer who’s experienced in customizing WooCommerce.
I’m sorry I can’t be of more assistance on this! Is there anything else I can help with?
Cheers,
BenjaminThanks for getting back to me!
Before I mark this thread as solved.
It is hard to test the sale price because there is no sale price value in the Facebook Pixel Helper extension. It’s already getting the sale price itself to regular price and no start and date value.
When I test one product, I had to wait for the FB catalog to sync for me to check if it is working.
Hey @cmgeoogz,
Marcus here, jumping in for Benjamin to answer this for you. You are correct that the pixel helper doesn’t have a way of showing you the sale price or dates. The pixel helper is intended to be used to test whether or not Facebook events are being tracked by your site.
Since we don’t develop or have a way to change the functionality of the pixel helper extension, you will need to sync your products to test whether or not the sale price has been synced. You can check this in your catalog or in the Facebook for WooCommerce debug logs, which you can enable in your WooCommerce > Facebook settings.
Are there any other questions I can answer for you? Please don’t hesitate to let me know.
Thanks,
MarcusHi @cmgeoogz,
Thanks so much for confirming this for me!
If there are any other questions I can answer for you, please don’t hesitate to let me know.
Cheers,
MarcusCan you please give me the name of the file where the code is located, the code of the variable that the plug-in takes … (price variable)
If anyone face the similar issue, you can use below filter to convert price of the product using the woo discount rules setup
function odb_facebook_sync_price_update($price, $facebook_price, $product){ if ( ! $facebook_price && $product instanceof \WC_Product ) { $price = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', $price, $product, 1, $price, 'discounted_price', true, true); } return $price; } add_filter( 'wc_facebook_product_price', 'odb_facebook_sync_price_update', 10, 3 );
Hi @oybekdaniyarov I used your filter. It works and discount prices are displayed on Facebook, but now another problem arises. Regular prices are not displayed, “0” is displayed instead of the price. When I remove the filter, regular prices are displayed, but not the discounted ones.
Hi @petar0212,
In case you don’t get any feedback from @oybekdaniyarov on this, then, per the forum guidelines, please start your own topic? We’ll be more than happy to help there ??
- The topic ‘Sale Price not syncing in Facebook’ is closed to new replies.