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

Save For Later Support Thread

Views: 64,707

Results 161 to 180 of 226
7 May 2018, 12:40 PM
#161
swguy avatar

swguy

Administrator

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

Save For Later Support Thread

If your installation references a field called products_group_a_price, you're not using the built-in Zen Cart Group Pricing, you're using some sort of mod.

This mod would have to be updated to work with Save for Later.

In a new install of Zen Cart 1.5.5 with Save for Later, and a customer configured for Zen Cart Group Pricing, this problem does not occur.

7 May 2018, 12:46 PM
#162
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Save For Later Support Thread

The client is using Group Pricing (per Item) https://www.zen-cart.com/downloads.php?do=file&id=154

If you look at my previous reply, you will see how I modified the function in sfl_functions.php to look up the group for the logged in user, and apply the correct group pricing.
As this is a mod to make SFL work with another mod, if you wish to incorporate the changes, maybe have it check for existence of those fields before allowing the additional code to run?

30 Jul 2019, 1:24 AM
#163
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Save For Later Support Thread

Hi Scott,

I have a question regarding the way this module functions.
If a user logs in and has items 'saved for later', they can't add them to cart from the saved for later list unless they first add another item to cart.
I've tested this myself, and indeed, the shopping cart page simply reloads without moving the saved for later item.

I am guessing it's related to there being no active cart session.
Attempting to output some test data suggests that function actionAddProduct isn't even being called when the cart is in an empty state.

Can you give me some tips on how to resolve this issue?

30 Jul 2019, 8:56 AM
#164
swguy avatar

swguy

Administrator

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

Re: Save For Later Support Thread

interesting - hadn't considered that use case. I'll look at it.

10 Aug 2019, 12:26 AM
#165
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 tested - this works fine if you use my files and responsive classic. One thing is you'll need to tweak the links to the shopping cart page which might check to see if there's anything in the cart before they appear.

30 Sep 2019, 2:01 PM
#166
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 has just been updated for PHP 7.3. Thanks to Pro-Webs for the tip about an issue!

17 Nov 2019, 8:51 PM
#167
ingar avatar

ingar

New Zenner

Join Date:
Sep 2019
Location:
Ramat Gan, Israel
Posts:
31
Plugin Contributions:
0

Re: Save For Later Support Thread

Hello, just reporting the issue. Plugin is not functioning the way you could expect. Latest zen cart v1.5.6c. Whenever I try to edit the cart I get this message in response. The item remains in the cart though, you can also add another one, but checking the cart content you getting the same massage.
Attachment 18717
Also it is extremely difficult to merge my active template's file tpl_shopping_cart_default.php with correspondent file in plugin's file-set. So I'm presenting the basic responsive classic's version.

18 Nov 2019, 12:44 AM
#168
swguy avatar

swguy

Administrator

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

Re: Save For Later Support Thread

Yep, Save for Later needs some more work for 1.5.6. I thought it was done but I can see a couple of issues.

18 Nov 2019, 12:12 PM
#169
swguy avatar

swguy

Administrator

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

Re: Save For Later Support Thread

Should be fixed now.

18 Nov 2019, 5:47 PM
#170
ingar avatar

ingar

New Zenner

Join Date:
Sep 2019
Location:
Ramat Gan, Israel
Posts:
31
Plugin Contributions:
0

Re: Save For Later Support Thread

Wow, thank you, could not expect such a quick response to the issue actually both response and fix. Appreciate. Looking forward to imply the one on practice it seems rather important feature to have on website.

18 Nov 2019, 7:33 PM
#171
ingar avatar

ingar

New Zenner

Join Date:
Sep 2019
Location:
Ramat Gan, Israel
Posts:
31
Plugin Contributions:
0

Re: Save For Later Support Thread

Yeah, fix is working. Tested on responsive classic. Thank you.:thumbsup:

21 Nov 2019, 8:17 PM
#172
yesaul avatar

yesaul

New Zenner

