fostercommerce / delivery-dates
Delivery Dates
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^3.1
- craftcms/commerce: ^2.0.0
This package is auto-updated.
Last update: 2025-01-27 03:03:36 UTC
README
Delivery Dates
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require FosterCommerce/delivery-dates
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Delivery Dates.
Template Usage
{% set deliveryBy = craft.deliveryDates.deliveryBy %} Order by {{deliveryBy.orderByDate|date('m/d/Y H:i:s')}}{# 4/19/2019 14:00:00 #} Delivery By {{deliveryBy.deliveryDate|date('m/d/Y')}} {# 4/19/2019 #}
{% set deliveryBy = craft.deliveryDates.deliveryBy(order.dateOrdered) %} Order by {{deliveryBy.orderByDate|date('m/d/Y H:i:s')}}{# 4/29/2019 09:00:00 #} Delivery By {{deliveryBy.deliveryDate|date('m/d/Y')}} {# 5/2/2019 #}
Brought to you by Foster Commerce