Scott - please disregard the above post - I need to learn about standard buttons and how they work, right:smile:
cheers, Mike
Printable View
ok I see. It's not really a button image, it's just a button created out of the alt text.
Scott - one quick question and then I will leave you in peace.
Why is it necessary to be logged in to save for later - a customer can add to cart without being logged in - as a shopper I would be confused.
cheers, Mike
Just like it's necessary to be logged in to have a persistent cart. Things are keyed by customer id.
Got this installed on a fresh Zen Cart v1.5.4, having made the changes suggested in the readme to get the button to display on the product_info page.
The thing is, when the "Save for Later" button is clicked, the product is added to the cart not to the save-for-later list. Any suggestions as to where to start looking for the correction?
Found it; the readme instructions are close:
but should be:Code:b) In includes/main_cart_actions.php, change the block
case 'add_product' :
$_SESSION['cart']->actionAddProduct($goto, $parameters);
break;
to
case 'add_product' :
if (isset($_POST['sfl'])) {
actionSaveForLaterFromProductPage($goto, $parameters);
} else {
$_SESSION['cart']->actionAddProduct($goto, $parameters);
}
break;
Code:b) In includes/main_cart_actions.php, change the block
case 'add_product' :
$_SESSION['cart']->actionAddProduct($goto, $parameters);
break;
to
case 'add_product' :
if (isset($_POST['sfl_x'])) {
actionSaveForLaterFromProductPage($goto, $parameters);
} else {
$_SESSION['cart']->actionAddProduct($goto, $parameters);
}
break;
There's definitely a bug in the instructions, but I don't think that's it - that doesn't seem to work either.
OK got it. The $goto change in includes/classes/shopping_cart.php needs to be done for both zen_redirect calls. Posting an update shortly.
Save For Later 1.4.1 was just released with corrected instructions for installing Save for Later on your product info pages.