Product:
Search Type:

How can I remove 'Request Subscription Termination' option in Control Panel?

Article ID: 2282 
Last Review: Oct,23 2007
APPLIES TO:
  • HSPcomplete 3.3.x

SYMPTOMS

There is no setting in HSPcomplete 3.3.2 (or earlier) which allows to disable subscription termination request option in Control Panel. Such setting will be added in HSPcomplete 3.3.3.

RESOLUTION

In HSPcomplete 3.3.2 we can remove this option using screen based customization.

Create module /var/opt/hspc-root/custom/screen/01_04_18_14.pm
with the following code:

#####################
package HSPC::Custom::Screen::01_04_18_14;

use strict;
use HSPC::Custom::Screen;

sub customize
{
        my ($stream) = @_;

        $stream =~
s#<a href="/cp/index.cgi/subscription/general/request_subscr_termination.*?</a>##g;
       
        return $stream;
}

1;

#################


Restart hspcd:

service hspcd restart


Link 'Request Subscription Termination' will be removed from the screen.

Also, edit screen tips on screen 01.04.18.14.01 in Control Panel. You can edit tips
by clicking on question mark icon in screen tips green box. This icon presents
on the screen if you login to Control Panel from Provider's Control Center, using button 'Login to CP'.


Keywords: hspc subscription termination request

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields