Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <?php if($_product->price==0): ?>
  2. <?php echo 'Price on request'; ?>
  3. <?php else: ?>
  4. <span class="price-yo">Price</span>
  5. <?php echo $this->getChildHtml('product_type_data') ?>
  6. <?php endif; ?>
  7.  
  8. <?php if($_product->price==0): ?>
  9. <div class="price-req-list">Price on request</div>
  10. <?php else: ?>
  11. <div id="priceholder-list-upsell"><?php echo $this->getPriceHtml($_link, true, '-upsell') ?></div>
  12. <?php endif; ?>
  13.  
  14. public function __get($var)
  15. {
  16. $var = $this->_underscore($var);
  17. return $this->getData($var);
  18. }
  19.  
  20. public function getPrice()
  21. {
  22. if ($this->_calculatePrice || !$this->getData('price')) {
  23. return $this->getPriceModel()->getPrice($this);
  24. } else {
  25. return $this->getData('price');
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement