Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

USPS Rate V4, Intl Rate V2 (official support thread)


195 replies to this topic

#21 fulluvscents

  • Community Member
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 08 February 2012, 09:43

Quote

In admin/modules.php the USPS contribution implodes $value if is_array($value) returns true, whereas, the DTS contributions incorporates it's own processing if is_array($value) is true.

Ok, now that makes sense. It's two contributions trying to make the same, but conflicting changes to the core. Sorry for my misunderstanding.

Can I get a link to the dynamic templates contribution. I'll upload a compatibility note in the USPS contribution area.

Will look into those errors. They might not affect functionality, but I don't like them.

#22 fulluvscents

  • Community Member
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 08 February 2012, 10:00

Found the link and added a compatibility package.

#23 fulluvscents

  • Community Member
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 08 February 2012, 11:56

I should have all those E_NOTICES fixed. Uploaded a new package for it.

#24 Dennisra

  • Community Member
  • 507 posts
  • Real Name:Joseph D. Jefferson
  • Gender:Male

Posted 09 February 2012, 15:04

View Postfulluvscents, on 07 February 2012, 20:49, said:

Sure, I've got it installed here:

http://www.fulluvscents.com/catalog.

The checkout isn't stock. It's a brand spanking new single page checkout, but the options work exactly the same in stock checkout. Unfortunately though, you won't be able to get into the admin area.

I am presently adding a few more thing to it, so if things get wacky, that will be why.

This is the second day I have tried the website with no luck:
The connection has timed out
The server at www.fulluvscents.com is taking too long to respond.


I can ping your server but it isn't responding to http requests.

Okay. Just loaded this: "Fulluv Scents is temporarily offline while we perform some maintenance. I apologize for the inconvenience. If you need anything while we're down, just email me jetta@fulluvscents.com Or, look for Fulluv Scents on eBay"

Edited by Dennisra, 09 February 2012, 15:12.


#25 Dennisra

  • Community Member
  • 507 posts
  • Real Name:Joseph D. Jefferson
  • Gender:Male

Posted 09 February 2012, 15:21

The editing restrictions are foolish.

#26 fulluvscents

  • Community Member
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 09 February 2012, 16:32

Yeah, my web server was down. It's a host issue and the reason I'll be changing hosts soon. If you want to test it, then set up a test site and install the thing. Don't take the generosity of others for granted.

The editing restrictions are foolish.


Care to elaborate? WHAT editing restrictions?

#27 fulluvscents

  • Community Member
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 09 February 2012, 19:43

@pederb

I found what you were talking about.

Change this in the usps.php file:


'shownString' => $shownString,
'customerString' => $customerString);


to this:

'shownString' => (string)$shownString,
'customerString' => (string)$customerString);


I'll add that as part of my next update.

#28 Dennisra

  • Community Member
  • 507 posts
  • Real Name:Joseph D. Jefferson
  • Gender:Male

Posted 09 February 2012, 23:47

View Postfulluvscents, on 09 February 2012, 16:32, said:

Yeah, my web server was down. It's a host issue and the reason I'll be changing hosts soon. If you want to test it, then set up a test site and install the thing. Don't take the generosity of others for granted.

The editing restrictions are foolish.


Care to elaborate? WHAT editing restrictions?

The ability to edit my post on this forum.

#29 fulluvscents

  • Community Member
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 10 February 2012, 14:00

Quote

The ability to edit my post on this forum.

LOL, yup, I sort of put that together when I tried to edit something later and couldn't. It was a light bulb moment.

Anyone interested in having the customer be able to upgrade their shipping by adding extra services (like insurance, signature confirmation, etc...)?

I've got it written, but whether I upload it depends on the demand.

#30 Dennisra

  • Community Member
  • 507 posts
  • Real Name:Joseph D. Jefferson
  • Gender:Male

Posted 10 February 2012, 15:36

I am definately interested in that.
Can I PM you about having you install this for me in my osCommerce 2.2-MS2?

#31 fulluvscents

  • Community Member
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 10 February 2012, 16:17

Yes, you can. It was written specifically for 2.3.1 to work with features that aren't available in 2.2. But, those features could be added to 2.2 to make it work. The mod itself will work for calculating shipping, but the displays won't show in 2.2.

Have you seen it in action on the test site yet? I've turned off the single page checkout for now, so you can see it in a normal checkout. It's at http://www.fulluvscents.com/catalog

The straight link goes to my regular site, which I have down for now.

#32 wkdwich

  • Community Member
  • 316 posts
  • Real Name:Debbie D

Posted 11 February 2012, 04:25

Jetta.. PM'd you earlier.. think you can ignore that..

For everyones clarification, I run oscMAX 2.0.25 and when I get this installed and running I will report back.

In my admin/includes/functions/general.php I see:

  function tep_sanitize_string($string) {
    $string = ereg_replace(' +', ' ', $string);
    return preg_replace("/[<>]/", '_', $string);
  }

and

