Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Table Method by Price showing 0 shipping if not defined!

Table Method by Price showing 0 shipping if not defined!

Locked

Views: 2,586

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
2 May 2010, 5:14 PM
#1
kuukie avatar

kuukie

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

Table Method by Price showing 0 shipping if not defined!

After much searching I cannot find a solution. I have the table method by price which I am using for the items that can ship USPS Domestic Flat Rate. I have this in table to 25:10.70 but if someone has $26 it is returning 0 --I have temp put it at 500 ( 10000:500) but that is just plain unprofessional!
I tried below that I found in a post but it disabled the entire shipping estimator -I only want to not print the table method to the estimator if it is not defined. I want the other shipping methods to show!:(

if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
}

// Check for Price and display module if price exceeds stated value
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_total() > 25) {
$this->enabled = false;
}

Any help is much appreciated! I am using version 1.3.9a

2 May 2010, 5:55 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Table Method by Price showing 0 shipping if not defined!

Try adding a:
global $cart;

above your test ...

2 May 2010, 6:49 PM
#3
kuukie avatar

kuukie

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

Re: Table Method by Price showing 0 shipping if not defined!

Same thing - gives me a blank shipping estimator pop-up that only has a close window link :frusty:

2 May 2010, 8:21 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Table Method by Price showing 0 shipping if not defined!

What other shipping modules do you have for orders over $25.00? :unsure:

2 May 2010, 8:36 PM
#5
kuukie avatar

kuukie

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

Re: Table Method by Price showing 0 shipping if not defined!

USPS priority and FedEx
Unfortunately the USPS shipping module does not have first class Parcel or USPS Flat Rate Priority

2 May 2010, 8:37 PM
#6
kuukie avatar

kuukie

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

Re: Table Method by Price showing 0 shipping if not defined!

I only ship to USA from USA

2 May 2010, 9:24 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Table Method by Price showing 0 shipping if not defined!

I am not quite following what you cannot get to work correctly here ...

You might peek at the UPS shipping modle:
/includes/modules/shipping/usps.php

and check that you are setup how you want this to get your quotes:

          //PRIORITY MAIL OPTIONS
          if ($key == 'PRIORITY'){
            $this->container = ''; // Blank, Flate Rate Envelope, or Flat Rate Box // Sm Flat Rate Box, Md Flat Rate Box and Lg Flat Rate Box
2 May 2010, 11:17 PM
#8
kuukie avatar

kuukie

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

Re: Table Method by Price showing 0 shipping if not defined!

On usps module these are the choices:
Domestic Shipping Methods
Select the domestic services to be offered:

EXPRESS
PRIORITY
FIRST CLASS
PARCEL
MEDIA
BPM
LIBRARY

The first class is letters not parcel and parcel does not include first class parcel.
Priority Flat Rates are not a choice!

They are a choice on global/international shipping I do not use that as I do not do any international shipping.

What I did was set up the table method for shipping those items that can ship first class parcel, flat rate envelope and flat rate medium box.
It was easiest to set this by price as the weight varies too much.

For orders that do not fit in the flat rate box I have fedex or regular priority ( I do not ship usps parcel)

When you put the items in the cart that exceed the price in the table it gives $0 as the cost of shipping. I need the table method to not print to the shipping estimator pop up window if the price is over $25.00

3 May 2010, 12:09 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Table Method by Price showing 0 shipping if not defined!

If I change the code to:

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

global $cart;
// Check for Price and display module if price exceeds stated value
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_total() > 25) {
$this->enabled = false;
}

    if ($this->enabled) {
      // check MODULE_SHIPPING_TABLE_HANDLING_METHOD is in

The Table Rate table shipping module does not show when the Order is greater than $25.00 ... it does show when the Order is less than or equal to $25.00 ...

3 May 2010, 12:34 AM
#10
kuukie avatar

kuukie

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

Re: Table Method by Price showing 0 shipping if not defined!

So that I make sure I do it right, exactly which file am I adding this to? Maybe that is my problem --I'm probably in wrong folder or file:wacko:

Thank you for your patience and help :lookaroun

I keep getting myself all confused with all these folders with the same names and end up so lost going down the wrong paths....

3 May 2010, 12:47 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Table Method by Price showing 0 shipping if not defined!

If you want to control the Table Rate table shipping module, you would be editing the file:
/includes/modules/shipping/table.php

3 May 2010, 1:31 AM
#12
kuukie avatar

kuukie

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

Re: Table Method by Price showing 0 shipping if not defined!

ok You are Wonderful -- It is working! So I guess I put it in right place:clap:

3 May 2010, 1:43 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Table Method by Price showing 0 shipping if not defined!

You are most welcome ... thanks for the update that this is working for you ... :smile:

3 May 2010, 1:48 AM
#14
kuukie avatar

kuukie

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

Re: Table Method by Price showing 0 shipping if not defined!

:frusty:

Oh it's back!! It worked once but not on second test !

What am I doing wrong? At least the shipping is still showing up --

I will keep trying..........

Shows the shipping as $0 -- I know there has to be a solution.....

3 May 2010, 1:51 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Table Method by Price showing 0 shipping if not defined!

Have you an URL to your site where we could perhaps peek at this phenomena that you are experiencing? :unsure:

3 May 2010, 2:13 AM
#16
kuukie avatar

kuukie

New Zenner

Join Date:
Apr 2010
Posts:
15
Plugin Contributions:
0

Re: Table Method by Price showing 0 shipping if not defined!

Forgetful me :oops: forgot to save the rename on file and was back to the original one...... This time I saved it so it should be ok ...
Teach me not to keep them highlighted in blue and log off....who would of known that made a difference........

It has been one of those days..........

:wacko:

3 May 2010, 2:36 AM
#17
ajeh avatar

ajeh

Oba-san

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

Re: Table Method by Price showing 0 shipping if not defined!

Trust me ... been there ... got the T-shirt ... actually, got quite a few of those T-shirts come to think of it ... :lamo: