
Originally Posted by
KiltsRock.com
I've got a little problem. I've upgraded to the latest version of zencart, and everything worked great. I added this mod, and now I get a "
Fatal error: Cannot redeclare class httpclient in kiltsrock.com/shop/includes/classes/http_client.php on line 431"
error when trying to checkout.
This mod snuggles up real close to some of the code that is fundamental to the operation of a shopping cart. That makes it rather sensitive to changes in the underlying Zen Cart and very important to match Zen Cart and Stock by Attribute versions.
For Zen Cart 1.3.7 you need Stock by Attributes 4.4, which I have just uploaded to the downloads section where it is awaiting approval. If you want an immediate fix for your problem, go to includes/modules/pages/checkout_shipping/header.php and change line 14 to read
PHP Code:
require[COLOR="Red"]_once[/COLOR](DIR_WS_CLASSES . 'http_client.php');
When the new mod is approved and available you will need only to replace the whole of that file plus admin/orders.php and includes/classes/order.php from the relase package for your system to be in the same state as if you had installed 4.4 initially.
Bookmarks