Magento PHP Bugfixing/Magento expert needed

I developend an Action, which is called via AJAX to create an user (if not existing) and finishing his order.

This basically works great, for the first time. If i want to do another purchase within the same session, it fails.

at this point


SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`databasname/sales_flat_quote_payment`, CONSTRAINT `FK_SALES_QUOTE_PAYMENT_SALES_QUOTE` FOREIGN KEY (`quote_id`) REFERENCES `sales_flat_quote` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE)

Please see code attached.

Looking for someone helping me out to fix this, payment will be only done when your bugfix/solution is really working. Please do only bid, if you have Magento coding experience (not themes only!!!)

Skills: Magento, PHP, Zend

See more: session php, constraint `fk_sales_quote_payment_sales_quote`, key coding, Magento PHP, magento ajax, bugfix, order working magento, ajax php update, 1452, integrity constraint violation 1452 add update add, magento 1452, add foreign key constraint, add update child row foreign, magento add update child row foreign key, integrity constraint violation 23000, magento checkout method, foreign key, magento integrity constraint violation 1452 add update child, integrity constraint violation update, create order magento, php action, action php, add update child row foreign magento, integrity constraint violation 1452 add update child row, 1452 foreign key constraint

About the Employer:
( 19 reviews ) Munich, Germany

Project ID: #1264871

Awarded to:


Please check PM

$50 USD in 1 day
(52 Reviews)

2 freelancers are bidding on average $350 for this job


Here are Magento experts , please check pmb for our Magento work and let me start your work , Thanks

$650 USD in 10 days
(114 Reviews)