Dirty Butter Posted June 13, 2018 Share Posted June 13, 2018 What is Fuzzy Time? (Admin>Store Settings>Advanced tab) When/where is it used? I'm hoping it can be made to show month, day, year without time. But it may be that it is used somewhere that needs to be left alone. Is there a specific term that displays m/d/y on a storefront page instead of Date&Time Format? Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 13, 2018 Share Posted June 13, 2018 Fuzzy Time is the term given to show named time spans or named time distances. "Just now", "An hour ago", 'Yesterday", 'Last month" are fuzzy terms. They don't pin down the time to an exact moment. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted June 13, 2018 Author Share Posted June 13, 2018 Thanks for that - never have known what that is. And that won't do what I would like to do. You helped me some time ago with how to add to the homepage listings the time a product was added. Added {formatTime(strtotime($product.updated))} But I'm in the midst of testing everything prior to upgrading to 6.2.1 and this is something I'd like to improve on if possible. It works ok as is on 6.2.1. But to me it looks kind of odd to have the time showing - m/d/y would be sufficient. Is there a different code that would do that? Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 13, 2018 Share Posted June 13, 2018 Where did formatTime() come from? That is not a Smarty function. {$product.updated|strtotime|date_format} I haven't actually tried this yet. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted June 13, 2018 Author Share Posted June 13, 2018 Either you or Noodleman gave it to me. I'll find the thread and be back. https://forums.cubecart.com/topic/51354-would-like-to-display-date-product-total-on-store/ It's in action near the bottom of http://dirtybutter.com/plushcatalog homepage Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 13, 2018 Share Posted June 13, 2018 That referenced conversation does not mention where formatTime() came from. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted June 13, 2018 Author Share Posted June 13, 2018 (edited) I couldn't find anything else. I'll try again using the code as the search term. Well I pulled it off the internet evidently. It does work, I'd just rather not have the hour and minute. Edited June 13, 2018 by Dirty Butter Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 13, 2018 Share Posted June 13, 2018 I wonder if one of your installed plugins has made Smarty aware of this function by adding a reference to its location. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted June 13, 2018 Author Share Posted June 13, 2018 I sure wouldn't know. Let's table this for now. I will try some Googling for the code after I get through going through my 6.2.1 test sites. And I'll try turning off all plugins when I test it again. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted June 16, 2018 Author Share Posted June 16, 2018 I tried to find a way to use the code you suggested - {$product.updated|strtotime|date_format} - but I couldn't figure it out. And I never found where I had copied the code from that I'm currently using. Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 16, 2018 Share Posted June 16, 2018 I supposed you wanted to show this on the Latest Products area, or a category or search results listing (where $product - lowercase - is used). Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted June 16, 2018 Author Share Posted June 16, 2018 Yes, I'd like to have it on the homepage for Latest. Category and Search results listing date might be nice, but not as important to me. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.