How to pass a custom field value in Catalog Checkout(sc-checkout) widget into the corresponding request.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2020 04:57 AM
Hi Community,
I want to pass a custom field value while checking out my cart. That value should be saved in my request in the sc_request table.
I have already copied the catalog checkout (sc_checkout) widget. As seen in the screenshot below, I added an additional field to the widget (Manager), and also added a field to request table in which the value from the widet will be stored.
How do I map the manager field from widget to my request table? I would want it to work in the same was as the "delivery Information" and "Special Instructions" is mapped to the request.
Widget: Catalog checkout (sc_checkout)
Thanks,
Amritha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2020 08:59 AM
record.addQuery('sys_id', 'request.request_id');
You don't need quotes around "request.request_id" because "request" is a javascript object.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2020 09:40 AM
Tried that too.. but no luck!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2020 09:54 AM
Try logging a hasNext() after you query (but before you're "next()" call) and maybe logging the request object as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2021 07:05 AM
Hi,
Has this been solved? I have a similar requirement as well.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 08:01 AM
Hello @Amritha1 were you able to solve this issue, I have a similar business need and am looking for the solution.