I got it working and iirc it was something stupid that I was or wasn't doing. I'll review the code and css and let you know what I have, which is working!
Cheers
GAM
Printable View
I got it working and iirc it was something stupid that I was or wasn't doing. I'll review the code and css and let you know what I have, which is working!
Cheers
GAM
Okay, this is what I did, which works for me ;-) I realized after seeing your post that I never actually got back to this as looking at it again now it is not quite right... but does still work.
tpl_product_info_display.php:
stylesheet_css_buttons.css:PHP Code:
<!-- bof save for later -->
<?php
if (isset($_SESSION['customer_id']) && $_SESSION['customer_id'] != '') {
echo " ";
echo '<input class="cssButton submit_button button_save_for_later" onmouseover class="cssButtonHover submit_button button_save_for_later" onmouseout class="cssButton button_save_for_later" type="submit" value="' . BUTTON_SAVE_FOR_LATER_PRODUCT_ALT . '" name="sfl" />' ;
}
?>
<!-- eof save for later -->
I added these to my existing 'button_in_cart' CSS as/where appropriate. I use a 'button_in_cart_lg' version for the Add to Cart button on the product info page and have the 'save for later' button looking the same as 'add to cart'.
input.button_save_for_later
input.button_save_for_later:hover
input.button_save_for_later:active
Hope this helps.
Cheers
GAM
For anyone wanting to use the same hard-coded workaround, to avoid conflicts, probably best to use...
BUTTON_SAVE_FOR_LATER_PRODUCT
which is in sfl_defines.php too and, I believe, intended for use on Product_Info pages.
In tpl_product_info_display.php
Replace:
With:PHP Code:
echo '<input type="submit" value="' . BUTTON_SAVE_FOR_LATER_PRODUCT_ALT . '" name="sfl" />';
In stylesheet_css_buttons.css, add the following with your own formatting to suit:PHP Code:
echo '<input class="cssButton submit_button button_save_for_later_product" onmouseover class="cssButtonHover submit_button button_save_for_later_product" onmouseout class="cssButton submit_button button_save_for_later_product" type="submit" value="' . BUTTON_SAVE_FOR_LATER_PRODUCT_ALT . '" name="sfl" />' ;
CheersCode:input.button_save_for_later_product{}
input.button_save_for_later_product:hover{}
input.button_save_for_later_product:active{}
GAM
v1.3.9h Abbington_Mega template
Hello Scott,
I have installed SFL and it is working like a charm - only issue is I cannot get the 'Save for Later' button to appear on the products info page - I have checked my install and file mods against your instructions so I am stumped. Do I have to do anything to the .css files in the template?
cheers, Mike
You have to be logged in to see the button. Are you logged in when you are testing?
please ignore previous post - I have the button showing on one site - I installed on 5 sites but obviously only tweaked one correctly - very sorry about this :blush:
Whilst I have your attention what is the file name of that button and where will I find it so I can modify its appearance to suit my template?
FYI - I did this to the up/down buttons Attachment 13657 Attachment 13658
cheers, Mike
Hi Scott, thank you for this terrific mod. I was looking at Save for Later Report and was wondering if you can see by customer what they have saved rather than listing by product EG: if i wanted to host a contest in my digital store that allowed for one lucky customer to "Win your Saved items" I want to randomly pick one customer and give them their saved items FREE but seeing the listed items by product would not achieve this. Would you have this option available at some point for the purchased "Save for Later Report"?
@Shags38 - the button on the product info page is called button_Product_SaveForLater.jpg. The define for it is in the same place as the other two - includes/languages/english/extra_definitions/sfl_defines.php.
@missesbeehaven - this is the first time anyone has ever asked for this.
Hi Scott,
thanks for this - what I am looking for is the actual image file, .jpg file so I can create my own button to suit my template appearance then save it as button_Product_SaveForLater.jpg - I cannot find it anywhereQuote:
@Shags38 - the button on the product info page is called button_Product_SaveForLater.jpg. The define for it is in the same place as the other two - includes/languages/english/extra_definitions/sfl_defines.php.
cheers, Mike