Construct a URL link to a pre-populated catalog item

narendrad
Kilo Contributor

Hello Everyone

Could anyone please suggest a best way to achieve this?

I need to construct/create a URL to a catalog item and when user clicks on that link, it should display the shopping cart with all mandatory details pre populated with a submit button. User should be able to just review the data on shopping cart and just submit it.

3 REPLIES 3

sudharsanv36
Kilo Guru

Hey Narendra,



        Yes it is possible.


     


        Just copy the existing URL of the catalog item and add this at the end of URL: '&sysparm_<any_text>=<any_value>'. When you click on this hyperlink, you will be redirected to the same catalog item with the updated URL.


     


        Based on the parameter value you are passing over the URL, create a onLoad script that will automatically fill all your form values.



        All you need to do now is, just submit the form.


Hi Sudharsan



Thanks for your response. I have a scenario where I need to order 2 items with different params on same catalog. Is this possible to display the 2 items in shopping cart with all required values filled and a submit button?


I am not sure whether it is possible or not. But it is possible if you are looking for 1 item at a time.