- Off Line Credit card by By Kevin (http://Ox40.us/).
- Showparcels: By Mend's (master_odlanier@hotmail.com).
- Tested with 1.2.3 and 1.2.4 PS versions.
- I have made a lot of changes in order to make both modules working like only one, and I think I did it.
Please tell me what do you think about it.
Tip: If nothing is filled in the showparcels fields, it works like the original CreditCard module, but with several and deep changes.
Update: Solved a hack attempt issue.
To prevent problems with the totals in PDF Invoice.
After line 491, in classes/PDF.php, search for:
if (!self::$orderSlip OR (self::$orderSlip AND self::$orderSlip->shipping_cost))
{
$pdf->Cell($width, 0, self::l('Total with Tax').' : ', 0, 0, 'R');
$pdf->Cell(0, 0, self::convertSign(Tools::displayPrice((self::$orderSlip ? ($totalProductsTi + self::$order->total_discounts + self::$order->total_shipping) : self::$order->total_paid), self::$currency, true, false)), 0, 0, 'R');
$pdf->Ln(4);
}
And replace:
if (!self::$orderSlip OR (self::$orderSlip AND self::$orderSlip->shipping_cost))
{
if(self::$order->module == 'creditcard')
$pdf->Cell($width, 0, self::l('Total with Tax and/or CreditCard Surchage').' : ', 0, 0, 'R');
else
$pdf->Cell($width, 0, self::l('Total with Tax').' : ', 0, 0, 'R');
$pdf->Cell(0, 0, self::convertSign(Tools::displayPrice((self::$orderSlip ? ($totalProductsTi + self::$order->total_discounts + self::$order->total_shipping) : self::$order->total_paid), self::$currency, true, false)), 0, 0, 'R');
$pdf->Ln(4);
}
It allow to show a different message if is a credicard order.






Back to top










