Jump to content

Removing domain options completely?


Lucas

Recommended Posts

Is there a way to do this without getting into the template files? I would like to remove any kind of domain options you can see while on the order process. Such as in: secure.speedy5.com/order.php

 

"Order Domain Registration Only"

 

Choose a Package > "Domain Options" > Configure > Confirm Order > Checkout

 

Thank you!

Link to comment
Share on other sites

  • 1 month later...

Its actually quite simple to edit the templates. Just make 100% certain you make a backup of the WORKING one, BEFORE you edit it.

 

Once you make the required change(s) in the template(s) you really don't need to touch them again.

 

Cheers,

Paul

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

I've just been figuring this myself - really depends on how much you want to skip

 

e.g. in domainchecker.tpl

 

replace the line

 

<form method="post" action="{if $systemsslurl}{$systemsslurl}/{/if}order.php?order=domains">

 

with:

 

<form method="post" action="{if $systemsslurl}{$systemsslurl}/{/if}order.php?step=2&domainonly=true">

 

this will skip the next screen where you choose packages

 

as far as skipping more of these options - I'm sure more can be done but is not quite so simple... take a look at the code (templates) and work through the process to see what is required for each step

 

hope this is of some help

 

John

Link to comment
Share on other sites

Have figured out a bit of a workaround, Matt if you have a better way to do it please advise.

 

In domainchecker.tpl change the line mentioned above to

<form method="post" action="{if $systemsslurl}{$systemsslurl}/{/if}patchstep2.php">

 

Then create a new php file named patchstep2.php in the root directory and put the following:

<?
@session_start();
$_SESSION['frm_domaintype'] = 'register';
$_SESSION['frm_domainsearch'] = $_POST['domainsearch'];
$_SESSION['frm_domains'] = array();
foreach ($_POST['domains'] AS $Domain) {
	$_SESSION['frm_domains'][] = array('domain'=>$Domain);
}
$_SESSION['frm_fromdomainchecker'] = 1;
header("location: order.php?step=2&domainonly=true");
?>

 

Not particularly the best method, but it seems to work. You may also want to edit the order templates to remove the link to package options.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated