Administrator
- Join Date:
- Feb 2006
- Location:
- Tampa Bay, Florida
- Posts:
- 10,690
- Plugin Contributions:
- 56
Save For Later Support Thread
Save for Later has been updated for Zen Cart 1.5.7.
Views: 64,707
Administrator
Save for Later has been updated for Zen Cart 1.5.7.
Totally Zenned
It appears that this plugin is not compatible with SBA. All that i get is a blank checkout page.
Administrator
Can you post the debug log that was produced ?
Totally Zenned
[16-Aug-2020 08:23:41 CST6CDT] PHP Parse error: syntax error, unexpected '<' in /home/tennes60/public_html/shop/includes/templates/responsive_ttf/templates/tpl_shopping_cart_default.php on line 170
[16-Aug-2020 08:23:41 CST6CDT] Request URI: /shop/index.php?main_page=shopping_cart&zenid=bd9f6dc4d4b4ed39ef66df3edd231475, IP address: 69.137.114.242
--> PHP Parse error: syntax error, unexpected '<' in /home/tennes60/public_html/shop/includes/templates/responsive_ttf/templates/tpl_shopping_cart_default.php on line 170.
Administrator
This means you have made a mistake during merging. Just take my copy of the file to start with (from the Save for Later zip), then introduce your changes.
Totally Zenned
I've stumbled across a problem with SFL.
If you have products that have a max quantity limit set and you already have the maximum allowed in cart, but also have the item in SFL list, it will allow you to move the item into the cart, taking you over the max allowed limit.
Admittedly, it will tell you this once you go to checkout, but the preferred behaviour would be that it doesn't allow such items to be moved from SFL to cart in the first place, with a notification to the use explaining this.
Is this something you could look into doing, or perhaps offer me some pointers on where I need to look to implement a fix myself?
New Zenner
Does SFL need updating for later versions of PHP? My install is throwing several PHP Warnings as follows:
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /XXX/public_html/shop/includes/functions/extra_functions/sfl_functions.php on line 629.
--> PHP Warning: Use of undefined constant button - assumed 'button' (this will throw an Error in a future version of PHP) in /XXX/public_html/shop/includes/templates/MYTEMPLATE/templates/tpl_shopping_cart_default.php on line 236.
--> PHP Warning: Use of undefined constant button_movetocart - assumed 'button_movetocart' (this will throw an Error in a future version of PHP) in /XXX/public_html/shop/includes/templates/MYTEMPLATE/templates/tpl_shopping_cart_default.php on line 236.
(My shopping cart template page is heavily customized, so the line number mentioned won't be standard.)
Administrator
What PHP version are you using? (The VERSION link in admin will show you.)
New Zenner
PHP version 7.3.33.
Administrator
Fixes for PHP 7.3+ submitted.
New Zenner
Thank you! Confirming that your update has fixed the problems :)
Zen Follower
I am having a bit of trouble where I have inserted the plugin into my new v.1.5.8, ran the SQL stmt and the tables show in my database along with the attributes inside of them (info did not transfer from previous database so tables are empty).
When I add a product to my shopping cart, I click the Move To Wishlist button and it takes me back to my website's main page but when I return to my shopping cart, it has not moved it to Wishlist. There are also no Debug files generated in the /logs folder so I am not sure where I've gone wrong.
I am running PHP v 7.4.33 on my site, and have the plug in working correctly on my live version 1.5.7b site.
Hoping someone else might have had a similar problem and can point me in the right direction as to what I've done wrong.
Thank you in advance for any help!
Administrator
Move to Wishlist is different from Save for Later. You will have to go to that Plugin's support thread.
Zen Follower
Sorry for this mis-description in my previous post....it is the Save For Later plugin (v.1.8)that I am using.
Administrator
Does the button you are pressing say Add to Wishlist (or something like that)? If so you'll have to go to another forum thread.
Does it say "Save for Later" (or something like that)? If so, I will investigate.
Zen Follower
Hi swguy,
It definitely is the Save For Later plug in as this is the folder and files I am working with.
Thanks for your help!
Administrator
Ok there's a new version now in the plugins library that fixes this issue which occurs in Zen Cart 1.5.8.
Zen Follower
Thanks very much swguy for your reply and work on this...I appreciate it!
I'll grab it and get it installed
Zen Follower
Again....thank you swguy for your updated plugin. I have now installed it and it all works perfectly!
Zen Follower
If a customer is not logged in and deleted the last item from their cart an error like this is thrown:
17-Oct-2023 07:30:51 America/Chicago] Request URI: /shopping_cart, IP address: 73.67.37.4, Language id 1
#0 /includes/templates/pcs_bootstrap/templates/tpl_shopping_cart_default.php(28): zen_debug_error_handler()
#1 /includes/templates/pcs_bootstrap/common/tpl_main_page.php(216): require('/i...')
#2 /index.php(94): require('/i...')
--> PHP Warning: Undefined variable $flagHasSavedContents in /includes/templates/pcs_bootstrap/templates/tpl_shopping_cart_default.php on line 28.
I think it's a matter of checking if $flagHasSavedContents is defined before checking if either $flagHasCartContents or $flagHasSavedContents is set, but I can't seem to wrap my head around the syntax this morning...
As always, any help is greatly appreciated!
Tell staff why this post should be reviewed.