Zen Cart Logo
Forums / Addon Shipping Modules / How to disallow Free Shipping on Priority/Express mail options?

How to disallow Free Shipping on Priority/Express mail options?

Locked

Views: 1,762

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
6 May 2010, 11:38 PM
#1
jcat avatar

jcat

New Zenner

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

How to disallow Free Shipping on Priority/Express mail options?

Hi,

I have set up a free shipping coupon in Admin/Gift Certificate/Coupons. In the configuration I checked the "Free Shipping" box.

Now I test with check out using this coupon, but I am able to select Priority or Express Mail from USPS module. Is there a way to disable the selection for Priority/Express Mail when this coupon is applied? (I only want Free shipping using parcel post)
Any better way to accomplish this?

Any advice is much appreciated!

7 May 2010, 12:24 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: How to disallow Free Shipping on Priority/Express mail options?

The hardest thing is take the Shipping Method picked on checkout_shipping and when a Discount Coupon for Free Shipping is added that it deletes the previously selected method and changes it to the Parcel Post ...

Changing the name Parcel Post and resetting the id is easy enough but the amount of the Parcel Post is a problem ...

To properly do this, the information should be saved and available to the checkout_payment page so that all information can be correctly updated ...

While not difficult to do, it is time consuming and hard to explain everything that needs to be customized without actually sitting down and rewriting all of the code needed for this so that it works correctly in a manner that is not going to upset the customer if the shipping method and old price off shipping doesn't match the new price off shipping ...

This is something that you may want to go through and re-write all of this in all of the files that must be addressed to manage this properly ...

There are quite a few to get all of the displays working properly, once the Discount Coupon has been added for the Free Shipping and if the customer then goes to change the order or back to the checkout_shipping from the other checkout pages etc.

If you go through each step then try things like:

Add more to cart

Go back to checkout_shipping

Select the Shipping Estimator

etc. etc. etc. ... then you should be able to see all of the areas where this code needs to be updated so that the "new" shipping choice is now USPS Parcel Post ...

Do you ship out of the country?

7 May 2010, 4:32 AM
#3
jcat avatar

jcat

New Zenner

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

Re: How to disallow Free Shipping on Priority/Express mail options?

Thanks for the reply!

No I only ship domestic now.

Is it possible to move the apply coupon logic somewhere before the checkout_shipping page so we can disable the options for priority/express mail based on the coupon entered?

7 May 2010, 5:01 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: How to disallow Free Shipping on Priority/Express mail options?

That would actually be more complicated ...

It is easier to store the data from checkout_shipping in $_SESSION variables for the Priority shipping and then, if a Discount Coupon for Free Shipping is used to update the shipping settings so the right name, value and method are reset ...

19 Aug 2010, 1:23 AM
#5
mumzie avatar

mumzie

Inactive

Join Date:
Feb 2007
Posts:
211
Plugin Contributions:
0

Re: How to disallow Free Shipping on Priority/Express mail options?

Has anyone attacked this issue? I just got really lucky, and saved myself from am $80 shipping bill under "free shipping". I hate to disable the overnight shipping choices, but much to my amazement, a customer was able to pick ups next day air and redeem the free shipping coupon. Ouch!

29 Aug 2010, 3:20 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: How to disallow Free Shipping on Priority/Express mail options?

Give the Free Shipping is using the currently selected shipping method when the Free Shipping is given ...

What you need to do is customize the code so that when the Free Shipping is given, it resets the shipping to the shipping method that you want to be the "Free Shipping" method ...

Somewhere I have posted several times on how to reset the shipping method to another method and price ...

I have not had time to hunt down the code for this on the forum, but I am pretty sure it is posted here ... perhaps you, or someone else could hunt that code down that I have already posted for this ... :smile: