Jump to content

Needing Help with domainchecker.php page


Recommended Posts

Need some help to customize the domainchecker.php (now redirected to cart.php) page. I setup a new page here:

https://www.webhostinginwinnipeg.ca/manage/cart.php?a=add&domain=register

 

want to edit a few things on the page and wondering if and if so, where I can edit.

 

Firstly, the "Register Domain" sub-title and the sentence right below "Find your new domain name. Enter your name or keywords below to check availability." I would like to change the words for these 2 areas.

 

Also, I have 2 currencies setup, USD and CAD, I would like the CAD to display as the default when the page is loaded for the first time, can this be done, and where?

 

Lastly, the Add Web Hosting box near the footer, can I edit the button both the text within the button and the link so it links to a specific page? If so, where?

 

Any help here will greatly appreciated on this

 

Cheers!

Link to comment
Share on other sites

Firstly, the "Register Domain" sub-title and the sentence right below "Find your new domain name. Enter your name or keywords below to check availability." I would like to change the words for these 2 areas.

use Language Overrides to change the text - don't edit the original language files.

$_LANG['registerdomain'] = "Register Domain";
$_LANG['registerdomaindesc'] = "Type in the domain you wish to register below to check for availability.";
$_LANG['orderForm']['findNewDomain'] = "Find your new domain name. Enter your name or keywords below to check availability.";

 

Also, I have 2 currencies setup, USD and CAD, I would like the CAD to display as the default when the page is loaded for the first time, can this be done, and where?

a tricky one this - as WHMCS likes to use the default currency, which for you is USD... at the most basic level, you could add ?currency=2 to your links, but ultimately you might need to use action hooks to do this.

 

Lastly, the Add Web Hosting box near the footer, can I edit the button both the text within the button and the link so it links to a specific page? If so, where?

as before, for the text use Language Overrides - for the link, edit the domainregister.tpl template.

Link to comment
Share on other sites

thank you for your help I got some of the notes complete, where can I find the domainregister.tpl file? Is it in the following directory: templates/orderforms/standard_cart ??

yes - if you're using standard_cart - which you are.

 

Also, how can I use an action hook for the currency, the ?currency=2 did not work?

the link change should work, e.g...

 

default currency -> https://www.webhostinginwinnipeg.ca/manage/cart.php

Canadian Dollars -> https://www.webhostinginwinnipeg.ca/manage/cart.php?currency=2

 

default currency -> https://www.webhostinginwinnipeg.ca/manage/cart.php?a=add&domain=register

Canadian Dollars -> https://www.webhostinginwinnipeg.ca/manage/cart.php?a=add&domain=register&currency=2

 

the fact that you've removed the navbar from your template means that there are a lot less links for you to manage and therefore changing your links, including direct product links (when you add products) is not as bad for you as it would be for others... yes, some of the sidebar links would need to use a hook to change them, but if you can convince yourself you can change currency in the links, then that's an easy step.

 

once set by a currency change in the URL, that currency will continue to be used throughout the site until it is changed... and it's always worth remembering that logged in users (e.g existing customers) cannot change their currency (certainly after they've made an order) - so if they buy in USD today, they'll always buy in USD, and not CAD, in the future.

 

if you haven't received any orders yet, i'd seriously consider changing your currencies, in the admin area, so that CAD is default, and USD is secondary - that would resolve the cart situation immediately without the need for link, template or hook changes - granted, you'd have to re-enter/modify the domain pricing, but you've only added 13 TLDs so far and no products... so if you can do this, then now would be the time... because if you have had orders, then this isn't really a viable option.

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