Forums / Built-in Shipping and Payment Modules / Adding $1.00 for each aditional item?

Adding $1.00 for each aditional item?

Locked

Views: 3,174

Results 21 to 36 of 36
This thread is locked. New replies are disabled.
27 Aug 2010, 8:13 PM
#21
ajeh avatar

ajeh

Oba-san

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

Adding $1.00 for each aditional item?

The curse continues ... :blink:

Have you a couple of products that can be added to the cart to reproduce this problem on your site and something to indicate what the shipping should be? :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!

27 Aug 2010, 8:35 PM
#22
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

Re: Adding $1.00 for each aditional item?

Add any gown, shipping should be $48.75, add any second gown shipping should be an additional $25.00 which seems to work. Now I remember that we configured our shipping so that any item other than the gowns under a certain weight would be a $15.00 shipping because when a customer put those items in their cart the shipping was ridiculously low such as 7 cents, and that doesn't even cover a postage stamp. I can't remember where we set that up in the admin/files but I know we did that.
If you add an item to the cart such as a few stickers found in the wedding stationary section, a piece of jewelry or anything else that is super light weight and then add a gown, the shipping stays at $15

Did I just confuse matters?? :wacko:

Every bit of help I get here, gets me that much closer to helping others

27 Aug 2010, 11:44 PM
#23
ajeh avatar

ajeh

Oba-san

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

Re: Adding $1.00 for each aditional item?

Let's pretend I have not worked on your site in an age ... and that I have worked on a zillion others since then ...

Now if I were to guess at your site URL and the products_id numbers to do a click for click to reproduce this issue ... what would I be doing ... :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!

28 Aug 2010, 1:27 PM
#24
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

Re: Adding $1.00 for each aditional item?

hahahaha, sorry Linda! I forgot my bubble is much much smaller than yours! :rotflmao:

Heres the site

And add product id 30LA94HD which should have $48.75 for shipping, then add product id ws6136 which is a product that has a minimum shipping of $15 because its weighs next to nothing.

Lisa :smile:

Every bit of help I get here, gets me that much closer to helping others

28 Aug 2010, 2:35 PM
#25
ajeh avatar

ajeh

Oba-san

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

Re: Adding $1.00 for each aditional item?

If there are gowns in the cart and something else and something else calculates to less than $15.00 ...

Should the charge be the gown charge plus the $15.00? :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!

30 Aug 2010, 2:06 PM
#26
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

Re: Adding $1.00 for each aditional item?

Yes, I would like, if possible to have the shipping that is configured for all of our gown categories (1st gown $48.75, second gown $25 and so on) added as a separate rate to our other products since they are from separate suppliers and we have to figure in our shipping, duty and taxes too.

So like this:

gown 1 $48.75
gown 2 $25.00
veil $15.00

Now I've just tested a few things and it looks like all of my perweightunit items are going in at a flat rate of $15.00 when added to the cart. Originally, the gowns were supposed to be the only flat rate items and everything else would remain as perweightunit.

Uh-oh...

Every bit of help I get here, gets me that much closer to helping others

30 Aug 2010, 2:48 PM
#27
ajeh avatar

ajeh

Oba-san

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

Re: Adding $1.00 for each aditional item?

So edit the perweightunit.php and comment out the existing IF line and replace it ...

