How to pass a custom field value in Catalog Checkout(sc-checkout) widget into the corresponding request.?

Amritha1
Tera Guru

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. 

find_real_file.png

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

10 REPLIES 10

record.addQuery('sys_id', 'request.request_id');

 

You don't need quotes around "request.request_id" because "request" is a javascript object.

Tried that too.. but no luck!!

Try logging a hasNext() after you query (but before you're "next()" call) and maybe logging the request object as well.

Raphael Dizon1
Giga Guru

Hi,

Has this been solved? I have a similar requirement as well.

Thanks

Hello @Amritha1 were you able to solve this issue, I have a similar business need and am looking for the solution.