generete_pdf_order.php HELP - challenge for code brains

19.10.2014 16:34
#1
jacobsen
Joomshopping forum user no avatar
Name: john
15.02.2011
Posts: 288
Quote
generete_pdf_order.php HELP - challenge for code brains

Hi I have a small problem can anybody help me.
I have a customers that has another payment terms.

I have this code:: I used in the generete_pdf_order.php
$date = substr($order->order_date,6,4).'-'.substr($order->order_date,3,2)."-".substr($order->order_date,0,2);
$dateend = date('d.m.Y',strtotime($date)+30*86400);
$pdf->MultiCell(80,3,_JSHOP_LAST_DATE_OF_PAYMENT. " " . $dateend,0,'R'); t

But I will like this to work:(different for user_id="132")
if ($order->user_id="132")
{
$date = substr($order->invoice_date,6,4).'-'.substr($order->invoice_date,3,2)."-".substr($order->invoice_date,0,2);
$dateend = date('d.m.Y',strtotime($date)+14*86400);
$pdf->MultiCell(80,3,_JSHOP_LAST_DATE_OF_PAYMENT. " " . $dateend,0,'R');
}
else{
$date = substr($order->order_date,6,4).'-'.substr($order->order_date,3,2)."-".substr($order->order_date,0,2); // disse insat
$dateend = date('d.m.Y',strtotime($date)+30*86400); // disse insat
$pdf->MultiCell(80,3,_JSHOP_LAST_DATE_OF_PAYMENT. " " . $dateend,0,'R');
}

Can anybody help me.. What do I do wrong...

Kind regards
Jacobsen

 
Copyrights MAXXmarketing GmbH. All Rights Reserved