Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Force USPS Priority on Items


Twizted

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:

Link to comment
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

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...