[Portal] 'Order Now' button that ignores the current cart items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 05:14 AM - edited 09-20-2023 05:15 AM
Hello all,
I have a service portal with a catalog, cart enabled. All Catalog Items go through a custom Order Guide widget.
In such catalog, there are items that can be added to the cart, and some specific ones that have it disabled (No Cart field = true).
Despite that, if there's a scenario where I have items in the cart and, before checking out, I order an 'Order Now' item, the action taken will put into a single request this item + all the items in the cart.
What is expected is that, even if there are items in the cart, I can order one of the 'Order Now' items by itself (this is a requisite, that this specific items must be alone in the REQ, without more RITMs).
For the 'Order Now' button in the custom widget, we are stablishing a condition to detect if the item selected has the cart disabled, and if it's true, we use sn_sc.CartJS().orderNow() , but this only skips the cart step and if there are items in the cart it will insert them too into the request.
Any guidance?
Thanks,
Javier