Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if($_product->price==0): ?>
- <?php echo 'Price on request'; ?>
- <?php else: ?>
- <span class="price-yo">Price</span>
- <?php echo $this->getChildHtml('product_type_data') ?>
- <?php endif; ?>
- <?php if($_product->price==0): ?>
- <div class="price-req-list">Price on request</div>
- <?php else: ?>
- <div id="priceholder-list-upsell"><?php echo $this->getPriceHtml($_link, true, '-upsell') ?></div>
- <?php endif; ?>
- public function __get($var)
- {
- $var = $this->_underscore($var);
- return $this->getData($var);
- }
- public function getPrice()
- {
- if ($this->_calculatePrice || !$this->getData('price')) {
- return $this->getPriceModel()->getPrice($this);
- } else {
- return $this->getData('price');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement