title | issue |
---|---|
Enable the editing of promotions in existing orders |
NEXT-13002 |
- Changed const
\Shopware\Core\Checkout\Cart\Order\OrderConverter::ADMIN_EDIT_ORDER_PERMISSIONS
to public - Added methods
addPromotionLineItem
andtoggleAutomaticPromotion
in\Shopware\Core\Checkout\Cart\Order\RecalculationService
- Added new routes
/api/_action/order/{orderId}/promotion-item
and/api/_action/order/{orderId}/toggleAutomaticPromotions
- Added blocks
sw_order_detail_base_line_items_switch_promotions
andsw_order_detail_base_line_items_voucher_field
insrc/module/sw-order/view/sw-order-detail-base/sw-order-detail-base.html.twig
- Added following methods to component
sw-order-detail-base
deleteAutomaticPromotion
toggleAutomaticPromotions
handlePromotionCodeTags
onSubmitCode
handlePromotionResponse
onRemoveExistingCode
getLineItemByPromotionCode
updatePromotionList
- Added following computed properties to component
sw-order-detail-base
orderLineItemRepository
disabledAutoPromotionVisibility
hasLineItem
currency
promotionCodeLineItems
hasAutomaticPromotions
promotionCodeTags
- Added watcher
order.lineItems
to componentsw-order-detail-base
- Added mixin
notification
to componentsw-order-detail-base
- Added snippet
sw-order.detailBase.textPromotionRemoved
- Added methods
addPromotionToOrder
andtoggleAutomaticPromotions
toorder.api.service