prestashop

Overlength date field error in prestashop

Saturday, December 12th, 2009 | Web development | No Comments

Recently I got this error when trying to send emails in prestashop.
An email was bouncing back and it contained the following message:
This message has been rejected because it has
an overlength date field which can be used
to subvert Microsoft mail programs

After a lot of headaches and a cofee :) I manage to detect what was wrong:
Presta uses in the email class a variable $templateVars
this was like:

$templateVars = array(
‘{date_facturare}’ =>
‘Nume Firma: ‘.$invoice->company.’<br>’.
‘Cod fiscal: ‘.$invoice->tax_code.’<br>’.
‘Registrul Comertului: ‘.$invoice->reg_data.’<br>’.
‘IBAN: ‘.$customer->iban.’<br>’,
‘CNP: ‘.$invoice->cnp.’<br>’,
‘{firstname}’ => $customer->firstname,
‘{lastname}’ => $customer->lastname, …

However the problem was because of a , instead of .
'IBAN: '.$customer->iban.'<br>',
should have been:
'IBAN: '.$customer->iban.'<br>'.

Because of the wrong “,”, $templateVars[0] was taking a long value and apparently Swift Mailer was appending it to the header date of the email hence the error with the overlength date field.

Tags: ,

Cardia payment module for prestashop

Saturday, October 25th, 2008 | E-commerce | No Comments

We offer affordable cardia payment modules for various shopping carts which includes the prestashop.
If you want to accept payments online on your prestashop open source shopping cart software simply contact us. We’ll call you back same business day in order to help you.

Cardia is an international payment gateway with markets in Scandinavia, Europe, Denmark that offers you the ability to accept online credit card payments, bank payments and others in a secure environment.

Cardia is now known as DIBS payment services – the leading Scandinavian Internet service provider. The company is the result of a merger in 2006 between DIBS A/S and DebiTech AB.

If you want to accept DIBS payments on your prestashop ecommerce website please feel free to contact us. We will work with you to find the best solution for your business.

Tags: , , ,