VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Shipping VM 1.1 => UPS VM 1 => Topic started by: vargpr on November 21, 2011, 22:32:56 pm

Title: Prevent Regular UPS Rates To Appear- Make Standard Rates Show up
Post by: vargpr on November 21, 2011, 22:32:56 pm
When the product is over 150lbs i want the Standard Shipping to take into effect, how ever, i would like the UPS rates to not show up underneath them Like it does now.
This is only for products on USA

However, less than 150lbs, i want the regular ups rates to show up.


Any suggestion in how to make this happen?

Title: Re: Prevent Regular UPS Rates To Appear- Make Standard Rates Show up
Post by: lowmips on November 22, 2011, 15:53:22 pm
You will need to customize the module, specifically the list_rates() function.   Find the total cart weight, and if it is above 150lbs, silently exit the module (i.e. return;)

Reggie