opencart error when trying to pay with paypal

This time opencart makes problem with paypal and when u try to enter your name in non english like arabic or hebrew u get this error

“You have entered unsupported characters for this field. Current available language character types are: European, Chinese, Korean, Japanese, and Thai. Please try again.”

well the problem is with the invoice number sent from opencart to paypal

which includes number – first name – last name

so all u need to do is delete the first and last name and all will be ok

this is how u do it

go to : catalog > controller > payment > pp_standard.php

on line 82 u have this

$this->data['invoice'] = $this->session->data['order_id'] . ' - ' . html_entity_decode($order_info['payment_firstname'], ENT_QUOTES, 'UTF-8') . ' ' . html_entity_decode($order_info['payment_lastname'], ENT_QUOTES, 'UTF-8');

Just replace wuth this


$this->data['invoice'] = $this->session->data['order_id'];

and we done!

/*****************************************************************************/
Arabic Answer

المشكله في رقم الفاتورة المرسل للبي بال
حيث أنه يضم رقم – الاسم الاول – الاسم الاخير

وبمجرد الغاء الاسم الاول والاسم الاخير وارسال رقم الفاتورة فقط فسيتم قبولها من البي بال

الطريقة هي كالتالي:

– اذهب الى:
catalog > controller > payment > pp_standard.php

– السطر 82
ربما يكون مختلف السطر لديك حسب الثيم انما هو يحتوي مايلي:


$this->data['invoice'] = $this->session->data['order_id'] . ' - ' . html_entity_decode($order_info['payment_firstname'], ENT_QUOTES, 'UTF-8') . ' ' . html_entity_decode($order_info['payment_lastname'], ENT_QUOTES, 'UTF-8');

قم باستبادله بمايلي:


$this->data['invoice'] = $this->session->data['order_id'];

Advertisements

Leave a Reply :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s