The strftime() function is deprecated

Phoca Cart - complex e-commerce extension
kosh2323
Phoca Member
Phoca Member
Posts: 22
Joined: 13 Sep 2022, 08:03

The strftime() function is deprecated

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The strftime() function is deprecated

Post 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
If you find Phoca extensions useful, please support the project
kosh2323
Phoca Member
Phoca Member
Posts: 22
Joined: 13 Sep 2022, 08:03

Re: The strftime() function is deprecated

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The strftime() function is deprecated

Post 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
?
If you find Phoca extensions useful, please support the project
kosh2323
Phoca Member
Phoca Member
Posts: 22
Joined: 13 Sep 2022, 08:03

Re: The strftime() function is deprecated

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The strftime() function is deprecated

Post by Jan »

Hi, I will first overwrite it for Joomla 4, then I will let you know.

Jan
If you find Phoca extensions useful, please support the project
kosh2323
Phoca Member
Phoca Member
Posts: 22
Joined: 13 Sep 2022, 08:03

Re: The strftime() function is deprecated

Post 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.
Post Reply