Guest User

Untitled

a guest
Jul 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public function getPriceHtml($product)
  2. {
  3. $this->setTemplate('catalog/product/price.phtml');
  4. $this->setProduct($product);
  5. return $this->toHtml();
  6. }
  7.  
  8. public function getPriceHtml($product)
  9. {
  10. $this->setTemplate('catalog/product/your_price.phtml');
  11. $this->setProduct($product);
  12. return $this->toHtml();
  13. }
  14.  
  15. $handles = $this->getLayout()->getUpdate()->getHandles();
  16. if (array_search('catalog_category_view', $handles)) {
  17. echo 'here you can do other things';
  18. }
Add Comment
Please, Sign In to add comment