I do have a pdf template that is related to invoices, and i want that if some product prize is 0$, this prize doesnāt appear, so only appears the name of the product with no prize because itās zero.
How can I do that, maybe with some javascript in the html template?
Iām sorry to ask again, but in the templateParser.php file, where should i put the code āif (number==0){//Dont print anything}ā? Iām not familiar with php.
Field names are probably wrong, drop a breakpoint in a debugger to find the correct values for the name and value. total price would probably be in this format too:
if ($name === āfield_nameā && $value == ā0.00ā) { $value = āā; }
Iām really stuck on this, the fields that i want to āremoveā from the pdf, are, in the line items, the vats(service_vat_amt), total price(service_product_total_price) and price(service_product_list_price), I think these are the names of the variables, but Itās not working
Hey thanks, another question, does it matter where i put the code(at the end of the code, start, etc.)? I mean inside the foreach ($repl_arr as $name => $value).