2

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.

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

Thanks.

Your Answer

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