in Magento

Magento getFinalPrice by customer group

If you use group pricing you will find that getFinalPrice does not return the correct price.

This is easy to correct by adding

$product->setCustomerGroupId(0);

Before calling getFinalPrice(); 0 being the default customer group or replace with the group of your choice.

Write a Comment

Comment

  1. Hello thank you for your example i have only problem why still returning the GENERAL Customer Group even –> Group ID (5) is vip-person.

    $product = Mage::getModel(‘catalog/product’)->load($ourProductId);
    $product->setCustomerGroupId(5);
    $priceown = $product->getFinalPrice();

    Still the Return value is the general price ?

    I hope you can help me thanks