- All Implemented Interfaces:
- org.broadleafcommerce.core.workflow.Activity<org.broadleafcommerce.core.workflow.ProcessContext<org.broadleafcommerce.core.order.service.workflow.CartOperationRequest>>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.core.Ordered
@Component(value="blGiftCardPriceOverrideActivity")
public class GiftCardPriceOverrideActivity
extends org.broadleafcommerce.core.workflow.BaseActivity<org.broadleafcommerce.core.workflow.ProcessContext<org.broadleafcommerce.core.order.service.workflow.CartOperationRequest>>
Updates the retail and sale price of an OrderItem with fulfillment type "GIFT_CARD" to the amount specified by the user
in ProductOption "GC_AMOUNT". Works within the ProcessContext of blAddItemWorkflow.
This activity is intended to run BEFORE the item is actually added to the Order, i.e blAddOrderItemActivity
In order to make use of this activity, uncomment the BLC_PRODUCT_OPTION_XREF rows in the load_account_credit_demo_data.sql file
to put the GC_AMOUNT ProductOption on the gift card Product
- Author:
- Joshua Skorton (jskorton)