remove item from order guide checkout if quantity is 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 10:32 AM
I am playing with an order guide for hardware purchasing. Our company does not do system bundles, but I want to try to make the purchasing process a little more interactive by using the order guide instead of having users just pick stuff at random out of the service catalog. An example of what I have built is:
If the user selects item "Windows Desktop" they are presented with our one standard desktop, however they are shown three different monitors to choose from.
The monitor options all show on different tabs. I have each item set at a default quantity of '0'. What I would like is to have the user go to the monitor they want, update the quantity (to 1 or 2), then at checkout ONLY have the one monitor they chose show up on the order and not all of the monitors.
How would I go about suppressing items that have a quantity of '0'?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 10:34 AM
Why not default the qunatity to 1. Remove 0 from the qunatity list.
THe quantity is based on the quantity field in sc_cart_item table. if you remove 0 from their, it should remove option 0 from your cart as well.
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 10:43 AM
You can add catalog client script on your catalog item to ask user to add quanity greater than 0.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 01:02 PM
Maybe I didn't explain this well enough.
So Item A and B tabs are both showing but the user is going to be ordering A or B, not both. So if the user orders item A I don't want item B to show up at all when they check out since the quantity is zero.
As an aside, I see that even if I have the items default to a quantity of 0, if I click their tab, then click a different item tab, then go back (A to B then back to A) the first item will now show a quantity of 1 instead of 0. Even if I change it back to 0 as soon as I leave that tab it defaults back to 1. I'm guessing this may be a UI OnChange script someplace that I need to change.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 01:14 PM
Hi Tim,
You shouldn't even give user option to select both the items on the first page, if they should just be able to order one.
On the oder guide form itself, hide option A if option B is selected and vice versa.
Please mark this response as correct or helpful if it assisted you with your question.