USPS API Shipping Methods Labeling Error On Interspire Cart

[UPDATE:
For the record, I have been an Interspire customer since early 2004 and I have purchased 3 email marketer scripts, 1 knowledge base, 3 shopping carts and 2 shopping carts at the enterprise level through my account and accounts I have setup for my customers. This is somewhere around $5,000 and I'm a small-fry customer to Interspire.

I'm parting ways with Interspire over their key activation policy. You need a key activated to a specific domain to help Interspire reduce fraud. I respect that. What you might not know is that they will not update your key, should you need to move domains or subdomains, without an active support plan on the product, which is $147.50.

If they want to bang on you for $25 bucks or something, sure fine I get that, and I understand that nobody's time is free. But $147.50 for a 12 month support plan? No thank you, I'm taking what small amount of business I do with shopping cart scripts elsewhere. It's not a lot of money, but It makes me feel pushed around, so yes this is an emotional reaction.

I want a shopping cart vendor that sees ME as their customer and not playing gotcha because I needed a simple domain change on the key. Interspire's support plans are tied to the product and not to me and my account. So if I have 5 carts, I need support plans for all 5. That just doesn't work. For what it's worth, the key was expired by 5 weeks and I was changing from the .com to .net of my domain name and I WILL get my cart to work, but I'm going to have to setup a DNS.

]

Here’s the solution you need below. but I do encourage you to think about shopping cart alternatives on your next project.

I notice recently that the USPS shipping method label on my Interspire shopping cart has been returning code like this

Parcel Post<sup>&reg;</sup>

Investigating, I learned that the USPS API has recently  been updated to return the registered trademark logo in superscript.   I have zero experience with this API and I didn’t have much time to solve the problem.  Here’s my hacky solution which I adapted from someone else posting this solution for a Magento Cart.

For Interspire Shopping Cart open the file:

/modules/shipping/usps/module.usps.php

At about line 663, find this line of code:

(string)$xml->Package->Postage->MailService

Now comment it out so that it looks like so:

//(string)$xml->Package->Postage->MailService

Directly beneath the above line of code add this new line of code which will do a simple string replacement in order to yank out the registered trademark code that is not parsing correctly.

str_replace("&lt;sup&gt;&amp;reg;&lt;/sup&gt;", "", (string)$xml->Package->Postage->MailService)

Your final changes will look like:

//(string)$xml->Package->Postage->MailService
str_replace("&lt;sup&gt;&amp;reg;&lt;/sup&gt;", "", (string)$xml->Package->Postage->MailService)

Save and post. That’s it.  I hope you find this useful and please feel free to comment if there are better solutions.

About TireyTV

Jeff Tirey is an Internet Marketer with skill sets ranging from programming, technical SEO, lead generation and web analytics.
This entry was posted in General, Online Marketing and tagged , . Bookmark the permalink.

9 Responses to USPS API Shipping Methods Labeling Error On Interspire Cart

  1. ALEX says:

    Hi Jeff,

    just noticed this error, but couldn’t find the right lines. what version do you use? Mine is 5.1

  2. Justin says:

    Thanks!!! I think this problem cost me hundreds of dollars in lost business… a great workaround until Interspire comes up with a fix!

  3. TireyTV says:

    I’m sorry, I wasn’t clear on the version. My version is 6+.

  4. TireyTV says:

    @Justin – glad to have helped. I found the strategy for this solution on a Magento board, so happy to pay it forward myself.

  5. Keith says:

    Thanks so much. Worked great for me!

  6. Jeff says:

    Worked for me, I am using 6.0.14 Thanks!!

  7. dan says:

    Wow, thank you so much for this fix. works great.

  8. John Pham says:

    Thank you so much, this fixed the problem I was having using Interspire Shopping Cart v. 6.0.1.4. Thank you again.

  9. Deanna says:

    I’m leaving Interspire for the exact same reason. When I needed to change a key after my support expired, I wrote them an angry email at least to get off some steam. They actually changed the key for me without requiring me to renew my support, but I still have a bad taste in my mouth from this company and they said they wouldn’t do it again for free. It’s really too bad the company doesn’t have good support or business practices because I really like the product.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>