Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Pickup Options relative to Free Shipping options?

Pickup Options relative to Free Shipping options?

Locked

Views: 2,240

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
20 Aug 2008, 2:50 AM
#1
ejeffay avatar

ejeffay

New Zenner

Join Date:
May 2005
Posts:
60
Plugin Contributions:
0

Pickup Options relative to Free Shipping options?

Hey there,

I can't tell you how much more I love zencart then OSC. Alright well the scenario i want is that when someone orders something $100+, the option for pick-up is possible; otherwise not visible. Obvioulsy this would be for those within my area (currently residing in Ontario) and have already set that. Just need to know if there is a way where i can set it to 'true' only when 'cost>$100'.

Thanks to anyone and everyone who takes the time to try and help!

20 Aug 2008, 3:21 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Pickup Options relative to Free Shipping options?

Can you use the Free Shipping Option freeoption and set to Total >= 100.00 and then create a Zone for this?

Now the Free Shipping Options freeoptions will only show when the order is over $100.00 and the Shipping Address is in the defined Zone ... :smile:

20 Aug 2008, 7:04 PM
#3
ejeffay avatar

ejeffay

New Zenner

Join Date:
May 2005
Posts:
60
Plugin Contributions:
0

Re: Pickup Options relative to Free Shipping options?

Thanks for the reply!

But i think im being mis-understood. I would like the 'pick-up' option to show when price>=$100 and a specific zone is selected; not the 'free shipping' option. I would like to have 'Pick-up Options' just as 'free shipping' has 'free shipping optons'.

Again thanks for taking the time to reply!

21 Aug 2008, 4:14 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Pickup Options relative to Free Shipping options?

Make a Zone that works with Store Pick Up ...

Once you have that working, you can then customize Store Pickup to run only when the total is >= 100.00 by altering the:
$this->enabled

in the Store Pickup storepickup shipping module ...

But first, get the Zone defined for it to work correctly as that is most important, then you can worry about the shipping module being further customized for the >= 100.00 ... :smile:

21 Aug 2008, 4:25 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Pickup Options relative to Free Shipping options?

An example of how to change the code would be changing the code from:

      $this->enabled = ((MODULE_SHIPPING_STOREPICKUP_STATUS == 'True') ? true : false);

to read:

// only run if order is over $100.00
    global $cart;
    if (!IS_ADMIN_FLAG) {
      $order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices();
    } else {
      $order_total_amount = 0.00;
    }
    if ($order_total_amount >= 100) {
      $this->enabled = ((MODULE_SHIPPING_STOREPICKUP_STATUS == 'True') ? true : false);
    }