How can I get the date when the cart was last modified?
I am doing some AJAX stuff and I want to use the date string as a cache buster.
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this communityHow can I get the date when the cart was last modified?
I am doing some AJAX stuff and I want to use the date string as a cache buster.
There's nothing in terms of template tags that will output modified date-time to grab on to as far as I know but there is a useful hook (store_cart_update_end) provided which will give you something to work with to grab the current date and time and output that to the template file (hidden). This will give you something to grab hold of client-side with AJAX.