All things Shopify and commerce
According to docs, dateTimeBefore will return true if the current date and time is before the given date and time, and false otherwise.
but when I try to use other time in my input query for the cart and checkout validation function, one is the start of the day, and one is the end of the day but it returns the same value is true
shop { localTime { dateTimeBefore(dateTime: "2024-09-30T23:24:31") } }
I'm trying to validate the expiration time that I set in Metafield, because we cannot get the current time in function to compare, so I considered using this. Can it help for this case?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024