Meet us at Sitecore Symposium 2024 and Discover New Ways to Enhance Your Dynamics Experience. Book a Meeting

Let’s Talk

We would love to hear from you. Want to know more about
our services or have any questions? Say Hi!

OrderCloud Checkout Flow

October 06, 2022
OrderCloud Checkout Flow
Mitesh Patel
Mitesh Patel
Technical Head
orderCloud-checkout-flow
OrderCloud Checkout Flow

A checkout flow is a series of steps that a prospect needs to follow in order to pay for the product they want to buy. Checkout flow begins with an “Add to Cart” click and ends after the payment/Thank You page. Each of these steps must be designed for a seamless journey of the buyers, keeping the buyers motivated to purchase. One of our clients wanted to setup some promotion-based or we can say discount-based product checkout flow and we needed to implement it.

In eCommerce website, we have the requirement to add a 20% discount on some specific products where I can check which product has offers using OrderCloud. And whichever has the discount it will be shown in the final checkout process with 20% of discount to only those items that have a discount other than that product will calculate as a normal product price in final checkout process. To achieve this, we have added a custom extended property (XP).

Please refer below steps which we have followed to implement checkout flow in Ordercloud:

  • In OrderCloud portal sandbox API for the product, we need to set the XP field in XP variable as like xp: {IsDiscountable : true, DiscountPer : 20} If the value is set true for any product that indicates as a discountable product.

orderCloud-checkout-flow
                        
xp: { "Status": "Draft", "ArtworkRequired": false, "FreeShipping": true, "Facets": {}, "UnitOfMeasure": { "Qty": 1, "Unit": "per" }, "IsSubsidyAllowed": "true", "IsSbusidyProduct": "true" }

orderCloud-checkout-flow
Checkout flow as per cart:
  1. After adding the discounted product and normal product in check out final process you need to select the shipping address from the user, but before that, you need to configure your address through the smarty street which verifiesverifddress, in appSetting.json file you need to configure smarty street client ID. The listed Shipping address will show up when user saves the address in his profile. Or it will add new address.


    orderCloud-checkout-flow
    appSettinh.json (For Smarty Street)  
    
    { 
    
    Shape"SmartyStreetSettings:AuthID": "dd5fbd1a-7a24-63bf-0471-2253ce136705", 
    
    Shape"SmartyStreetSettings:AuthToken": "gKQSXP3oDnE7hSAzohmp", 
    
    Shape"SmartyStreetSettings:RefererHost": "https://localhost:5001", 
    
    Shape"SmartyStreetSettings:WebsiteKey": "120286491399670288", 
    
    } 
                            
  2. Verify the shipping address the next step we need to follow is shipping selection where you need to select shipping standards.


    orderCloud-checkout-flow

  3. 3rd step you need to follow is payment method where you can choose cash on delivery option and click on the accept button, in that you can also get the discounted amount on your product and total amount of product.


    orderCloud-checkout-flow

  4. After selection the payment method next step is to follow for order review where you can see your order, payment method, shipping address, and the policy for that order after clicking on the submit order your order will submit and generate the bill for that order.


    orderCloud-checkout-flow

  5. After submitting the order, it will generate the final bill detail or order summary where it needs to calculate the payment method again and it will return the amount also and calculate the discount and discount amount in final stage final checkout process. And billing generation API will call from the middleware.


    orderCloud-checkout-flow

This is how the checkout process works in Order Cloud.


YOU MAY ALSO LIKE