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:
Code:
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!
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.