Jump to content


  • Posts

  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    Pattaya, Thailand
  • Interests
    AWcode build websites and software solutions for customers around the world. Call us on (+66) 033 034 115 244/127-128 Moo 6 Pornprapanimitr Road Nongprue Banglamung Chonburi 20150
  • Activity
    Web development agency

awcode's Achievements


Newbie (1/14)



  1. I have a module that needs to display a popup once and then not display again for 24 hours. Normally doing this with a cookie is a trivial task, however the prestashop cache is causing issues. I am using context->cookie->__set and context->cookie->key which are working ok. But the big problem is as follows:- 1) Set cookie and echo value in comment as a test - nothing comes up. 2) Clear cache - test value shows. 3) Open different browser - test value from previous session in other browser is shown. Clearly the cookie code is working and running, but only runs once and is then stored in cache and retrieved for all subsequent users. I need this code to actually run on each request so it can determine the cookie value relative to the current active user. This is currently running in hookFooter if it makes a difference. Is there any way that I can either disable cache for this specific hook or module or otherwise force the code to actually run?
  • Create New...