Jump to content

[FREE MODULE] Product Countdown, PS 1.5 - 8


polosat

Recommended Posts

Hello everyone.

Here is my simple module for displaying countdown timers on products. You can show timers automatically on all products with time-limited discounts. Or add them manually to specific products.

The module supports themes, 2 included.
Timers can be displayed in the product list and on the product page.
In the settings you can choose positions for displaying timers or use a custom hook.

Works with PrestaShop 1.5, 1.6, 1.7, 8.

Translations: EN, FR, ES, IT, DE, PL, PT, NL, CA, SK, RU

 

Timers in the product list:

Screenshot_5.pngScreenshot_3.png

 

On the product page:

Screenshot_6.thumb.png.ece8e3daf5aaf9b1b137dda2aac319cf.png

 

Product page in the back office:

Screenshot_1.thumb.png.341ac850956799a99f91e00160c89ed9.png

 

The timer list:

Screenshot_4.thumb.png.a17301a8521bfd238d777d7df4dff635.png

 

Settings:

Screenshot_2.thumb.png.c76d8a6e6118bedddafdb11c775a5325.png

psproductcountdown.zipFetching info...

Edited by polosat (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Hello I am upgrading the site to prestashop 8 and php 8.1 and I get this error message from the logs concerning your module:
AH01215: PHP Deprecated: The hook "Header" is deprecated, please use "displayHeader" instead in module "psproductcountdown". in /var/www/vhosts/MYSITE.com/classes/Hook.php on line 921: /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

what can I do?
thank you

Link to comment
Share on other sites

  On 6/5/2024 at 9:55 AM, riga75 said:

Hello I am upgrading the site to prestashop 8 and php 8.1 and I get this error message from the logs concerning your module:
AH01215: PHP Deprecated: The hook "Header" is deprecated, please use "displayHeader" instead in module "psproductcountdown". in /var/www/vhosts/MYSITE.com/classes/Hook.php on line 921: /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

what can I do?
thank you

Expand  

Hello,

Indeed, you're right, it should be updated.
I'm attaching the updated module. Please try it, it should help.

psproductcountdown.zipFetching info...

  • Thanks 1
Link to comment
Share on other sites

  On 6/6/2024 at 5:39 AM, riga75 said:

It seems that the error no longer occurs.
The problem now is that if I go into the module configuration and click on the various tabs, nothing happens, the tabs don't open :(

Expand  

That's strange, there were no changes related to this. Please try to clear your browser cache (Ctrl + F5) and PrestaShop cache first.

If it doesn't help, could you show me a screenshot of your browser console? There should be some error. Usually you can open it by pressing Ctrl + Shift + J.

Link to comment
Share on other sites

  • 1 month later...
  On 7/15/2024 at 1:39 PM, O Gato Hobby said:

Hi, Nice work!

Is it possible to add the "date from" somewhere?

Here, by law, all discounted products must show the beginning and end.

Expand  

Hi,

Do you mean adding a text with dates near the timer? Unfortunately there is no such option at the moment. Could you show me an example of how it should look? Maybe I can add it.

Link to comment
Share on other sites

Works well. Thanks

Just one thing to fix.

On logs it is writing almost every minute:

PHP Deprecated:  The hook "displayProductButtons" is deprecated, please use "displayProductAdditionalInfo" instead in module "psproductcountdown". in .../public_html/classes/Hook.php on line 875

(Prestashop version: 8.1.1)

 

Link to comment
Share on other sites

  On 7/18/2024 at 10:02 AM, O Gato Hobby said:

Works well. Thanks

Just one thing to fix.

On logs it is writing almost every minute:

PHP Deprecated:  The hook "displayProductButtons" is deprecated, please use "displayProductAdditionalInfo" instead in module "psproductcountdown". in .../public_html/classes/Hook.php on line 875

(Prestashop version: 8.1.1)

Expand  

You're right, thanks for the feedback. I updated the module, now it won't use this hook in modern PrestaShop versions. You might need to manually unhook it from the hook "displayProductButtons" after upgrading.

psproductcountdown.zipFetching info...

Link to comment
Share on other sites

  On 7/18/2024 at 7:17 PM, polosat said:

You're right, thanks for the feedback. I updated the module, now it won't use this hook in modern PrestaShop versions. You might need to manually unhook it from the hook "displayProductButtons" after upgrading.

psproductcountdown.zip 447.74 kB · 3 downloads

Expand  

Looks awesome now! Nice work.

To be perfect, I just would add a field to put the discount on the product directly from the module. Something like in the picture.

ETIQ.jpg

Edited by O Gato Hobby
Forgot the pic (see edit history)
Link to comment
Share on other sites

  On 7/19/2024 at 5:58 PM, O Gato Hobby said:

Looks awesome now! Nice work.

To be perfect, I just would add a field to put the discount on the product directly from the module. Something like in the picture.

Expand  

Thanks for the suggestion :) Sure, it will be a nice feature and I guess I'll really add it. Unfortunately I can't at the moment, hopefully I'll get a chance later.

  • Like 2
Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...