Greetings,
I am trying to offer my international customers Priority Mail Int Lrg Video shipping option, but want to limit it to under 2 lbs. for the weight since the box isn't very large. I have tried this code, but when I tested an address from India it just showed me my other 3 options express, priority, exp guaranteed.
Does anyone know what is wrong / if this can or can't be done? Thanks in advanced!
www.heteromorphic.com/zencart
// BOF: UPS USPS
$title = ((isset($this->types[$type])) ? $this->types[$type] : $type);
if(in_array('Display transit time', explode(', ', MODULE_SHIPPING_USPS_OPTIONS))) $title .= $transittime[$type];
/*
$methods[] = array('id' => $type,
'title' => ((isset($this->types[$type])) ? $this->types[$type] : $type),
'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
*/
if ($type == 'Priority Mail Int Lrg Video' && $shipping_weight >= 2) {
// skip Priority Mail Int Lrg Video on >= 2
} else {
$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
}
Thanks!
Bookmarks