Dynamic Two Step Checkout Configuration

b3tts32
Kilo Explorer

Hi Guys, I apologize if I've posted in the wrong place. I'm still getting used to the new forums.

 

We'd like to handle two step check out at the item level, but it only looks like it's configurable at the order guide level. I realize there's a property for this but that's all or nothing. We have roughly 200 procurements items that require two step check out to gather additional information before it's submitted and we've customized the servicecatalog_cart_template ui macro to grab this additional info. We're slowly starting to grow our Service Catalog for IT services and we'd like to bypass this page completely for non procurement items.

 

Has anyone else done this? Or can you think of a clever way to get around this? We've looked around to see where the glide.sc.checkout.twostep property is getting evaluated upon submission but can't seem to find it. Also in the cart_template macro there's a jvar_item_checkout variable that we've had no luck with. Any help or pointers woul dbe greatly appreciated. Thanks!

8 REPLIES 8

Bhavesh Jain1
Giga Guru

You will need to make changes in UI macro : servicecatalog_cart_template



Look for the property : 'glide.sc.checkout.twostep.back'



<j2:set var="jvar_show_back" value="$[gs.getProperty('glide.sc.checkout.twostep.back')]" />


          <j2:if test="$[jvar_show_back == 'true']">


          <j2:if test="$[sysparm_guide != 'true']">


          <a href="#" class="request_catalog_button" onclick="window.location='catalog_home.do?sysparm_view=catalog_default'; return false;">


              ${gs.getMessage('Back to Catalog');}


          </a>  


          </j2:if>




You will need to write few more conditions in the above macro.


Hmmm are you saying I should add a condition referencing glide.sc.checkout.twostep property in the above macro? I see no reference at all to that property in the macro which is what confuses me. I thought glide.sc.checkout.twostep.back only controlled going back if you had an order guide.


Hi,



I too am in need of this solution. I see the details described above but am not sure how to proceed. Has this been successfully implemented? if so can you share your solution.



Thanks


Bhavesh Jain1
Giga Guru

There are 2 ways you submit your order in Service catalog.


1. You click on Order now and your RITM gets created


2. Once you click on Order now you are taken to 2nd page where you click on Submit order



So the property which I mentioned helps you manage this steps.


Yes you can edit the macro to write your condition to control the checkout steps. This property has nothing to do with Order guide.