VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: growfish on June 14, 2012, 20:37:01 PM

Title: [SOLVED] Errors with USPS Shipping Module
Post by: growfish on June 14, 2012, 20:37:01 PM
I purchased the USPS Shipping Module (http://extensions.virtuemart.net/extensions-virtuemart-2/usps-detail) a few weeks ago.

All seems to work well so far when I had items to the cart. But as soon as the user logs in (or if they add items to the cart when already logged in) then the user gets the following error message:

"Notice: Undefined property: stdClass::$send_dimensions in /home/wwwlovin/public_html/dev/plugins/vmshipment/alatak_usps/alatak_usps.php on line 723"

I tried to change the parameter "Send dimensions" in the USPS shipping module within VM to "yes" (if defaults to "no") but every time I select Yes and save, it just goes right back to No. It doesn't save my Yes selection!

What am I missing?!

[attachment cleanup by admin]
Title: Re: Errors with USPS Shipping Module
Post by: growfish on June 14, 2012, 20:44:22 PM
Looking that the code around line 723, I see (plugins/vmshipment/alatak_usps/alatak_usps.php):

$xmlPost .= "<Size>" . $method->package_size . "</Size>";

        if ( $method->package_size == "LARGE" or $method->send_dimensions  ) {
            $xmlPost .= "<Width>$this->_usps_width</Width>";
            $xmlPost .= "<Length>$this->_usps_length</Length>";
            $xmlPost .= "<Height>$this->_usps_height</Height>";
        }


Then I looked into the Package Size settings and realized that if I change the "Package Size" to "Large" in the config parameters the error seems to go away!!!

But my packages are not Large. Doesn't make any since why the error would show if you have Regular size selected instead.
Title: Re: Errors with USPS Shipping Module
Post by: growfish on July 27, 2012, 04:29:01 AM
Anyone?! Is the developer not support their commercial module?!

Title: Re: Errors with USPS Shipping Module
Post by: growfish on July 31, 2012, 19:03:43 PM
Updating to latest 1.8 version of USPS shipping module solved this for me.