shutack
-
Posts
7 -
Joined
-
Last visited
Posts posted by shutack
-
-
The website just uses US dollars, Euros, and British Pounds. We want to enable Australian dollars at some point.
-
As of November 2, 2017, Yahoo stopped supporting the downloading of a CSV file that contains various currency rates. This is how CC4 implemented its auto update of the currencies.
I see that CC5 and CC6 use a different means to update the currencies.
Does anyone have an update/fix to the CC4 currency code?
Thanks for your help.
-
One more piece of information to get the protocol working:
In the file class.usps.php, near line 427, find:
$this->request_xml .= '<Country>' . $attribs['country'] . '</Country>';
On a new line just after it, add:
$this->request_xml .= '<Container>' . $attribs['container'] . '</Container>'; // RECTANGULAR or NONRECTANGULAR - Required when Size is 'LARGE'
$this->request_xml .= '<Size>' . $attribs['size'] . '</Size>'; // REGULAR: all edges <= 12", LARGE: any edge > 12"
$this->request_xml .= '<Width>' . $attribs['width'] . '</Width>'; // Required when Size is 'LARGE'
$this->request_xml .= '<Length>' . $attribs['length'] . '</Length>'; // Required when Size is 'LARGE'
$this->request_xml .= '<Height>' . $attribs['height'] . </Height>'; // Required when Size is 'LARGE'
if($attribs['container']=="NONRECTANGULAR") {
$this->request_xml .= '<Girth>' . $attribs['girth'] . '</Girth>'; // Longest Width + Longest Length + Longest Height
} else {
$this->request_xml .= '<Girth></Girth>';
} -
From the USPS document (2014-rate-webtools-v3-v4-transition-guide.rtf)
1 RateV3 RetirementWe advise integrators currently using RateV3 to transition to RateV4 as soon as possible in preparation for the planned retirement of the API on September 28, 2014.Corrections on how to update CC4 USPS module can be found here:After working with Brian Smither yesterday, we discovered a couple things to add to this topic:Also, go through both the calc.php and class.usps.php files and change all occurrences of:
IntlRate to IntlRateV2 (changed IntlRate2 to IntlRateV2)
RateV3 to RateV4There are many types of International Shipping options. The admin/index.inc.php could be updated with these options (numbers are included for reference to the USPS document):1 Priority Mail Express International2 Priority Mail International4 Global Express Guaranteed GXG5 Global Express Guaranteed Document6 Global Express Guaranteed Non-Document Rectangular7 Global Express Guaranteed Non-Document Non-Rectangular8 Priority Mail International Flat-Rate Envelope9 Priority Mail International Medium Flat-Rate Box10 Priority Mail Express International Flat-Rate Envelope11 Priority Mail International Large Flat-Rate Box12 USPS GXG Envelopes13 First-Class Mail International Letter14 First-Class Mail International Large Envelope15 First-Class Package International Service16 Priority Mail International Small Flat-Rate Box17 Priority Mail Express International Legal Flat-Rate Envelope18 Priority Mail International Gift Card Flat-Rate Envelope19 Priority Mail International Window Flat-Rate Envelope20 Priority Mail International Small Flat-Rate Envelope21 First-Class Mail International Postcard22 Priority Mail International Legal Flat-Rate Envelope23 Priority Mail International Padded Flat-Rate Envelope24 Priority Mail International DVD Flat-Rate Priced Box25 Priority Mail International Large Video Flat-Rate Priced Box26 Priority Mail Express International Flat-Rate Boxes27 Priority Mail Express International Padded Flat-Rate Envelope -
I am also having this problem on 4.4.2. It is very intermittent. When you click the Shopping Cart or view what is in the basket, sometimes the cart displays OK other times I get this error.
Any help or insights would be appreciated.
CC4 currency auto update stopped working
in Developer Forum
Posted
Contact bsmither if you need a fix to this problem. He's a great resource for the CC community!