“blcPaymentWorkflow”和“blcCheckoutWorkflow”在 BLC 框架中定义。本网站使用 BLC 框架中定义的默认结账工作流程实施。请参阅:- https://github.com/BroadleafCommerce/BroadleafCommerce/blob/334289cfd658b6563a952f39b18e52c09caf0574/core/broadleaf-framework/src/main/resources/bl-framework-applicationContext-workflow.xml
您必须通过从中删除现有活动来覆盖结帐工作流程。这可以通过在您的网站中定义相同的内容来完成,如下所示:-
<bean id="blCheckoutWorkflow" class="org.broadleafcommerce.core.workflow.SequenceProcessor">
<property name="processContextFactory">
<bean
class="org.broadleafcommerce.core.checkout.service.workflow.CheckoutProcessContextFactory" />
</property>
<property name="activities">
<list>
<!-- I have removed the Payment Activity -->
<ref bean="blVerifyCustomerMaxOfferUsesActivity" />
<ref bean="blRecordOfferUsageActivity" />
<ref bean="blCommitTaxActivity" />
<ref bean="blCompleteOrderActivity" />
</list>
</property>
<property name="defaultErrorHandler" ref="blDefaultErrorHandler" />
</bean>
谢谢!维韦克