Title: Arithmetic operation in custom field code
Last modified: January 13, 2022

---

# Arithmetic operation in custom field code

 *  Resolved [leborgne](https://wordpress.org/support/users/leborgne/)
 * (@leborgne)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/arithmetic-operation-in-custom-field-code/)
 * Hi, does anyone has an idea on how to make an arithmetic operation between 2 
   variables in the custom field code section ?
    Example : The wizard generates 
   the following code for grabbing the subtotal : return (new CSimpleField(‘table’,’
   data’,’subtotal’,null,null))->GetHtml();
 * What if I want to add another variable to that ?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/arithmetic-operation-in-custom-field-code/#post-15274887)
 * Hello!
 * I thing you created a support ticket for this which was already solved so i am
   going to close this thread. If i am wrong please let me know!

Viewing 1 replies (of 1 total)

The topic ‘Arithmetic operation in custom field code’ is closed to new replies.

 * ![](https://ps.w.org/woo-pdf-invoice-builder/assets/icon-256x256.gif?rev=3517675)
 * [PDF Builder for WooCommerce. Create invoices,packing slips and more](https://wordpress.org/plugins/woo-pdf-invoice-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-pdf-invoice-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-pdf-invoice-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-pdf-invoice-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-pdf-invoice-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-pdf-invoice-builder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/arithmetic-operation-in-custom-field-code/#post-15274887)
 * Status: resolved