facebookarchive / facebook-for-magento

A first-party extension plugin built for Magento. This plugin will install a pixel on your site, upload your products into a catalog for use in FB ads, and (optionally) auto-create an FB shop with your products.
https://www.facebook.com/business/help/532749253576163
84 stars 57 forks source link

Price issue with Bundle Products. #79

Closed rrahul229 closed 5 years ago

rrahul229 commented 6 years ago

I am using this extension but there is an issue with Bundle products that on Facebook page it is showing $1 price for bundle products but i want to show the price which is max in the price range for that bundle product. I found a piece of code in FBProductFeed.php:- private function getBundleProductPrice($product) { return $product->getPriceModel()->getTotalPrices($product, 'min', 1, 1); }

But i am not sure whether this is responsible for showing price at Facebook page. So please can anyone help me regarding the same.

Thanks in advance.

dmitridr commented 6 years ago

Hey,

Thanks for writing in. That's the right piece of code. Try changing 'min' to 'max', that should be what you want. After doing the change run a 'Fetch Now` or wait 24 hours for the next feed upload for changes to take effect.

Here's some relevant material about that function: https://stackoverflow.com/questions/20516595/magento-bundle-product-original-price

function getTotalPrices($product, $which = null, $includeTax = null, $takeTierPrice = true)

dmitridr commented 5 years ago

Closing as there hasn't been a response in a while. Hope that solved your issue.