- Use https://smsmanager.cz account to send SMS to customers
- Inform your customers with a text message that the package has been sent
- Custom text for every shipping method and language
- Use variables to personalise the text
- Run
$ composer require mangoweb-sylius/sylius-smsmanager-plugin
. - Register
\MangoSylius\SmsManagerPlugin\MangoSyliusSmsManagerPlugin
in your Kernel. - Import
@MangoSyliusSmsManagerPlugin/Resources/config/resources.yml
in the config.yml. - Your Entity
Channel
has to implement\MangoSylius\SmsManagerPlugin\Model\SmsManagerChannelInterface
. You can use TraitMangoSylius\SmsManagerPlugin\Model\SmsManagerChannelTrait
. - Your Entity
ShippingMethodTranslation
has to implement\MangoSylius\SmsManagerPlugin\Model\SmsManagerShippingMethodInterface
. You can use TraitMangoSylius\SmsManagerPlugin\Model\SmsManagerShippingMethodTrait
. - Include template
@MangoSyliusSmsManagerPlugin/channelSmsSegmentForm.html.twig
in@SyliusAdmin/Channel/_form.html.twig
. - Include template
@MangoSyliusSmsManagerPlugin/shippingMethodSmsForm.html.twig
in@SyliusAdmin/ShippingMethod/_form.html.twig
. For guide to use your own entity see Sylius docs - Customizing Models
First enter SMS Manager credentials and other parameters in channel settings, then enter SMS text for each shipping method. If the text is blank, no SMS will be sent.
You can use the following variables in the text:
{{ orderNumber }}
{{ trackingNumber }}
{{ address.fullName }}
{{ address.company }}
{{ address.street }}
{{ address.postCode }}
{{ address.city }}
{{ address.provinceCode }}
{{ address.provinceName }}
{{ address.countryCode }}
- Create symlink from .env.dist to .env or create your own .env file
- Develop your plugin in
/src
- See
bin/
for useful commands
After your changes you must ensure that the tests are still passing.
- Easy Coding Standard
bin/ecs.sh
- PHPStan
bin/phpstan.sh
This library is under the MIT license.
Developed by manGoweb.