How can we add a Shopping Cart experience to the CSM Portal?

Kezza
Tera Expert

We have a requirement to allow customers to add multiple items to one request, aka a shopping cart.
For some reason, this is not supported in the CSM portal, as mentioned here in the doco:
https://docs.servicenow.com/bundle/orlando-customer-service-management/page/product/customer-service...
"Note: The Add to Cart button is not currently supported on the Customer Service Portal or the Consumer Service Portal."

Has anyone else tried to implement this or found a way around it?

1 ACCEPTED SOLUTION

Kezza
Tera Expert

For anyone else wanting an answer this, here's the steps to enable shopping cart on the CSM portal.



1. Edit the ‘CSM SC Catalog Item’ widget.

Change the Server Script from

properties.show_add_cart_button = "false";

to

properties.show_add_cart_button = "true";

 

2. Ensure page 'sc_cart' is using the V2 version of the SC Shopping Cart widget, not the deprecated one.

3. CSM Header Menu - Set the additional Options 'enable_cart' to true.

4. Create ACLs for sc_cart and sc_cart_item for the role snc_external (copy the snc_internal ACLs).

5. Add roles to widget and Portal page. 
Widget: SC Shopping Cart - Add snc_external and snc_internal roles.
Page: sc_cart - Add snc_external and snc_internal roles.

6. Update the re-directing to the CSM Ticket page instead of sc_request page.
This is hard-coded in the Shopping Cart widget. You can either clone the Shopping Cart widget and modify or go down the route I did which is make a new widget that checks if the Request is a child of a case, and if so it redirects to the Case record on the CSM Ticket page.
Add this new widget onto the Request page.
Widget:

find_real_file.png

 

Happy CSM Shopping!

View solution in original post

8 REPLIES 8

Hi Vishakha

Please keep in mind this is for Customer Service Portal. That solution you posted is the one that is unavailable hence my reason for this post.
Cheers

Kezza
Tera Expert

For anyone else wanting an answer this, here's the steps to enable shopping cart on the CSM portal.



1. Edit the ‘CSM SC Catalog Item’ widget.

Change the Server Script from

properties.show_add_cart_button = "false";

to

properties.show_add_cart_button = "true";

 

2. Ensure page 'sc_cart' is using the V2 version of the SC Shopping Cart widget, not the deprecated one.

3. CSM Header Menu - Set the additional Options 'enable_cart' to true.

4. Create ACLs for sc_cart and sc_cart_item for the role snc_external (copy the snc_internal ACLs).

5. Add roles to widget and Portal page. 
Widget: SC Shopping Cart - Add snc_external and snc_internal roles.
Page: sc_cart - Add snc_external and snc_internal roles.

6. Update the re-directing to the CSM Ticket page instead of sc_request page.
This is hard-coded in the Shopping Cart widget. You can either clone the Shopping Cart widget and modify or go down the route I did which is make a new widget that checks if the Request is a child of a case, and if so it redirects to the Case record on the CSM Ticket page.
Add this new widget onto the Request page.
Widget:

find_real_file.png

 

Happy CSM Shopping!

Hi Kezza,

I created the redirect widget and added it to the request page but it doesn't seem to work.

 

Daymond Krueger
Tera Contributor

I'm needing to be able to use this with a record producer that creates a Case record, but the "add to cart" only shows up on the CSM portal with catalog items which go to a request/ritm.  Have you been able to get it to work for this as well, and if so, what additional steps were required?