Hi, I know this thread is a little dated but I recently installed Stock by Attributes v1.4.14 on a Zencart v1.3.8a and this issue came up. I tried the suggested methods but they didn't work on my project, so I tried my best to find another solution and so far this has worked:
/** NOTE: MAKE A BACKUP OF THE FILES YOU EDIT! **/
1. navigate and open file: /includes/classes/shopping_cart.php
2. backup this file
3. lookup function restore_contents(), at the end of this method add these:
PHP Code:
// this is an experimental fix for stock by attributes issue:
// (1) time out issue after adding items then logging in
if (is_array($this->contents) && count($this->contents) > 0) {
// assign a temporary unique ID to the order contents to prevent hack attempts during the checkout procedure
$this->cartID = $this->generate_cart_id();
}
right before:
PHP Code:
$this->notify('NOTIFIER_CART_RESTORE_CONTENTS_END');
$this->cleanup();
I hope this helps somebody.
Signe