Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Ok, I tried to install the USPS Methods and it does not work. So, another option is that I only want to offer "Priority Shipping" but when customers go to Checkout they see "Express", "Priority", and "Parcel". Is there a way that I can just remove "Express" and "Parcel" code from a file so that they never show up in Checkout? Everything is calculating correctly. I just want to use the "Priority" only.

 

Please help! Thanks in advance!

 

Jonathan

Posted
Ok, I tried to install the USPS Methods and it does not work. So, another option is that I only want to offer "Priority Shipping" but when customers go to Checkout they see "Express", "Priority", and "Parcel". Is there a way that I can just remove "Express" and "Parcel" code from a file so that they never show up in Checkout? Everything is calculating correctly. I just want to use the "Priority" only.

 

Please help! Thanks in advance!

 

Jonathan

 

very easy to do

take the following code

      $this->types = array('Express' => 'Express Mail',
                          'First Class' => 'First-Class Mail',
                          'Priority' => 'Priority Mail',
                          'Parcel' => 'Parcel Post');

 

and change it to this

 

      $this->types = array('//Express' => 'Express Mail',
                          //'First Class' => 'First-Class Mail',
                          'Priority' => 'Priority Mail');
                       //   'Parcel' => 'Parcel Post');

  • 2 months later...
Posted

Like many, we are new and getting the bugs worked out. We are good with HTML and understand programming code ok. Two issues with the shipping module.

 

1- Although we got the USA example in this thread to block some of the domestic shipping options (as a test only), we really need to block some of the Int'l options (Document Express and both Priority mailers). Using the same formatting which worked blocking the domestic options isn't working the same thing on the Int'l methods. Here is how we have it now (modifying from the current usps.php)-

 

$this->intl_types = array('//GXG Document' => 'Global Express Guaranteed Document Service',

//'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',

'Express' => 'Global Express Mail (EMS)',

//'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)',

//'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)',

'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',

'Airmail Letter' => 'Airmail Letter Post',

'Airmail Parcel' => 'Airmail Parcel Post',

'Surface Letter' => 'Economy (Surface) Letter Post',

'Surface Post' => 'Economy (Surface) Parcel Post');

 

2- We have set the Tare to "0". handling to "0" and one test product weight as ".5". using a dummy customer with our own zip code and ordering the one test item, it shows "1x.5lb" with the correct Priority and Express cost but Parcel Post seem to be coming from parts unknown. The USPS website says $3.13 but oscommerce gives us $4.16???

 

3- On Intl'. when our other test customer (UK) places an order, regardless of method selected when the options/rates are displayed, it defaults to the top method (GXG Document) on the final checkout screen.

 

Help on any of the three topics would be appreciated. We browsed the Forums for some time and found some info like the USA method blocking example but decided to try this route.

 

I would imagine all users with unmodified usps.php files have the same exact problems (even if they have not noticed) so why doesn't oscommerce update the file we are all using rather than having to look for patches ourselves? I can understand added features being a community thing but the 2 and 3 topics I asked about are things which are critical to make the cart work.

 

Thanks in advance.

Posted

Was rechecking Parcel Post on the USPS website. For 1lb it was $2.81 but if I enter ".5" in the ounces box (pounds box blank), it gives me $4.16! Using the original usps.php coding, how should a .5lb (8oz) weight be keyed into the product data? If we put "8" in, it reads it as 8lbs.

Posted

Found the Int'l method selection was due to changes in the names not reflected in the usps.php file we had from installation. So now the selections "stick" and the Int'l rates agree to the USPS web site.

 

http://www.oscommerce.com/community/bugs,2...pping%2BModules

 

We still have not been able to block some Int'l methods from being offered like the domestic example we tried.

 

We still get bad Parcel Post rates like it doesn't understand the weight (.5lb) but the Int'l works fine with the same ".5" Product weight data. Do the two USPS calculators (Intl/USA) treat the data diff (".5"= .5lb Intl, .5oz USA)? Maybe the USPS domestic calculator has the PP glitch, not our php?

 

One down, two to go...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...