Jump to content
fssaaa

Ошибка при оформлении заказа

Recommended Posts

Fatal error: Uncaught Exception: Error: Duplicate entry '0' for key 'PRIMARY'<br />Error No: 1062<br />INSERT INTO `oc_order` SET invoice_prefix = 'INV-2013-00', store_id = '0', store_name = '####', store_url = 'http://localhost/malhniam/', customer_id = '0', customer_group_id = '1', firstname = '####', lastname = '####', email = '######', telephone = '#####', fax = '', custom_field = '[]', payment_firstname = '####', payment_lastname = '#####', payment_company = '', payment_address_1 = '#######', payment_address_2 = '', payment_city = '#####', payment_postcode = '#####', payment_country = 'Российская Федерация', payment_country_id = '176', payment_zone = '#####', payment_zone_id = '####', payment_address_format = '', payment_custom_field = '[]', payment_method = 'Оплата при получении', payment_code = 'cod', shipping_firstname = '####', shipp in C:\xampp\htdocs\malhniam\system\library\db\mysqli.php on line 40

Вот такая ошибка выскакивает при оформлении заказа ! заранее благодарю вас за помощь  

Share this post


Link to post
Share on other sites

Смотрите структуру oc_order. Ктото у вас удалил индекс для order_id или расширил его ещё на store_id / customer_id

Share this post


Link to post
Share on other sites
3 часа назад, fssaaa сказал:

Error: Duplicate entry '0' for key 'PRIMARY'

Посмотрите какой primary key у таблицы

SHOW CREATE TABLE `oc_order`;

 

Share this post


Link to post
Share on other sites
7 часов назад, LTRay сказал:

Смотрите структуру oc_order. Ктото у вас удалил индекс для order_id или расширил его ещё на store_id / customer_id

А можно по точнее, а то тупенький не множко ))):roll:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.