Jump to content
Sign in to follow this  
Twizted

Force USPS Priority on Items

Recommended Posts

I am looking for a way to setup my shop so that I can offer first class but setup some products to cause the shipping module to Force the user to use priority mail (for larger items for example) by not showing the first class option.. Is this possible and if so, How? Thanks :blink:

Share this post


Link to post
Share on other sites

You will have to modify the code and the database.

 

Create a field in the products table to store a shipping option value.

 

Modify the admin/categories.php file to include this new field and then enter the code for the priority mail item.

 

Then edit the catalog/includes/modules/shipping/usps.php file to remove all entries from the results array except for the specified code.

 

If you have multiple shipping options available, you will have to modify the catalog/includes/classes/shipping.php class instead to only return results that match the code specified by the product.


"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Share this post


Link to post
Share on other sites
You will have to modify the code and the database.

 

Create a field in the products table to store a shipping option value.

 

Modify the admin/categories.php file to include this new field and then enter the code for the priority mail item.

 

Then edit the catalog/includes/modules/shipping/usps.php file to remove all entries from the results array except for the specified code.

 

If you have multiple shipping options available, you will have to modify the catalog/includes/classes/shipping.php class instead to only return results that match the code specified by the product.

 

UGH.... I am not that versed in this and have no idea how to do what you just said to do :blink: .... I was hoping that someone knew a contribution that I hadnt found yet... I am in the process of looking but have yet to find anything.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×