on 09-18-2014 2:27 PM
hi , I require order splitting to work for normal card payment mode.I even used hybris OTB splitting strategies for that . But while debugging I have seen that the splitorderaction.java class is only invoked for the cost center approach. Why is it so ? and how should I change it?
If you look at the order-process.xml, you will find that splitOrder node is invoked if the the node 'takePayment' returns OK. Have you verified this in case of normal card payment mode.
This process is customizable, you can change the process and the Java action classes as per your need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rebeck, the b2bAccOrderApproval.xml is used for the Order approval workflow and as far as I know, has no connection with the card payment method.
The order-process should also be invoked for the card payment. Only if the order exceeds the budget limit, the order approval will be trigerred before the order is placed.
You will find most of the information here: https://wiki.hybris.com/display/accdoc/yacceleratorfulfilmentprocess+Extension+-+Technical+Guide
From this b2bAccOrderApproval.xml , its shows that card payment , credit card is being used by b2bAccOrderApproval
<action id="approvalProcessStartAction" bean="approvalProcessStartAction">
<transition name="OK" to="checkCreditCardOrderAction" />
<transition name="NOK" to="error" />
</action>
<action id="checkCreditCardOrderAction" bean="checkCreditCardOrderAction">
<transition name="NOK" to="checkOrderEntryCostCentersActive" />
<transition name="OK" to="sendOrderPlacedNotification" />
Sorry, I was looking at b2bOrderApproval.xml. If you don't the credit card actions to execute, just remove the actions and make the process look similar to b2bOrderApproval.xml. Alternatively, you can also change the strategy configuration in the spring bean:
<bean id="defaultB2BCreateOrderFromCartStrategy"
class="de.hybris.platform.b2b.strategies.impl.DefaultB2BCreateOrderFromCartStrategy"
parent="createOrderFromCartStrategy">
<property name="businessProcessStrategies">
<list>
<ref bean="b2bApprovalBusinessProcessStrategy"/>
<ref bean="b2bQuoteBusinessProcessStrategy"/>
<ref bean="b2bQuoteApprovalBusinessProcessStrategy"/>
</list>
</property>
</bean>
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.