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.zip

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

12 hours ago, 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

Hello,

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

psproductcountdown.zip

  • Thanks 1
Link to comment
Share on other sites

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 :(

Link to comment
Share on other sites

8 hours ago, 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 :(

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

30 minutes ago, riga75 said:

ok done

It seems that one of the module hooks is missing. Try to uninstall and install the module again, it'll restore its hooks.

Link to comment
Share on other sites

  • 1 month later...
6 hours ago, 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.

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

11 hours ago, polosat said:

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.

Hi,

Start date must be shown.

I've sent an image to show what it is.

Thanks

ETIQ.jpg

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

8 hours ago, 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)

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

Link to comment
Share on other sites

22 hours ago, 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

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

15 hours ago, 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.

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 hours ago, SMA17 said:

Hello

Why i not get hours on the timer?

Hello,

Do you mean that the hours value is always "00" and it's not updated? I have never seen such a problem before, could you send me a link to a page with such issue?

Link to comment
Share on other sites

  • 4 weeks later...
4 hours ago, Interlumen said:

The module hides photos

Hello,

Try to change the position of the timer ("Position in product list" option). Probably there is some conflict with the product list structure.

Link to comment
Share on other sites

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