Question
I want the customer to be asked for confirmation when clicking the button in CCP (e.g. "Cancel the subscription"). How to do it?
Answer
Follow the general steps described in the documentation (identify the xml name, prepare the container if required, create a customization file with a proper file):
Identify the button name and add a confirmation window to it by adding
confirmation="text?"
- Restart www
Example
Task: it is required to add a confirmation window on clicking "Cancel Subscription" in the CCP (Home> Account > Subscription Management > Subscription Name)
Solution:
- Identify the screen name - Subscription_GetMyWin.xml
Prepare a container
a) Make sure the directory /usr/local/bm/conf/wnd/BM/customization/customization is a symlink to /usr/local/bm/customization:
# ls -ld /usr/local/bm/conf/wnd/BM/customization/customization /usr/local/bm/conf/wnd/BM/customization/customization -> /usr/local/bm/customization
b) If not, configure it as described in Preparing Container chapter.
Create a file
/usr/local/bm/customization/Subscription_GetMyWin.xml
with the content:<window id="Subscription_GetMyWin"> <elements> <button id="cancelSubscr" confirmation="Do you really want to cancel the subscription?" /> </elements> </window>
Restart www:
/etc/init.d/www restart
Result: additional dialog will be displayed on button "Cancel Subscription" button click, the customer will have to confirm the action by clicking "Ok".