Qhiliqq Posted December 9, 2017 Share Posted December 9, 2017 Hello, I want to know how I can sort the tlds alphabetically on cart.php?a=add&domain=register? My tbldomainpricing is in right order but you can see not on the cart page. Using standard_cart on WHMCS 7.3. Hope somebody knows a solution. Regards, Philipp Link to comment Share on other sites More sharing options...
brian! Posted December 9, 2017 Share Posted December 9, 2017 Hi Philipp, by default, WHMCS only shows the TLDs in the "Popular" category... however, your site is using a custom template and there are no categories shown (because you've remark'd out the code to show them).... it should look something along the lines of... if you edit your domainregister.tpl and change the code shown in the post below, then the pricing table should show all domains... hopefully in your preferred order! Link to comment Share on other sites More sharing options...
Qhiliqq Posted December 10, 2017 Author Share Posted December 10, 2017 Hi, yes I remarked them out, cause there are no categories shown... And the other thread doesn't help me. I'm using standard_cart, which is copied to a new cart (own cart) and I only have done some changes. As I said there aren't categories shown and I marked them out... Is there not a simple way to just sort the tlds from a to z? Link to comment Share on other sites More sharing options...
brian! Posted December 11, 2017 Share Posted December 11, 2017 On 12/9/2017 at 19:37, DAThosting said: My tbldomainpricing is in right order but you can see not on the cart page. the sort order in the client area is taken from the domainpricing page in the admin area - I think your TLDs are sorted in that order in the admin area... you could re-sort them manually in domain pricing. https://docs.whmcs.com/Domain_Pricing#Re-ordering_TLDs Quote Reordering TLDs is simply a drag & drop process Position your mouse over the up/down arrows on the row you want to move, click+hold and then drag up or down Once it is where you want it to be, let go of the mouse button to assign it. 19 hours ago, DAThosting said: Is there not a simple way to just sort the tlds from a to z? with the way WHMCS have created the array in the new matrix, there's no obviously simple way to do it now tht I can quickly see... the Smarty @sortby modifier solution no longer works... ksort might be an option but would need testing. frankly, unless someone else can see a simple way to do it (it could be done using more complicated methods), then manually sorting would be the simplest way. the upside to that is that you could group similar TLDs together... so if you did a simple a-z sort, .co.uk and .uk would be miles apart... if you sorted them manually, you could group the .uk TLDs together... now I know you aren't offering any 3rd level domains like .co.uk, but hopefully you get my point. Link to comment Share on other sites More sharing options...
Recommended Posts