I'm developing an api in Magento 2 that will return bundle products minimum prices for each group. Magento shows the price on front end when particular customer of a group logged in, in my case customer will not logged in. I am using below code for each available customer group by passing group id but it gives same price in all customer group.

$bundleObj = $product->getPriceModel()->getTotalPrices($product, null, null, true);


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy