Page 1 of 1

Customizing Checkout Worklflow toRemove Payment Verification

Posted: Tue Jul 16, 2013 4:44 am
by ankitpatni
Hi,
I am currently working with Broadleaf Commerce 2.2.0, I have downloaded the Demosite and its working fine.
I want to customize the Checkout Workflow of the Demosite as in my use case I am not charging any payment for the products on my site and for that i have to remove both shipping and payment verification processes from the Demosite.

As described in your tutorial http://docs.broadleafcommerce.org/2.2/Workflows-and-Activities.html, the "blcPaymentWorkflow" and "blcCheckoutWorkflow" are responsible for the payment verification.
But I didn't find the "blcPaymentWorkflow" and "blcCheckoutWorkflow" beans defined in the applicationContext.xml of the site.

Any guidelines on how to do this, will be helpful to me.

Thanks & Regards
Ankit Patni

Re: Customizing Checkout Worklflow toRemove Payment Verification

Posted: Tue Jul 16, 2013 12:20 pm
by phillipuniverse
These beans are defined in bl-framework-applicationContext-workflow, which is at https://github.com/BroadleafCommerce/Br ... rkflow.xml.

Each individual workflow that could occur in a payment workflow is defined in https://github.com/BroadleafCommerce/Br ... ayment.xml

I went and updated the doc page that you referenced to include links to the line numbers for each workflow in that XML file. Should be deployed automatically in the next hour or so.

Re: Customizing Checkout Worklflow toRemove Payment Verification

Posted: Wed Jul 17, 2013 7:24 am
by ankitpatni
phillipuniverse wrote:These beans are defined in bl-framework-applicationContext-workflow, which is at https://github.com/BroadleafCommerce/Br ... rkflow.xml.

Each individual workflow that could occur in a payment workflow is defined in https://github.com/BroadleafCommerce/Br ... ayment.xml

I went and updated the doc page that you referenced to include links to the line numbers for each workflow in that XML file. Should be deployed automatically in the next hour or so.



Hi Phillipuniverse,

Thank you so much for quick response on my query. I go through with all the link which you provide and investigate the issue and fond that we don't have https://github.com/BroadleafCommerce/Br ... ayment.xml this file in Broadleaf commerce 2.2.0. I guess this files are related to 3.0 release and its missing from 2.2.0.

I will really appreciate your help if you can provide some documentation or work around to fix this under 2.2.0 version of broadleaf commerce.

Thanks & Regards,
Ankit Patni

Re: Customizing Checkout Worklflow toRemove Payment Verification

Posted: Wed Jul 17, 2013 8:15 am
by phillipuniverse
Broadleaf 2.2: https://github.com/BroadleafCommerce/Br ... rkflow.xml

This bl-framework-applicationContext-workflow file has all of the workflow beans. In 2.3+ we split those out the payment workflow information.

Re: Customizing Checkout Worklflow toRemove Payment Verification

Posted: Wed Jul 17, 2013 9:26 am
by ankitpatni
I tried customizing the "blcCheckoutWorkflow" bean in the bl-framework-applicationContext-workflow file.
Now the "blcCheckoutWorkflow" bean looks like:

Code: Select all

<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>
                <bean class="org.broadleafcommerce.core.offer.service.workflow.VerifyCustomerMaxOfferUsesActivity"/>
                <!--<bean class="org.broadleafcommerce.core.checkout.service.workflow.PaymentServiceActivity"/>-->
                <bean class="org.broadleafcommerce.core.offer.service.workflow.RecordOfferUsageActivity"/>
                <bean class="org.broadleafcommerce.core.checkout.service.workflow.CompleteOrderActivity"/>
            </list>
        </property>
        <property name="defaultErrorHandler" ref="blDefaultErrorHandler"/>
    </bean>

I didn't got what i was expecting.
Can you please help me out in finding that with which bean i need to play??