Zen Cart Logo
Forums / All Other Contributions/Addons / Save For Later Support Thread

Save For Later Support Thread

Views: 64,707

Results 121 to 140 of 226
21 Aug 2013, 11:08 PM
#121
gam avatar

gam

Zen Follower

Join Date:
Aug 2007
Posts:
116
Plugin Contributions:
0

Save For Later Support Thread

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

21 Aug 2013, 11:34 PM
#122
gam avatar

gam

Zen Follower

Join Date:
Aug 2007
Posts:
116
Plugin Contributions:
0

Re: Save For Later Support Thread

therummagehole:

I give up, tried everything I can think off. I'm sure this is an easy fix, i'm just out of my depth lol

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:

<!-- 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 --> 

stylesheet_css_buttons.css:
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

22 Aug 2013, 2:00 AM
#123
gam avatar

gam

Zen Follower

Join Date:
Aug 2007
Posts:
116
Plugin Contributions:
0

Re: Save For Later Support Thread

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:

echo '<input type="submit" value="' . BUTTON_SAVE_FOR_LATER_PRODUCT_ALT . '" name="sfl" />';

With:

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" />' ;

In stylesheet_css_buttons.css, add the following with your own formatting to suit:

input.button_save_for_later_product{}
input.button_save_for_later_product:hover{}
input.button_save_for_later_product:active{}

Cheers
GAM

9 Jan 2014, 8:59 PM
#124
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Save For Later Support Thread

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

11 Jan 2014, 9:17 PM
#125
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Save For Later Support Thread

You have to be logged in to see the button. Are you logged in when you are testing?

11 Jan 2014, 9:44 PM
#126
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Save For Later Support Thread

swguy:

You have to be logged in to see the button. Are you logged in when you are testing?

Hi Scott - yes I am logged in, nothing.

cheers, Mike

11 Jan 2014, 9:54 PM
#127
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Save For Later Support Thread

shags38:

Hi Scott - yes I am logged in, nothing.

cheers, Mike

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 no longer available] [Attachment no longer available]

cheers, Mike

12 Jan 2014, 12:13 AM
#128
missesbeehaven avatar

missesbeehaven

New Zenner

Join Date:
Apr 2009
Posts:
57
Plugin Contributions:
0

Re: Save For Later Support Thread

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"?

12 Jan 2014, 7:37 PM
#129
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Save For Later Support Thread

@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.

12 Jan 2014, 7:46 PM
#130
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Save For Later Support Thread

Hi Scott,

@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.

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 anywhere

cheers, Mike

12 Jan 2014, 9:16 PM
#131
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Save For Later Support Thread

shags38:

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 anywhere

cheers, Mike

Scott - please disregard the above post - I need to learn about standard buttons and how they work, right:smile:

cheers, Mike

12 Jan 2014, 9:19 PM
#132
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Save For Later Support Thread

ok I see. It's not really a button image, it's just a button created out of the alt text.

12 Jan 2014, 9:24 PM
#133
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Save For Later Support Thread

shags38:

Scott - please disregard the above post - I need to learn about standard buttons and how they work, right:smile:

You were led astray by the fact that I had a placeholder image definition that I never used. I'll remove that in the next update.

12 Jan 2014, 9:24 PM
#134
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Save For Later Support Thread

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

13 Jan 2014, 4:04 PM
#135
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Save For Later Support Thread

Just like it's necessary to be logged in to have a persistent cart. Things are keyed by customer id.

29 Jan 2015, 4:21 PM
#136
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,080
Plugin Contributions:
56

Re: Save For Later Support Thread

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?

29 Jan 2015, 4:41 PM
#137
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,080
Plugin Contributions:
56

Re: Save For Later Support Thread

Found it; the readme instructions are close:

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;

but should be:

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[B]_x[/B]'])) {
     actionSaveForLaterFromProductPage($goto, $parameters); 
  } else {
     $_SESSION['cart']->actionAddProduct($goto, $parameters);
  } 
  break;
29 Jan 2015, 9:18 PM
#138
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Save For Later Support Thread

There's definitely a bug in the instructions, but I don't think that's it - that doesn't seem to work either.

29 Jan 2015, 10:17 PM
#139
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Save For Later Support Thread

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.

29 Jan 2015, 10:34 PM
#140
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Save For Later Support Thread

Save For Later 1.4.1 was just released with corrected instructions for installing Save for Later on your product info pages.