@ becktowery
you can get product name as op.products_name (this is actually in table "orders_products"), and date of purchase as o.date_purchased (this is actually in table "orders")
and in header_php.php:
- add these fields (op.products_name and o.date_purchased) to the sql query in line ~28-36
- to add the data to the string that makes up the temporary directory name:
in line ~213, where it says "$tempdir = zen_random_name($downloads->fiel...":
add $downloads->fields['products_name'] and $downloads->fields['date_purchased']
in line ~71, where it says "function zen_random_name($orders_produc...":
add variables passed to the function ("function zen_random_name($orders_products_id, $products_quantity, $products_price, $products_name, $date_purchased)")
in line ~77 $curOrder = $GET['order'] . "" . $orders_products_id . "" . $products_quantity . "" . round($products_price,2) . "" . $products_name . "" . $date_purchased;
before adding extracting the info into the actual pdf, just try to download the original pdf. this may not work now or look screwed up, because you messed around with the temporary directory name, and e.g. added strange characters with products_name, or date_purchsed, so you may want to make sure to change products name to something that is tolerated as part of a directory name, and maybe you also have to modify the format that date_purchased is passed.
anyway, once that is sorted, extract the info in gutsc431nForw.php (underneath line ~18 where it says "// identify order_id, products_price, etc. based on temp fold..." and add as GET variable to $curfileurl (line ~35)
finally, $_GET the new data in gutsc431n
as i said, the only bottleneck is the fact that you pass all data inside this temporary directory name, which may lead to problems if your data contains characters that are not allowed in directory names; furthermore, dompdf may be more choosy on the $curfileurl the we pass in gutsc431nForw.php (line ~37)
hope that is of some help!
G