fostercommerce/delivery-dates

Delivery Dates

1.0.0-beta.3 2019-04-26 13:31 UTC

This package is auto-updated.

Last update: 2024-04-27 01:34:53 UTC


README

Delivery Dates

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require FosterCommerce/delivery-dates
    
  3. 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