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
Re: Table Method by Price showing 0 shipping if not defined!
Try adding a:
global $cart;
above your test ...
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:
Re: Table Method by Price showing 0 shipping if not defined!
What other shipping modules do you have for orders over $25.00? :unsure:
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
Re: Table Method by Price showing 0 shipping if not defined!
I only ship to USA from USA
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:
Code:
//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
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
Re: Table Method by Price showing 0 shipping if not defined!
If I change the code to:
Code:
// 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 ...
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....