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\AddToCardCommand
so 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.class
has been introduced to allow an easier override -
Added an override of
Sylius\Component\Core\Model\OrderItem
with a new Trait:Setono\SyliusGiftCardPlugin\Model\OrderItemTrait
. See [Installation](/README.md#Extend entities) for procedure -
Added property
giftCardAmountConfigurable
toProduct
. Override the template@SyliusAdmin/Product/Tab/_details.html.twig
to add{{ form_row(form.giftCardAmountConfigurable) }}
-
Removed method
create(OrderInterface $order): void
fromSetono\SyliusGiftCardPlugin\Operator\OrderGiftCardOperatorInterface
and its associate SM callback on payment -
Added method
associateToCustomer(OrderInterface $order): void
toSetono\SyliusGiftCardPlugin\Operator\OrderGiftCardOperatorInterface
along with a sm callback on checkout complete