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

  1. 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):

    http://download.pa.parallels.com/pba/5.5/doc/toc5860118.htm

  2. Identify the button name and add a confirmation window to it by adding

    confirmation="text?"
    
  3. 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:

  1. Identify the screen name - Subscription_GetMyWin.xml
  2. 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.

  3. 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>
    
  4. 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".

Internal content