Populate Requested For from the Variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 05:38 AM
Hello Experts,
I have a requirement to populate the "Requested for" field on the shopping cart page from the catalog item "Requester" Variable.
OOB Requested For populates the value of login user but on checkout page I want to populate this value from the requester variable of the catalog item.
In the attached screenshot I am requesting for a catalog Item "Document Creation" which has a variable Requester and value is XYZ, so I want to populate same value in the Requested For field on this shopping cart page.
Any Suggestions ?
Regards,
Uzzawal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 06:07 AM
Hi Uzzwal,
If you are anyway updating the value of the Requested for field with the value in the Requester field, why not just update the value in the Requested for field while creating the request and filling in the form.
The field might be auto-populated with the logged in user due to a Reference qualifier but you can always update the value in the field and in this way avoid creating other fields used basically for the same purpose.
Regards
Supriya Bisht
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 06:14 AM
Hey, I am not sure if you understand the requirement correctly, We are not creating any new field, basically we have a variable Requester on the catalog item so that I can request on behalf of someone and when I click on order button it takes me to the shopping cart page where I have Requested For field which is auto populated with the logged in user. I want this field to be populate the value from the variable so that user can just fill on the catalog item and it should carry foreword to the checkout page as well. Hope this clarifies the requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 06:26 AM
Maybe you can also refer to this post Set Requested For in Shopping Cart .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 06:46 AM
Thanks, but this is coming from UI action on the incident, I want this from the variable on the catalog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2017 10:42 AM
Hello Uzzawal,
Once the user moves through the process of ordering an item, each step is being recorded and is documented even before the order is finalized . Following is the flow chart. Glide through the following and it should help.
sc_cart -> sc_cart_item -> sc_item_option
sc_cart is related to sc_cart_item through "cart"
sc_cart_item is related to sc_item_options through "cart item"
In the sc_item_options table we can see all the variables that are there with the catalog item being ordered. The data entered in them can be fetched through the "value" field present in the table mentioned.
Please hit correct/helpful based on impact.
Regards,
Dhruv Chandan