
Originally Posted by
shags38
Hello Ann,
I recently installed 'Save it For Later' module and it is working well, great asset to the cart page. I am now trying to put the 'Save it For Later' button on the product pages just below the add to cart button. I have followed the instructions however I cannot get the button to appear - I'm wondering if it may be a .css stylesheet issue?
So I am looking for some help here please - cheers, Mike
Instructions are as follows - part a) is that which concerns the template;
If you would like to offer Save for Later on your product info page,
do the following:
a) In includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php,
right before the closing </div> for the cartAdd div which displays the button,
add this block:
<!-- bof save for later -->
<?php
if (isset($_SESSION['customer_id']) && $_SESSION['customer_id'] != '') {
echo "<br /><br />";
echo '<input type="submit" value="' . BUTTON_SAVE_FOR_LATER_ALT . '" name="sfl" />';
}
?>
<!-- eof save for later -->
--------------------------------------
other instructions (also done) are;
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;
c) In the file includes/classes/shopping_cart.php, under
in the function actionAddProduct, right below the call to
$this->add_cart(...
insert the line
$_GET['uprid'] = zen_get_uprid($_POST['products_id'], $real_ids);
then towards the bottom of the function, change
zen_redirect(zen_href_link($goto, zen_get_all_get_params($parameters)));
to
if ($goto!= '') zen_redirect(zen_href_link($goto, zen_get_all_get_params($parameters)));
Bookmarks