Page 1 of 1

The strftime() function is deprecated

Posted: 21 Sep 2022, 10:40
by kosh2323
Discount calculations do not work, and the Phoca Cart sales countdown timer module is not displayed at all in the position, the error Request 1065 was empty, I see this in the admin panel is outdated:

The strftime() function is deprecated in ....\libraries\src\Form\Field\CalendarField.php on line 273

And all this is precisely because of this, or am I wrong?

Re: The strftime() function is deprecated

Posted: 26 Sep 2022, 14:44
by Jan
Hi, not sure if the feature will be stopped by this deprecated warning. Can you explain in more details what exactly does not work?

Thank you, Jan

Re: The strftime() function is deprecated

Posted: 26 Sep 2022, 18:23
by kosh2323
Jan wrote: 26 Sep 2022, 14:44 Hi, not sure if the feature will be stopped by this deprecated warning. Can you explain in more details what exactly does not work?

Thank you, Jan
Hi Jan. Created a coupon, chose to display the coupon itself before the payment form, allowed the purchase without registration. Allowed the use of coupons in the settings. As a result, when buying and applying a coupon, I see this on the website:

"The specified coupon cannot be used - it is invalid, expired or the usage limit has been reached"

In the admin panel in settings-coupons-publication settings, I see this (as in every product in the publication settings):

Image

2. Phoca Cart Sales Countdown Timer Module 3.5.10
I installed it, it is not displayed at all in the position, it is not clear how it should work and be tied to a certain product.
Maybe the module is not suitable for version 4.2.2?

Re: The strftime() function is deprecated

Posted: 26 Sep 2022, 20:19
by Jan
Hi,
1)
Phoca Cart Sales Countdown Timer Module - yes, it is not ready for Joomla 4 for now.

2) strftime - yes, as written in other posts, this needs to be fixed by Joomla core team

3) coupon - did you try to recheck all the options:
- coupon code
- valid date
- limit
?

Re: The strftime() function is deprecated

Posted: 27 Sep 2022, 08:07
by kosh2323
Jan wrote: 26 Sep 2022, 20:19 Hi,
1)
Phoca Cart Sales Countdown Timer Module - yes, it is not ready for Joomla 4 for now.

2) strftime - yes, as written in other posts, this needs to be fixed by Joomla core team

3) coupon - did you try to recheck all the options:
- coupon code
- valid date
- limit
?
Hi,
3) I probably tried all the options, there are doubts, rather it is due to the fact that the function cannot calculate from which date to start, maybe I'm wrong. What options should be exactly enabled in your opinion for this to work?

Re: The strftime() function is deprecated

Posted: 27 Sep 2022, 23:06
by Jan
Hi, I will first overwrite it for Joomla 4, then I will let you know.

Jan

Re: The strftime() function is deprecated

Posted: 28 Sep 2022, 14:37
by kosh2323
Jan wrote: 27 Sep 2022, 23:06 Hi, I will first overwrite it for Joomla 4, then I will let you know.

Jan
Hi Jan, thanks.