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 01:33 PM
You can hide the row with jquery.
If its a service portal cart, you'll need to clone the widget, and target the input form fields which have a value of 0, then walk back to the parent html element, and hide the parent tr / div.
Its doable.
Its probably easier via base platform though (if you're not using SP), which you can run a client script/UI Policy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2017 12:02 AM
Two things if possible (unsure from a development standpoint, just from a design standpoint):
1. If you only want to allow 1 monitor to be ordered per Windows Desktop from a user choice, just create a choice list (could be backed by a lookup table for easy administration).
2. If users are allowed to pick multiple monitors, create a slush bucket type interface so they can add multiple items then add field validation (so someone cannot submit for 100 monitors).
The drawback I can probably see to both of these options is you may have to create advanced scripting to generate the cart items depending on user selection, but then you don't have to rely on UI tricks like hiding items with 0 quantity and ending up with extraneous records in the table.
(Or if you are feeling dangerous, go as far as to create a post submit action to delete cart items with 0 quantity, but no one likes scripted deletions, right?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2018 08:32 AM
Hi Tim,
Did you got a solution for this?
Thanks,
SD