//    if ( (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units < 15.00) && $total_weight_units != 0) {
    if ( $chk_gowns == 0 && (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units < 15.00) && $total_weight_units != 0) {

Does it now work happily? :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!

30 Aug 2010, 4:50 PM
#28
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

Re: Adding $1.00 for each aditional item?

Well that fixed the problem of the gown's shipping rate changing to $15.00 but now if the cart has a gown and an under weight item it doesn't add the $15.00 for the underweight item, it only adds a dollar and change because of its weight. (I'm guessing).

What I need it to do is this:

Gowns- 1st one is always $48.75 every one after is $25.00
Shoes- every pair is $25, that works since I've made their weight the same so it will calculate it the same every time.
Everything else- on the actual perweight basis but always $15 or more so that when they order a cowboy hat for example, then the rate will be $15 because its actually underweight but if they order that and a photo album, the combined weight will calculate the shipping to either be $15 or more.

Every bit of help I get here, gets me that much closer to helping others

30 Aug 2010, 4:58 PM
#29
ajeh avatar

ajeh

Oba-san

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

Re: Adding $1.00 for each aditional item?

Okay ... try this one:

//    if ( (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units < 15.00) && $total_weight_units != 0) {
    if ( $chk_gowns == 0 && (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units < 15.00) && $total_weight_units != 0) {
    $this->quotes = array('id' => $this->code,
                          'module' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_TITLE,
                          'methods' => array(array('id' => $this->code,
                                                   'title' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_WAY,
                                                   'cost' => (15.00)
                                                              + MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING)));
    } else {
    $this->quotes = array('id' => $this->code,
                          'module' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_TITLE,
                          'methods' => array(array('id' => $this->code,
                                                   'title' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_WAY,
                                                   'cost' => $chk_gowns_shipping + (MODULE_SHIPPING_PERWEIGHTUNIT_COST * ($total_weight_units < 15 ? 15.00 : $total_weight_units))
                                                              + MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING)));
    }

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 Aug 2010, 5:07 PM
#30
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

Re: Adding $1.00 for each aditional item?

Am I just replacing that one line that I changed the last time with this?
Lisa

Every bit of help I get here, gets me that much closer to helping others

30 Aug 2010, 5:20 PM
#31
ajeh avatar

ajeh

Oba-san

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

Re: Adding $1.00 for each aditional item?

No, you have a full IF setup in your perweightunit.php module so you are replacing it ...

I am pretty sure the changes that should stand out are:

//    if ( (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units < 15.00) && $total_weight_units != 0) {
    if ( $chk_gowns == 0 && (MODULE_SHIPPING_PERWEIGHTUNIT_COST * $total_weight_units < 15.00) && $total_weight_units != 0) {
    $this->quotes = array('id' => $this->code,
                          'module' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_TITLE,
                          'methods' => array(array('id' => $this->code,
                                                   'title' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_WAY,
                                                   'cost' => (15.00)
                                                              + MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING)));
    } else {
    $this->quotes = array('id' => $this->code,
                          'module' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_TITLE,
                          'methods' => array(array('id' => $this->code,
                                                   'title' => MODULE_SHIPPING_PERWEIGHTUNIT_TEXT_WAY,
                                                   'cost' => $chk_gowns_shipping + (MODULE_SHIPPING_PERWEIGHTUNIT_COST * ($total_weight_units < 15 ? 15.00 : $total_weight_units))
                                                              + MODULE_SHIPPING_PERWEIGHTUNIT_HANDLING)));
    }

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 Aug 2010, 5:33 PM
#32
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

Re: Adding $1.00 for each aditional item?

ok so I copied that but its still miscalculating. If you can put a gown in the cart, then say two other gowns in the cart and then the cowboy hat on this page. Hat

For some reason the shipping is not right, and then if you remove the gowns the shipping is right for the hat. But if you add 3 other different gowns with the same hat the shipping amount is different than the first time... geez, I hope this isn't another case of weird. Remember when I had files crossing over to each other? But since we fixed that mix up I haven't changed anything, it was just by accident that I realized the shipping wasn't right.

I have to run out for an hour but I will come back...
Lisa :smile:

Every bit of help I get here, gets me that much closer to helping others

30 Aug 2010, 5:58 PM
#33
ajeh avatar

ajeh

Oba-san

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

Re: Adding $1.00 for each aditional item?

I am having a great coding day ... :blink:

Give me a few to work with this one ...

What is your Shipping Cost per Unit set to? 1 or 5?

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 Aug 2010, 8:12 PM
#34
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

Re: Adding $1.00 for each aditional item?

I reverted the file back to the way it was this morning just incase I have traffic. I have the Shipping Cost per Unit set at 5.

No such thing as a bad coding day in my books, I haven't a clue how you do all of this! :blink:

Lisa:smile:

Every bit of help I get here, gets me that much closer to helping others

30 Aug 2010, 10:13 PM
#35
ajeh avatar

ajeh

Oba-san

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

Re: Adding $1.00 for each aditional item?

So you take the Product Weight * 5 for all of the products that are not gowns ... and if the amount of the calculation of the:
Product Weight * 5 < 15

You want to charge $15.00 ...

Then if there are gowns you want the gown rates plus either the:
Product Weight * 5

Or plus $15.00, which ever is greater ... correct?

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 Aug 2010, 11:04 PM
#36
cdnbride avatar

cdnbride

Zen Follower

Join Date:
Sep 2009
Location:
Toronto, Canada
Posts:
149
Plugin Contributions:
0

Re: Adding $1.00 for each aditional item?

Yes, you got it. :D

Every bit of help I get here, gets me that much closer to helping others