Hi all,
How i can sum some fields in the row to the special column in CCv4?
How i can sum some fields in the row to the special column in CCv4?
HI.
I've done some calculations in CCv4 but not in the column. The calculations are made in a table right under the mail listing.
I've got a column with k1 value.
In the header I've got
In the body section:
And the footer section:
An excerpt from the table:
I've done some calculations in CCv4 but not in the column. The calculations are made in a table right under the mail listing.
I've got a column with k1 value.
In the header I've got
<?php
global $total_k1;
$total_k1 = 0;
?>
<?php
global $total_total;
$total_total = 0;
?>
In the body section:
<?php
global $total_k1;
$total_k1 += $row['k1'];
?>
And the footer section:
An excerpt from the table:
<td>
Sum of K1: <input id="razemk1" type="text" size="12" maxlength="12" name="razemk1" value="<?php global $total_k1;
echo "$total_k1";
?>">
</td>
thx, but isnt my case :]
No problem homeopat.
I thought that this could be useful (at least the code)😉
I thought that this could be useful (at least the code)😉
I use autolisting in CC so I need add one column where will by sum of columns in every row.
Can anybody help me?
I tried put some code in custome code (CCv4) and it doesnt work with
or
it doesnt show data from db.
I tried put some code in custome code (CCv4) and it doesnt work with
$form->data['column_name'];
or
$row['column_name']
it doesnt show data from db.
U had right.
in php functions:
in php functions:
model.column: $sum=$row['model']['column']+$row['model']['column']; return $sum;
This topic is locked and no more replies can be posted.