Custom calculated value

Sometimes you need to show not just attribute, but sum of attributes (like total length or new price)

You can customize Product Labels extension to meet your needs, It's quite easy.

Please open file app\code\local\Amasty\Label\Model\Label.php, find lines

case 'PRICE':
  $value = strip_tags($store->convertPrice($this->_info['price'], true));
break;

and add lines like
case 'PRICE':
  $value = strip_tags($store->convertPrice($this->_info['price'], true));
break;
case 'MY_NEW_VALUE':
  $price2 = $p->getData('designtool_price');
  $price3 = $this->_info['price'];
  $value = strip_tags($store->convertPrice( $price2 + $price3, true));
break;


Then use {MY_NEW_VALUE} in admin

See more details on Product Labels page

User Guide

How can we help you?

Didn’t you find the answer to your question? We are always happy to help you out.

© 2009-2021 Amasty. All Rights Reserved.