Guest User

Untitled

a guest
Sep 25th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <action method="disableParamsMemorizing" />
  2.  
  3. public function getToolbarBlock()
  4. {
  5. if ($blockName = $this->getToolbarBlockName()) {
  6. if ($block = $this->getLayout()->getBlock($blockName)) {
  7. $block->disableParamsMemorizing();
  8. return $block;
  9. }
  10. }
  11. $block = $this->getLayout()->createBlock($this->_defaultToolbarBlock, microtime());
  12. $block->disableParamsMemorizing();
  13. return $block;
  14. }
  15.  
  16. Go to System->Configuration->Catalog->Frontend
  17. select from 'Product Listing Sort by'
  18.  
  19. appcodecoreMageCatalogBlockProductListToolbar.php
  20.  
  21. protected $_direction = 'asc';
  22.  
  23. protected $_direction = 'desc';
Add Comment
Please, Sign In to add comment