Customise shopping cart Check Out screen in Service Portal

gaurip
Mega Expert

Hello everyone,

I'm wondering how to rename existing fields and also how to add a new field 'Billing Details' to Cart Check Out screen in a Service Portal.

I tried to explore a bit but looks like is no easy way to achieve this as this is interdependent on a lot of UI Macros, Script Includes, Widgets etc.

Is there an easy to achieve this? Please help!

-Gauri

find_real_file.png

1 ACCEPTED SOLUTION

Abhishek Raj3
Tera Guru

Hi Gauri ,



For renaming the field you have to go to SC Shopping Cart widget.



In that widget you can see Angular ng- template .



In angular ng-template   you can see:


large_shopping_cart.html


small_shopping_cart.html



In this two html you can   change your content and you would be able to get your desired result.



KIndly let me know in case of any concern.



Thanks & regards,


Abhishek



Note: Please mark this post as correct,helpful or like if purposed solution meet your expectation.


View solution in original post

7 REPLIES 7

Hi Abhishek,



As you know, I have changed the template to add two new fields. Added two new field in the sc_request table.



In order to set the billing address and PO Number, I figured out that I will have to do the corresponding changes to Server script and the Controller in SPCart widget. Then also need to define corresponding functions to SPCart Script Include. Below is the out of the box SetDeliveryAddress() function in SPCart Script Include which I'm trying to understand as I had to write similar functions.



Line 1.       SPCart.prototype.setDeliveryAddress = function(deliveryAddress) {


Line 2.                 var cart = GlideappCart.getCartForRhino(this.cartName, this.userID);


Line 3.                 cart.setDeliveryAddress(deliveryAddress);


Line 4.         };




Question 1. Not sure where this function exists cart.setBillingAddress(billingAddress)   (see line no 3 above)



Question 2. I'm getting Billing Address value till SPCart script include but not able to map it to the backend sc_request field.



Can you please guide?



-Gauri


dennismohr
Tera Contributor

It doesn't seem to matter which template I select for the Shopping Cart--it always displays the same result. Even if I create a blank template or one with just a single <div>, it still displays the default cart and ignore the template I select in the widget options...


I had the same issue, I could never get the widget option in the SP designer to work and ended up opening the record in the platform and updating the additional options there...   Do you have the widget instance pointing at the template and the template pointing at the widget?  



Widget instance pointing at your template:


find_real_file.png


Template pointing at your widget:


find_real_file.png