I'm having a problem with the solution above. I'm using dual pricing and using some of the info in these posts I was able to make separate shipping for wholesale and retail by doing this
In includes/modules/shipping/zones2.php file
Around line 95 find
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_ZONES2_STATUS == 'True') ? true : false);
}
ADD UNDERNEATH IT
// disables wholesale shipping when you are retail customer
$this->enabled = ((MODULE_SHIPPING_ZONES2_STATUS == 'True') ? true : false);
if($_SESSION['customers_wholesale']=='1' && $this->enabled==true)
{
$this->enabled=true;
}else{
$this->enabled=false;
}
In includes/modules/shipping/zones.php file
Around line 95 find
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'True') ? true : false);
}
ADD underneath it
// disables retail shipping when you are wholesale customer
$this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'True') ? true : false);
if($_SESSION['customers_wholesale']=='0' && $this->enabled==true)
{
$this->enabled=true;
}else{
$this->enabled=false;
}
This works....except when a NEW customer signs up for a new account, and goes to checkout they get this error: Sorry, we are not shipping to your region at this time. BUT if they logoff and log back in, it works =) Is there a small piece of code that is incorrect or a piece of code that is missing that would make it not do this? ANY help would be greatly appreciated!!!
Thank you!
=0)