258c258
<   if (!(product_attributes_get($node, 'no_discounts'))) {
---
>   if (!(product_attributes_get($node, 'no_discount'))) {
265c265
<   if (!empty($total_only)) {
---
>   if ($total_only) {
266a267,269
>     if (empty($specials)) {
>       return $total;
>     }
