cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to limit browse catalog button on CPQ?

sbslmhmt
Participant
0 Likes
646

Hello,

We would like to user to add only one product. After adding one product we want to disable "Browse Catalog" button.

Any knows how to achive this?

Best regards.

Accepted Solutions (1)

Accepted Solutions (1)

MaxGag
Participant

Hello,

You can do logic in the responsive template Cart - Sections/CartActions to achieve this. You will have the items KO context available to do a logic and hide the button if there's a product.

Thanks

sbslmhmt
Participant
0 Likes

Hello maxgag2,

Thank you very much again for your answer. I am new to CPQ, is there any documents on responsive templates or KO context online to read that you can recommend?

Best regards.

MaxGag
Participant

Hello sbslmhmt,

Here's a website for reference. https://knockoutjs.com/

and CPQ help: https://help.sap.com/viewer/884885f05e6b4c8082254d4d9d63f19b/2108/en-US/a2431065dac24228920217a3a29a...

Unfortunately we don't have access to change the core Knockout code in CPQ but we can use the KO attributes available easily.

You need to install KO extension in your browser.

*** Note that chrome and Edge extension not working since last browser update, but should be fix in future***

Chrome/Edge: https://chrome.google.com/webstore/detail/knockoutjs-context-debugg/oddcpmchholgcjgjdnfjmildmlielhof

Firefox extension still work

FireFox: https://addons.mozilla.org/en-US/firefox/addon/knockoutjs-context/

I never tried the Safari extension, so I don't know if it's working.

Thanks

MaxGag
Participant

Hello sbslmhmt,

Also be aware that once you play with Responsive template, on each CPQ new release, you will need to validate if your change have been impacted and if SAP added new code in the template, you need to add it also in your custom template.

Thanks

sbslmhmt
Participant
0 Likes

Thank you very much maxgag2

Answers (0)