cancel
Showing results for 
Search instead for 
Did you mean: 

Can I show UPS as an option only for CERTAIN customer groups?

Can I show UPS as an option only for CERTAIN customer groups?

Just like it says in my subject; I want to have my wholesale customer group be the only people to see UPS shipping options at all.  Can this be done?   Ive tried a few of the basic (free) shipping extensions but they all seem to be set for 'flat rate' style shipping tables, I still need the weight to go out and hit the UPS API and pull down our correct shipping price by weight to present to the customer.

 

Thanks!

2 REPLIES 2

Re: Can I show UPS as an option only for CERTAIN customer groups?

 Hi,

 

You have two options here:

 

Use a Magento extension such as this one: https://amasty.com/shipping-payment-by-customer-group.html

 

 

Or edit the code yourself like this: 

 

Use any shipping module and customize the method ( Matrixrate is very good module )

And Modify collectRates() method in ( ../model/Carrier/{ShippingMethod}.php )

 

public function collectRates(Mage_Shipping_Model_Rate_Request $request){
.....$customer = Mage::helper('customer')->getCustomer();$group = null;
if($customer)
{    $group = $customer->getGroupId();
}
if($group == 'ID'){
// do the logic here 
}else{
return false; // disable the shipping method
}
......
}

method to check on the customer group and return rate or false;

 

Source: http://stackoverflow.com/questions/14825393/table-rate-for-different-customer-group

 

Rebecca Troth

Problem solved? Click Accept as Solution!
Follow me on twitter:@RebeccaBrocton | wearejh.com

Re: Can I show UPS as an option only for CERTAIN customer groups?

Yes you can define shipping options for certain customer groups using the StorePep Integrated Shipping & Tracking extension in the Magento marketplace. Using the extension, automation rules can be created which will allow you to setup shipping methods based on customer groups.