Calculation within PDF Makerinfo@its4you.sk
Last week our support team has a specific requirement for PDF Maker extension. Our customer need a specific calculation in Productblock table. He needs multiply two columns and summary it. He needs show a Purchaseprice in PDF export and show the sum of all Purchaseprices. Here is a small description how to make this. Meaby this can help someof our PDF Maker users.
There is also Video which shows how to calculate in PDF Maker, but there is only sum function.
So in this case, if we need multiply two columns and summary it, we need a start (before Productblock) with definition of variables and give them default value 0
In next step we will calculate purchaseprice_product variable as $PRODUCTQUANTITY$ * $PRODUCTS_CF_751$. Put this code inside Productblock
Then we will sum this calculated value. Put this code inside Productblock
The last step is to show our calculated value in Productbock. Put this code inside Productblock
The total calculated price must be put after Productblock. Put this code outside Productblock
We hope this acrticle can help to understand how calculation in PDF Maker works.
Your IT-Solutions4You Support Team