- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2017 06:41 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2017 06:24 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2017 06:21 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2017 11:54 AM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 09:58 AM
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:
Template pointing at your widget: