Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Modifying a shipping option

Modifying a shipping option

Locked

Views: 756

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
23 Nov 2007, 5:52 PM
#1
phlipper avatar

phlipper

Zen Follower

Join Date:
Jan 2006
Posts:
128
Plugin Contributions:
0

Modifying a shipping option

Using the developers toolkit I was able to modify the description of the 'flat rate' to 'expedited shipping (orders over $30 only)'... but I am now running in to a problem with customers selecting this as the shipping method for orders under $30.

Is there a line of code that would disable the 'flat rate' shipping option if the total cart value is under a certain dollar value.

I know this is odd, but our store offers free shipping on orders over $30 and we like to offer the option of having a faster shipping method for a fee.

Any assistance is appreciated

thanks

Phil
Kind of Magic

24 Nov 2007, 12:32 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Modifying a shipping option

You need to control when the $this->enabled is true or false on the shipping module ...

When true, it shows ... when false, it does not show ...

25 Nov 2007, 4:40 PM
#3
phlipper avatar

phlipper

Zen Follower

Join Date:
Jan 2006
Posts:
128
Plugin Contributions:
0

Re: Modifying a shipping option

thanks this is what I ended up adding and it seems to work ... I had to have a friend who knew a little more about PHP than me help me with it.

  if ( ($order->info['total'] - $order->info['shipping_cost']) < MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) {
	$this->enabled = false;
  }