Zen Cart Logo
Forums / General Questions / Various shipping prices

Various shipping prices

Locked

Views: 1,590

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
29 Jun 2006, 3:05 PM
#1
trekmp avatar

trekmp

New Zenner

Join Date:
Jun 2006
Posts:
4
Plugin Contributions:
0

Various shipping prices

I', very new to this and was wondering if its possbile to have different shipping prices depending on the number of items a user buys.

Example:
If you buy one item then shipping is £2.50
If you buy two or more then shipping is £3.00

Over 5 then shipping is free? (this option yet is not essencial)

Thanks in advance

30 Jun 2006, 4:04 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Various shipping prices

You could customize items.php

Handling Fee 2.00
Per Item is 0.50

This will give you:
1 item $2.50
2 items $3.00
etc.

However, then you would need to customize it to turn off when 5 or more items exist ...

Next, turn on the Free Shipping Options freeoptions and set this to have blank on all settings except for the:
Item Count >= and set that to 5

30 Jun 2006, 8:06 AM
#3
trekmp avatar

trekmp

New Zenner

Join Date:
Jun 2006
Posts:
4
Plugin Contributions:
0

Re: Various shipping prices

Hi Ajeh,

Thanks for that info but where abouts in item.php would be the best place to put this amendment to the code?

1 Jul 2006, 2:40 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Various shipping prices

You would need 2 functions to manage this ...

The current items.php uses a function to test should it show ...

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

You would want to add another function in there as well ...

That function would check how many items are in the cart for the Catalog side ... and on the Admin side would just return true so the module can work in the setup ...