No, this is using fsockopen - I presume the problem lies with how http_client is handling the data. In either case (single or double name), the raw cvsweb link always provides the correct xml feed. The store name comes into it because that is what is used for $HOST.
I'm having issues with cURL which is why I was playing around.
What are the issues that you are having with cURL? (I'd rather concentrate on solving this rather than the fsockopen problem, because this is the direction things are heading.
As for the $HOST variable, this is only used for logging, debugging and statistical purposes. Other than the log files themselves this variable isn't even referenced by the server software, and nothing returned by the server contains any reference to this variable, (which is why I don't have an explanation for the results you are getting).
Anyway, to 'cure' your problem I guess the easy/best/safe thing to do would be to simply redefine the $HOST variable so that it only contains a single word.
It'll probably also be safe to simply delete all references to the this variable, but there are multiple instances of it, so such an action will be more prone to error.
In any case, as I previously mentioned, I'm much more interested in the problems you are experiencing wit cURL.
Cheers
Rod
There is an issue on this shipping module that those of you who use more than this module with weight ...
$shipping_weight is a global variable used by all weight based shipping modules ...
If you change the weight, as in this line:
You have changed the weight for ALL other shipping modules ...Code:$shipping_weight = $parcelweight ; // global value for zencart
Look at how the other shipping modules such as UPS and USPS use the weight by setting their "own" variable from the $shipping_weight ...
This allows that they use can "use" the calculated weight, but they cannot "alter" the calculated weight so that any other weight based shipping module can access the correct weight ...
Example, in UPS, the weight is used with:
NOTE: the value 0.0625 is new to the upcoming v1.3.9 to account for a more accurate 1 ounce than the current 0.10 that has been used in older Zen Cart versions ...Code:// ups doesnt accept zero weight send 1 ounce (0.0625) minimum $ups_shipping_weight = ($shipping_weight <= 0 ? 0.0625 : $shipping_weight);
Just fun thoughts for you folks to think about in the updates to this, and other, shipping modules ...![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Hi nukebiz,
I tried a two word store name but it doesn't stop the problem.
I printed out the session path to see where its storing sessions and realized that its still trying to access the cache in my original directory.
as in
/blahblah/www/shopfront/cache
Originally my installation directory was called shopfront, but I renamed it to "old shopfront" when I decided to try a new zencart installation. I'm using the "old shopfront" as a test situation.
The newer operational site I then stored in the shopfront directory.
So I'm running the zencart from the "old shopfront" directory, but it tries to access the cache in the "shopfront" directory.
I suspect the cache path is being taken from the database which was created when the files were originally stored in the shopfront directory.
Ok, long winded.
The question is: If you rename your zencart folder to the name it originally had when you first installed it, does it fix the problem?
Do ISO-3 country codes work with this module/Australia Post?
ie includes\modules\shipping\ozpost.php
Line 208
$dest_country=$order->delivery['country']['iso_code_2'];
Line 357-8
// Set destination code ( postcode if AU, else 2 char iso country code )
$dcode = ($dest_country == "AU") ? $topcode:$dest_country ;
Further discussion on changing from ISO-2:
http://www.zen-cart.com/forum/showthread.php?t=77350
Bookmarks