Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Built-in Shipping and Payment Modules / Shipping based on price + weight

Shipping based on price + weight

Locked

Started by bobrushworth on 30 Mar 2007, 4:17 PM · Views: 2,312

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
30 Mar 2007, 4:17 PM
#1
bobrushworth avatar

bobrushworth

New Zenner

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

Shipping based on price + weight

I've been looking through previous posts and think I may need a customisation to do this but thought I'd just put it to the experts. Apologies if this has been covered a million times before...

We have shipping using a table that calculates the charge based on total cost. However, some items are heavy and need extra added on. Can this mixture of table-based and weight be done?

I guessed that it may be possible if the weight is 0 for everything except the things where weight matters.

Any help as usual greatly appreciated.

30 Mar 2007, 4:26 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Shipping based on price + weight

What do you have to indicate when to do this?

There needs to be some type of trigger to know to make a special calculation for this ...

You might be able to use products_weight where 0 means don't add more and anything else means add on to the shipping that was based on price ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Mar 2007, 5:21 PM
#3
bobrushworth avatar

bobrushworth

New Zenner

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

Re: Shipping based on price + weight

At the moment there is one product that is quite heavy and needs a special price. Everything else on the site uses the table based calculation.

Sorry about the double post, the browser froze on me.:oops:

30 Mar 2007, 8:22 PM
#4
henrietta avatar

henrietta

New Zenner

Join Date:
Mar 2007
Location:
WAY out West
Posts:
86
Plugin Contributions:
0

Re: Shipping based on price + weight

You should be able to do this through attributes. There is a whole section in the book about it.

Henrietta

1 Nov 2009, 3:40 PM
#5
icezippo avatar

icezippo

New Zenner

Join Date:
Apr 2009
Posts:
35
Plugin Contributions:
0

Re: Shipping based on price + weight

i need this too...... any body can show how to do it?
as he said , based on price is good normally, if some one order over weight, we will lost profit!

1 Nov 2009, 3:50 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Shipping based on price + weight

This thread is two years old ...

Could you perhaps spell, out in detail, what it is you are specifically trying to do?

Examples and Details would really help a lot in helping break down shipping options ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Nov 2009, 5:20 PM
#7
icezippo avatar

icezippo

New Zenner

Join Date:
Apr 2009
Posts:
35
Plugin Contributions:
0

Re: Shipping based on price + weight

i know its two year old.... but i have been search for 2 hours for this, i havent find any answer yet , also he got same problem with me,......

ok, im using table rate clone shipping module at the moment, it can set price , weight and per items, but i found it can mixed up together. mine one set based on price,i would like customers spend more in my shop, so spend more in my shop, the shipping fee will be cheaper, but i would like set a weight limited for it, for over 25kg i would like set based on weight, or over 25kg and over 25 pound, i want set it cost more shipping fee. i know it a bit complicate to understand. i show you my table rate setting below.

Shipping Table
The shipping cost is based on the total cost or weight of items or count of the items. Example: 25:8.50,50:5.50,etc.. Up to 25 charge 8.50, from there to 50 charge 5.50, etc
You can end the last amount as 10000:7% to charge 7% of the Order Total

1.00:8.05,14.99:8.05,24.99:8.05,25.00:1.99,99.00:1.99


Table Method
The shipping cost is based on the order total or the total weight of the items ordered or the total number of items orderd.

i set: price

it looks good for most orders, but some of orders are too heavey.... based on price , i still need a weight limited, i would like to know is it any other module can make it , or some of setting in zencart can make it?

thank you

1 Nov 2009, 5:23 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Shipping based on price + weight

You could add another condition on the $this->enabled based on the weight to disable the module when the weight gets to be a certain amount ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Nov 2009, 5:43 PM
#9
icezippo avatar

icezippo

New Zenner

Join Date:
Apr 2009
Posts:
35
Plugin Contributions:
0

Re: Shipping based on price + weight

thank for reply so fast.
its a good idea, but i dont know how to do it , sorry! could you explain a little?

1 Nov 2009, 6:02 PM
#10
icezippo avatar

icezippo

New Zenner

Join Date:
Apr 2009
Posts:
35
Plugin Contributions:
0

Re: Shipping based on price + weight

if i add the code myself, i will add the code like this: $this->enabled = 25 kg

1 Nov 2009, 6:27 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Shipping based on price + weight

That would not work very well ... :blink:

You need to determine if the weight > 25 ...

If you were using the Table Rate table shipping module you could look for the closing bracket to the function table and change it:

  }
  /**
   * Enter description here...

and customize the code with:

// bof: hide shipping method if weight > 25
    global $cart;
    if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() > 25) {
        $this->enabled = false;
    }
// eof: hide shipping method if weight > 25

  }
  /**
   * Enter description here...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Nov 2009, 7:09 PM
#12
icezippo avatar

icezippo

New Zenner

Join Date:
Apr 2009
Posts:
35
Plugin Contributions:
0

Re: Shipping based on price + weight

thanks for that, dont worry, im going to try now, if working fine, i let you know, may somebody need it as well.

9 Nov 2009, 6:07 PM
#13
icezippo avatar

icezippo

New Zenner

Join Date:
Apr 2009
Posts:
35
Plugin Contributions:
0

Re: Shipping based on price + weight

i tested it, it only working on table clone version, thank you so much!

9 Nov 2009, 7:28 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Shipping based on price + weight

That code is pretty generic and should work on any shipping module ... where are you placing it? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!