From now on, Gift cards can have a custom amount given by the customer, and a custom message that can later be used to send emails for example
-
Added an override of
Sylius\Bundle\OrderBundle\Controller\AddToCardCommandso if your application was referencing this class instead of the interface, you should change it. Please also note that a new parametersetono_sylius_gift_card.order.model.add_to_cart_command.classhas been introduced to allow an easier override -
Added an override of
Sylius\Component\Core\Model\OrderItemwith a new Trait:Setono\SyliusGiftCardPlugin\Model\OrderItemTrait. See [Installation](/README.md#Extend entities) for procedure -
Added property
giftCardAmountConfigurabletoProduct. Override the template@SyliusAdmin/Product/Tab/_details.html.twigto add{{ form_row(form.giftCardAmountConfigurable) }} -
Removed method
create(OrderInterface $order): voidfromSetono\SyliusGiftCardPlugin\Operator\OrderGiftCardOperatorInterfaceand its associate SM callback on payment -
Added method
associateToCustomer(OrderInterface $order): voidtoSetono\SyliusGiftCardPlugin\Operator\OrderGiftCardOperatorInterfacealong with a sm callback on checkout complete