Understandable. It is not a big issue for me but I wanted to report it in case it could be "fixed" for others who might find it more annoying than me :)
Printable View
Understandable. It is not a big issue for me but I wanted to report it in case it could be "fixed" for others who might find it more annoying than me :)
Just in case there is more interest on this, I can confirm that I am using this plugin with 1.5.7c and it works fine.
I still keep my hand raised in case there is any tweak possible to make it compatible with Wishlist, as it is easy for customers to put things in the cart from their wishlist when there is a quick sale. In those situations, this current plugin is somewhat bypassed.
Hi lat9
In installing this plugin into my development site for upgrade to Zen Cart v.2.1, everything installed well but I received this error message in the Debug Logs
PHP Deprecated: Creation of dynamic property DownloadAlreadyPurchased::$is_downloadable is deprecated in C:\wamp64\www\new2121\includes\classes\observers\DownloadAlreadyPurchased.php on line 166.
I am in WAMP using PHP v.8.2.18 Would you be able to recommend the needed code change on this line??
Thanks!
@lat9 has not changed this code since 2017; she is a slacker!
i can tell you what to change but i have a feeling you will run into other errors, i could be wrong. who knows.
look here:
https://github.com/lat9/download_alr...ed.php#L16-L17
between those two lines, add the following line:
good luck.PHP Code:
$is_downloadable,
@carlwhat is correct on all counts! I've now got this added to my list of stuff-to-be-updated.
GitHub issue for tracking: https://github.com/lat9/download_alr...hased/issues/2
Thanks carlwhat and lat9 for your replies!
I'll try this code addition in between these two lines....but I'll also know that if other errors crop up, not to worry or post about it.
Thanks again to you both.
> @carlwhat is correct on all counts!
... except the "slacker" part. Cindy is the hardest working developer on the project!
Quick update.....
Thanks to carlwhat's coding suggestion in post #44, I applied it to the file and I now do not receive the error!
It did cause an error in my Save For Later plugin that was not there before...
PHP Warning: Undefined array key "action" in C:\wamp64\www\new2121\includes\main_cart_actions.php on line 44.
But the Download Already Purchased is fine! You warned me about these unintended consequences....ce la vie!
Just thought I'd update in case someone else was having the same situation...
v2.0.0 of Download Already Purchased is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2147
Updated for continued operation under Zen Carts 1.5.8 and later. See GitHub issues #2, #3 and #4.