Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / different shipping for different customers

different shipping for different customers

Views: 6,813

Results 21 to 23 of 23
27 Sep 2011, 6:41 PM
#21
akrogers avatar

akrogers

New Zenner

Join Date:
Feb 2011
Posts:
6
Plugin Contributions:
0

different shipping for different customers

I also have the dual pricing module installed and we have several products marked as "Always Free Shipping" but we don't want those to have free shipping when someone is logged in as a wholesale customer. We are using freeshipper for the free shipping and when I modified it to include this:
if($_SESSION['customer_whole']=='1' && $this->enabled==true)
{
$this->enabled = false;
}

it still shows the free shipping icon for the product and in the checkout it says, "Sorry, we are not shipping to your region at this time." Any help as to how to enable shipping (using fedexwebservices) for wholesale customers for products marked as free shipping? Thanks in advance for any help you can offer!

27 Sep 2011, 9:40 PM
#22
akrogers avatar

akrogers

New Zenner

Join Date:
Feb 2011
Posts:
6
Plugin Contributions:
0

Re: different shipping for different customers

I found that I needed to add a line to the fedexwebservices.php to enable it for wholesale users as well. Now it works the way I need it to.

12 Apr 2019, 3:45 PM
#23
kadeepro avatar

kadeepro

New Zenner

Join Date:
Sep 2017
Location:
White City
Posts:
15
Plugin Contributions:
0

Re: different shipping for different customers

I am so confused why I this wont work. I am working with 1.5.5f.

Group Pricing
ID Group Name
1 PO-DEALER
2 PO-E-TAILER
3 PO-DISTRIBUTOR
4 PO-MANUFACTURE

I am trying to only enable the Freeoptions shipping module for my PO_DEALER in my Group Pricing.
The disable code below doesn't work for turning off Freeoptions shipping module for all except PO_DEALER.

Also

I am trying to only enable the purchaseorders payment module for my PO_DEALER in my Group Pricing.
The disable code below doesn't work for turning off purchaseorders payment module for all except PO_DEALER.

######################################################################################################################################################__

// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false);
}

// disables wholesale shipping when you are retail customer
$this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false);
if($_SESSION['PO_DEALER']=='1' && $this->enabled==true)
{
$this->enabled=true;
}else{
$this->enabled=false;
}

################################################################################################################################################################

$this->code = 'purchaseorders';
$this->title = MODULE_PAYMENT_PURCHASEORDER_TEXT_TITLE;
$this->description = MODULE_PAYMENT_PURCHASEORDER_TEXT_DESCRIPTION;
$this->sort_order = MODULE_PAYMENT_PURCHASEORDER_SORT_ORDER;
$this->enabled = ((MODULE_PAYMENT_PURCHASEORDER_STATUS == 'True') ? true : false);

// disables wholesale shipping when you are retail customer

$this->enabled = ((MODULE_PAYMENT_PURCHASEORDER_ORDER_STATUS == 'True') ? true : false);
if($_SESSION['PO_DEALER']=='1' && $this->enabled==true)
{
$this->enabled=true;
}else{
$this->enabled=false;
}

Please can anyone help out. I am guessing it is something simple.
Thanks