// USPS Methods 3.0
// Alias function for Store configuration values in the Administration Tool
    function tep_cfg_select_multioption($select_array, $key_value, $key = '') {
	  for ($i=0; $i<sizeof($select_array); $i++) {
	    $search = array(' reg', ' trade');
	    $replace = array('<sup>&reg;</sup>', '<sup>&trade;</sup>');
	    $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value');
	    $string .= '<br><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"';
	    $key_values = explode( ", ", $key_value);
	    if ( in_array($select_array[$i], $key_values) ) $string .= ' CHECKED';
	  $string .= '> ' . str_replace($search, $replace,$select_array[$i]);
	  }
	  $string .= '<input type="hidden" name="' . $name . '" value="--none--">';
	  return $string;
    }
// USPS Methods.  Added by Greg Deeth

from what I am reading both need to be removed???

#33 fulluvscents

  • Community Member
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 11 February 2012, 12:52

Yes, you can remove anything from your includes/functions/general.php AND your admin/includes/functions/general.php that refers to the old usps mod.

If using UPS XML, I think the multioption function needs to stay for that, but not for this mod.

tep_sanitize_string must have come from one of the versions after my 5.2.2, but if it's usps related, then it is not needed for this mod either.

#34 wkdwich

  • Community Member
  • 316 posts
  • Real Name:Debbie D

Posted 11 February 2012, 13:01

OK thanks.. I'll give it a go later..

#35 wkdwich

  • Community Member
  • 316 posts
  • Real Name:Debbie D

Posted 11 February 2012, 19:26

Jetta, the only other references I found was the round up functions by Greg Deeth.. leave or remove them also?

#36 fulluvscents

  • Community Member
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 11 February 2012, 22:53

remove them. Most of the stuff isn't going to hurt anything, but I'm personally weird about removing stuff that isn't used.

Edited by fulluvscents, 11 February 2012, 22:54.


#37 wkdwich

  • Community Member
  • 316 posts
  • Real Name:Debbie D

Posted 12 February 2012, 05:48

OK done.. removed all refereneces in all files for old USPS and any functions by Greg Deeth.. the only USPS reference that remained was:
catalog/admin/includes/functions/general.php:
	  // return short version on UPS and USPS
	  $short_shipping_end= strpos($check_order['title'], '');
	  $short_shipping= substr($check_order['title'], 1, $short_shipping_end);
	  return $short_shipping;

files that got altered:
catalog/checkout_shipping.php (on a oscv2.31)
catalog/includes/sapplication_top.php
catalog/includes/functions/general.php
catalog/admin/modules.php
catalog/admin/includes/functions/general.php
  • osc admin
  • copy the current settings for the USPS module
  • uninstall module
  • uploaded the above files
  • upload the NEW files from the USPS Rate V4 Intl Rate V2 - v.1.7 zip file
  • osc admin
  • install module
  • set up module
I had a little bit of a time fooling with the settings, but I got it now..

I am a little dissapointed to NOT see the check boxes:

Quote

Display Options
Select display options

Display weight
Display transit time
Display insurance
I don't like displaying the total weight of the package.. is that difficult to edit out of there???

Dissapointed (not less so..) to not see the transit time

You did a really nice job on this :)

#38 fulluvscents

  • Community Member
  • 305 posts
  • Real Name:Jetta
  • Gender:Female
  • Location:Fort Wayne, Indiana

Posted 12 February 2012, 12:21

Yes, it was designed a bit differently from older versions.

The weight is easy to edit out.

Find this line:
'module' => $this->title . ' ' . $this->pounds . ' lbs, ' . $this->ounces . ' oz',

Change it to this:

'module' => $this->title,

Insurance and any extra services are not displayed as they used to be. They are now displayed as part of the breakdown of the total cost, if you choose to include it and show it to the customer. There is no admin defined insurance. This only returns USPS insurance rates, since it is a USPS mod. If you want to charge for non-usps insurance, then bundle it into your handling fees. If you want to insure in excess of USPS limits, you'll need a customized mod, or again, bundle that into handling.

I didn't make provision for transit time in this mod (mostly because transit time is a completely different API than rates).
I caught that after I finished it, and may decide to add that in later. But, I have things I need to do for myself before I come back to this.

The biggest intent with this was to simplify and remove any excessive options while taking full advantage of the USPS rates API. I may add the transit API as an ADD ON to the USPS mod, rather than part of a new version.

NOTE that I did add an "ADD ON" to block certain methods by product. It is a necessity for me and may prove itself to be useful for others as well.

#39 altoid

  • Community Member
  • 538 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Pennsylvania

Posted 12 February 2012, 12:43

View Postfulluvscents, on 12 February 2012, 12:21, said:


NOTE that I did add an "ADD ON" to block certain methods by product. It is a necessity for me and may prove itself to be useful for others as well.

Hi there I have been following this and this latest option caught my attention. I have some drop ship products where my drop shipper charges a flat fee for shipping. So, with this I could disable all other USPS shipping methods for those products, resulting in the customer seeing the flat fee only on my drop ship type products?

Thanks
I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.

#40 wkdwich

  • Community Member
  • 316 posts
  • Real Name:Debbie D

Posted 12 February 2012, 16:28

Thanks Jetta that did the trick on removing the weight from the shipping page..

Totally understand your reasoning on the options.. I also would like to see the addon for blocking by item.. I also do a good amount of drop shipping