Jump to content

Filter Orders - Invalid Security Token Problem


Recommended Posts

Hi Guys

I am trying to filter out my orders from the AdminOrders page and when i enter the search criteria and press filter an error comes up "INVALID SECURITY TOKEN" and the url is like this /index.php?tab=AdminOrders#order .. I know the problem is that there is no token at the end of the URL but i tried playing around with AdminTab but to no avail.

Can you guys help me out here ?


Thanks

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...

The problem is in file classes\AdminTab.php

I used code from v.1.4. Bad code starts at 955 row.

you can replace whole block:

>        /* Determine total page number */
       $totalPages = ceil($this->_listTotal / Tools::getValue('pagination', (isset($cookie->{$this->table.'_pagination'}) ? $cookie->{$this->table.'_pagination'} : $this->_pagination[0])));
       if (!$totalPages) $totalPages = 1;

       echo 'table.'"> ';
       echo '<form method="post" action="'.$currentIndex;
       if (Tools::getIsset($this->table.'Orderby'))
           echo '&'.$this->table.'Orderby='.urlencode($this->_orderBy).'&'.$this->table.'Orderway='.urlencode(strtolower($this->_orderWay));
       echo '#'.$this->table.'" class="form">
       <input type="hidden" id="submitFilter'.$this->table.'" name="submitFilter'.$this->table.'" value="0">
</pre>
<table>
';
</t
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...