Hi, I need to calculate the latest shipping date for our store, which operates with no inventory. If the number of items added to the cart is more than 10, or if the added item exceeds the stock quantity, we will ship it within 15 business days from that day. There are multiple packages available in the app store, but they provide me with an “estimated arrival date.” I want to calculate the “estimated cargo delivery date” instead. I would like to display this information on the cart page and in the order confirmation email.
If the packages in the app store provide the output as a liquid variable, I can incorporate it by writing my conditions in liquid. However, I don’t want to do that because I will be using this date variable in multiple places (emails, cart, etc.). Therefore, I want to create a single conditional function. Additionally, if I have access to a panel when using the package, it will allow me to easily account for holidays.