Join Date:
Apr 2011
Location:
Espoo, Finland
Posts:
71
Plugin Contributions:
0

Re: Save For Later Support Thread

Good plugin. Everything seems working smooth.

But it seems also, there is some usability issue there:

If I have some 'Saved For Later' products, but my shopping cart is empty (I've placed an order or simply emptied the cart and leaved 'cart'-page), how can see the list of 'Saved For Later' products? (or even - how can I realize I have some products in this list?)

My suggestion: by emptying the cart the 'Saved for later' goods must be automatically moved back to shopping cart (NOTIFIER_CART_RESET_END can be used ??)

22 Nov 2019, 12:02 AM
#173
swguy avatar

swguy

Administrator

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

Re: Save For Later Support Thread

As noted on the prior page of posts, the shopping cart page is displayed with the save for later items in the responsive classic template.
Study the differences between responsive classic and your template to see why yours doesn't do this.

As for moving the products to the cart upon emptying the cart - if you look at other carts that implement Save for Later type functionality, you'll find they don't do this. Most users would find it both astonishing and annoying.

22 Nov 2019, 8:11 AM
#174
yesaul avatar

yesaul

New Zenner

Join Date:
Apr 2011
Location:
Espoo, Finland
Posts:
71
Plugin Contributions:
0

Re: Save For Later Support Thread

swguy:

As noted on the prior page of posts, the shopping cart page is displayed with the save for later items in the responsive classic template.
Study the differences between responsive classic and your template to see why yours doesn't do this...

Thank you for your reply. And sorry, probably my explanations were not clear enough.

I try to test your addon on pure Zen Cart 156c, using Responsive Classic template by default.

Once again (for example): if I move all goods into the 'Saved For Later' list (no more products in 'cart') and then leave 'cart'-page - how can I realize, there still are some products in 'Saved For Later' list ?? (the 'cart'-sidebox is not being displayed, as there are no products in the main cart)

22 Nov 2019, 11:22 AM
#175
swguy avatar

swguy

Administrator

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

Re: Save For Later Support Thread

This is the design intent. Look at how Amazon does it.
If you really want to customize it to work the way you think it should work, go for it- but I wouldn't recommend it.

26 Nov 2019, 7:15 AM
#176
ingar avatar

ingar

New Zenner

Join Date:
Sep 2019
Location:
Ramat Gan, Israel
Posts:
31
Plugin Contributions:
0

Re: Save For Later Support Thread

yesaul:

I try to test your addon on pure Zen Cart 156c, using Responsive Classic template by default.

Once again (for example): if I move all goods into the 'Saved For Later' list (no more products in 'cart') and then leave 'cart'-page - how can I realize, there still are some products in 'Saved For Later' list ?? (the 'cart'-sidebox is not being displayed, as there are no products in the main cart)

Let me explain. I have just realize myself how it works on Amazon site. Say a week later when you return to the site you have shopped in, provided you've logged in, and knowing that you cart is empty there, see your cart indicator is "0" items. Despite this obvious fact you continue to your empty cart to see how it looks and voila! you got there "saved for later" items list. Bear in mind the feature is completely different to "wish list".

12 Aug 2020, 10:05 PM
#177
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Save For Later Support Thread

This module throws an error if using PHP 7.2 or above due to the each() function being deprecated.
Error log shows
PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /Users/sp/Developer/zc157/includes/functions/extra_functions/sfl_functions.php on line 160.

12 Aug 2020, 10:15 PM
#178
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Save For Later Support Thread

Should have added the offending line to the post!

Line 160 is

while (list($products_id, ) = each($contents)) {

12 Aug 2020, 10:44 PM
#179
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Save For Later Support Thread

For anyone else wanting to use PHP version 7.2 and above, replace

line 160

while (list($products_id, ) = each($contents)) {
with
foreach(array_keys($contents) as $products_id) {

12 Aug 2020, 10:57 PM
#180
swguy avatar

swguy

Administrator

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

Re: Save For Later Support Thread

Yep, there are a bunch of those. I will update the module soon.