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).