Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Addon Shipping Modules / Periship module from Numinix - Problem with recipient info

Periship module from Numinix - Problem with recipient info

Locked

Started by hockey2112 on 12 Jan 2012, 4:59 PM · Views: 1,000

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
12 Jan 2012, 4:59 PM
#1
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Periship module from Numinix - Problem with recipient info

Hello,

I installed the Periship module from Numinix (.numinix.com/periship-shipping-module]) on my ZC 1.3.9d website and my 1.3.9h website. Unfortunately, it appears as though the code of the module is somewhat incomplete... namely, the Recipient State and Zip Code are hard-coded into the module. What Zen Cart code can be used in place of those constants, i.e., the order's ship-to State and Zip Code?

This is the portion of the code in question:

  function calculation($saturday = 'Y') {
    global $order, $db, $shipping_weight, $httpClient;
    
    $order_total = $_SESSION['cart']->show_total();
    
    $request = "<PeriShipRateRequest>
                 <RequestHeader>
                   <ShipperID>" . $this->account . "</ShipperID>
                   <ShipperPassword>" . $this->password . "</ShipperPassword>
                   <ShipperZIPCode>" . $this->zip . "</ShipperZIPCode>
                 </RequestHeader>
                 <RecipientInfo>
                   <RecipientState>LA</RecipientState>
                   <RecipientZip>70065</RecipientZip>
                 </RecipientInfo>
                 <PackageInfo>
                   <Weight>" . $shipping_weight . "</Weight>
                   <RecipientType>R</RecipientType>";
    if ($this->signature != 'none') {
      $request .= "<SignatureType>N</SignatureType>";
    }

(FYI, I changed the state to La and the Zip to 70065... it was originally a CT state and zip. I also changed "Recipient Type" from "C" to "R" (Commercial to Residential).

Thanks!

12 Jan 2012, 10:25 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,741
Plugin Contributions:
0

Re: Periship module from Numinix - Problem with recipient info

You need to contact the author. While the module may be free it is not hosted or supported here.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.