I am trying to make a expiration date bar code. But i don't know if im using the right syntax and I cant find anything relating to what i'm doing..
Im adding 1 year to the have ready date of an item. The barcode gets made but doesnt contain any dates. even when I try to just display the variable on the html it shows up blank so its not setting the date.
Code
// Experation date code for case label bar code.
$oneYearFromNow = date("d/m/Y", strtotime + "365 days", strtotime($myOrd->hr_date));
$barcode = "<img src='case_tag_barcode.php?width=275&height=110&barcode=" . $oneYearFromNow . "'>";
$myItemTemplate->replace("expbarcode", $barcode);
$myItemTemplate->replace("expdate", $oneYearFromNow);
Any idea?