DanPrime Posted April 13, 2023 Share Posted April 13, 2023 Hi, I'm trying to create a feature on the homepage of my website where I can have a line of text saying something like "The museum is open today from XXX to XXX" which will pull the opening times from an events calendar I have. And if there is no event on that day for the text to change to something like "The museum is closed today@ I know it's a big ask but I'm not sure where to start. I've attached a screenshot of a similar feature on another website. I'm running on 7.0 with the Commerce Basic plan. Thank in advance 🙂 Link to comment
Solution paul2009 Posted April 15, 2023 Solution Share Posted April 15, 2023 If it helps, I provided some example code in this post. It shows the opening hours for today by pulling this information from a list of hours. I hope this gets your started 🙂. If this simpler alternative is not enough, you'd need to process the events page JSON to calculate the opening hours for today and then use these instead. Did this help? Please give feedback by clicking an icon below ⬇️ Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
sissom Posted June 9 Share Posted June 9 @DanPrime. Interesting idea to do it this way, DanPrime. Please tell me, how did I not think of this before? Link to comment
Gabriellle Posted June 9 Share Posted June 9 (edited) On 6/9/2024 at 3:06 PM, sissom said: @DanPrime. Interesting idea to do it this way, DanPrime. Please tell me, how did I not think of this before? think it would be useful if the college website also used such a function on its site and announced where and which exams are being held. Once, during my school days, I wasn't informed that my exam had been rescheduled to another day. I was terribly behind with my exam. I was preparing day and night, and as a result, I used the https://essays.edubirdie.com/business-management-assignment service and did my assignment well. I came to college, and the classes were canceled. Can you imagine how upset I was? You must be new to this! But I wish you continued growth and development! Edited June 20 by Gabriellle sissom 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment