Jump to content

Edit table orderV6


ricardo777

Recommended Posts

that's weird - my tables already show the newest email first.

 

you could try adding the following line to clientareaemails.tpl at line 2 (after the include on line 1) - that should force the sort to be newest -> oldest.

 

{assign var="sort" value="desc"}

 

 

I have tried the code you wrote, but nothing changed. I also cleaned cache and I was forgetting to mention that I use six template.

 

Without any modification on version 6.0.2

Link to comment
Share on other sites

I can't reproduce this locally, or on the WHMCS demo, using v6.0.2 - without seeing the site or your setup, the only thing I can suggest is to open a support ticket and let WHMCS take a look at your system.

 

Hello,

 

Thank you for the help.

 

I have checked the demo site and I can see the order is in right form there. Really strange will check some things out en maybe fire in a ticket hope they will not send me to a custom coder.

Link to comment
Share on other sites

I have checked the demo site and I can see the order is in right form there. Really strange will check some things out en maybe fire in a ticket hope they will not send me to a custom coder.

you could try installing v6 again - perhaps there's a missing/corrupt file somewhere that is not defining the sort order.

 

have you tried using another browser (just in case the current sort order is cached in the browser)?

 

also, add {debug} to the end of clientareaemails.tpl, refresh the page and it should generate a popup window of variables and arrays - what is the value for $sort ?

Link to comment
Share on other sites

  • 4 weeks later...

Hello,

 

Time ago, but I have resolved the issue.

 

Have compared the file of template>clientareaemails

 

there was a different of lines in the files this exactly:

 

<script type="text/javascript">

jQuery(document).ready( function ()

{

var table = $('#tableEmailsList').DataTable();

{if $orderby == 'date'}

table.order(0, '{$sort}');

{elseif $orderby == 'subject'}

table.order(1, '{$sort}');

{/if}

table.draw();

});

</script>

 

This was not before in the template file.

 

So that one fixed the order, maybe this helps someone else sometime.

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