Search
×
Log in or create an account
If you have an account with us, please log in.

You have no items in your shopping cart.

Frequently Asked Questions

How can we help you?

banner image

Custom calculated value

See more details on Product Labels page
User Guide

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
Rate the answer?

Total rating: 5.0

If you didn’t find the answer on your question, please, ask here:

Back to top