webhostingwinnipeg Posted June 14, 2017 Share Posted June 14, 2017 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! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 14, 2017 Share Posted June 14, 2017 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. 0 Quote Link to comment Share on other sites More sharing options...
webhostingwinnipeg Posted June 14, 2017 Author Share Posted June 14, 2017 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 ?? Also, how can I use an action hook for the currency, the ?currency=2 did not work? Thank you again and I hope you can help 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 15, 2017 Share Posted June 15, 2017 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¤cy=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. 0 Quote Link to comment Share on other sites More sharing options...
webhostingwinnipeg Posted June 15, 2017 Author Share Posted June 15, 2017 Thank you Brian, you have been a big help! Truly appreciate it, works like a charm, I will apply that to the website. Take care for now 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.