Jump to content

What file outputs 'I will use my existing domain and update my nameservers'


jeffuk

Recommended Posts

2 hours ago, jeffuk said:

What file outputs 'I will use my existing domain and update my nameservers'? I want to change the order these options are displayed in.

it's configureproductdomain.tpl and you will just need to adjust the order of the {if} statements... the thread below deals with the Modern template, but the principle remains true for standard_cart too.

depending on your sort order, you may also need a ClientAreaPageCart hook to set the value of $domainoption to your default choice to open - i've posted that hook previously, but if the wrong option is opening by default for you after the change, you can use the following hook to change it.

<?php

# Configure Default Domain Option in Configureproductdomain Hook
# Written by brian!

add_hook("ClientAreaPageCart",1,function($vars){

	if ($vars['templatefile']=="configureproductdomain") {
		return array("domainoption" => "transfer");
	}
});

e.g the above hook would make the transfer option open by default for all products... obviously, you could expand the hook to default to different options for different products, and i've posted on that previously.

Link to comment
Share on other sites

30 minutes ago, brian! said:

it's configureproductdomain.tpl and you will just need to adjust the order of the {if} statements... thethread below deals with the Modern template, but the principle remains true for standard_cart too.

depending on your sort order, you may also need a ClientAreaPageCart hook to set the value of $domainoption to your default choice to open - i've posted that hook previously, but if the wrong option is opening by default for you after the change, you can use the following hook to change it.


<?php

# Configure Default Domain Option in Configureproductdomain Hook
# Written by brian!

add_hook("ClientAreaPageCart",1,function($vars){

	if ($vars['templatefile']=="configureproductdomain") {
		return array("domainoption" => "transfer");
	}
});

e.g the above hook would make the transfer option open by default for all products... obviously, you could expand the hook to default to different options for different products, and i've posted on that previously.

Sorted. Thanks again.

Link to comment
Share on other sites

  • 3 years later...

hi WHMCS team,

I want to know, in which file I have to add hock code.

 

<?php

# Configure Default Domain Option in Configureproductdomain Hook
# Written by brian!

add_hook("ClientAreaPageCart",1,function($vars){

	if ($vars['templatefile']=="configureproductdomain") {
		return array("domainoption" => "transfer");
	}
});
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