Download the PHP package tavy315/sylius-requested-delivery-date-plugin without Composer
On this page you can find all versions of the php package tavy315/sylius-requested-delivery-date-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tavy315/sylius-requested-delivery-date-plugin
More information about tavy315/sylius-requested-delivery-date-plugin
Files in tavy315/sylius-requested-delivery-date-plugin
Package sylius-requested-delivery-date-plugin
Short Description Sylius plugin for your customers to request a delivery date.
License MIT
Informations about the package sylius-requested-delivery-date-plugin
Sylius Requested Delivery Date Plugin
This plugin for Sylius allows your customers to request a delivery date on their order.
Supports Doctrine ORM driver only.
Screenshots
Shop:
Admin:
Installation
Step 1: Install the plugin
Open a command console, enter your project directory and execute the following command to download the latest stable version of this plugin:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the plugin
Then, enable the plugin by adding it to the list of registered plugins/bundles in config/bundles.php
file of your project:
Step 3: Configure the plugin
Step 4: Customize models
Read more about Sylius models customization here.
Customize your Order model
Add a Tavy315\SyliusRequestedDeliveryDatePlugin\Model\Order\RequestedDeliveryDateTrait
trait to your App\Entity\Order\Order
class.
- If you use
annotations
mapping:
Step 5: Update your database schema
Step 6: Add labels to your product templates
Add the new requestedDeliveryDate
field to your template. By default, you should use templates/bundles/SyliusShopBundle/Checkout/Complete/_form.html.twig
path.
Usage
From now your customers should be able to request a delivery date.