Hi,
I also wanted free shipping on a product (seems this shouldn't be impossible?)
I tried porelrio's code above... it seems to do something...
I made one of my products set to '0' weight.
During checkout, when a user clicks "click to calculate shipping" they get the following message:
undefined: Please enter the package weight.
There were problems getting a shipping quote. Please verify the delivery and product information and try again.
If this does not resolve the issue, please call in to complete your order.
Then, under Payment Method (Order total preview) I still see the first shipping option selected "U.S.P.S. First-Class Mail: $2.96". I wonder if this shipping option is selected because there was a "problem getting a shipping quote"?
Is there a way to add a friendly message, instead of this one, and to have the shipping quote show something like "$0" or "Free Shipping"?
I wonder if we could modify the if statement above, to add an 'else' – something like this?:
if ($total_weight > 0) {
$rate += variable_get('uc_weightquote_base_rate', 0);
}
else {
// 1. Show a friendly message
SORRY I'M NOT SURE HOW TO WRITE THE CODE FOR THIS, AND...
// 2. Set default payment method to "Free Shipping $0.00"
ALSO NOT SURE WHAT TO WRITE HERE, BUT YOU GET THE IDEA
}Though I'm not familiar enough with ubercart to suggest what to write here. Does anyone have an idea how to do this? Seems this would be pretty important if giving users free shipping on a product?
Thanks!
Scott



Joined: 10/08/2007