product qty revert when paypal window closed in magento - magento

Here i am facing one issue. when create an order through paypal in magento after placing an order it is redirecting to paypal. here i am not paying amount just clicked on return to merchant site. in this case qty is reverting correctly to product. in this case order is showing in admin side as pending_payment status.
but forexample i am not clicking any button in paypal and not redirecting to merchant site and just close the window. in this time also order showing in backend as pending_payment status but not reverting qty to product.
anyone advise me what to do in this case.
thanks,
murali.

we are just deleting this order after an half-hour.
Here is the code for delete pending_payment orders from orders grid. for this we set a cron job for delete paypal pending orders. if user close the paypal window it reverts the qty and delete that order. you can check it out here. copy code from below url and place it in magento root folder and set cron for delete pending orders :)
http://eightlessons.blogspot.in/2013/03/delete-pendingpayment-order-status-from.html

Related

How to prevent user to send multiple Checkout of the same cart in Magento 2

How can I prevent user to checkout 1 cart Session using multiple tabs or multiple browser?
By default, while the last checkout step is still loading, a user can resubmit the same cart multiple times until 1 process is completed resulting to duplicate orders.
Any thoughts on this will be appreciated.
I think the problem comes from your custom module. Maybe you didn't call an ajax attribute or the loading part. By default Magento when you click on checkout button then you can't click other buttons anymore because there will be a loading section appear on the page.
To check you can disable all payment modules and use the default Magento payment method

Quantity in checkout shopping cart doesn't work properly for Magento

I have use Magento 1.9.0.1 and on live server the cart is working correctly. I change the quantity of a product in the cart then I push the "Update cart" button and all works fine. I transferred the site another domain and the cart quantity doesn't work anymore. As I change the quantity of a product and click the button the quantity remains the same. If I go back and try to add the same product to the cart, even if I specify a different quantity like 10 and not 1, in the cart only 1 item is added every time I click on "add to the cart" button and not 10 as specified. I cannot figure out where's the problem. I excluded my custom theme and rolled back to the default theme and the problem persist. this site other functionality work fine.
It looks like somewhere in your code you put tmp instead of $tmp. Run a search over all of your code for tmp. And Go through the function getTmpDir and check you have sufficient permission for tmp folder and access to write files in tmp.
When i can change my magento local time zone. than this problem is solve.

Magento- Country Specific Payment Option is not showing on One Page Checkout

I have COD set for a specific country and it doesn't shows up in OPC for the first time. It only appears after a full reload of the checkout page or if the customer is logged in.
Once the billing information is filled up the Ajax is called but the payment option fails to show up.
**I guess its a theme problem. So, what to do now? Is there any fix?

Magento - update subtotal while runtime onepage checkout

a customer is in checkout. while the standard checkout progresses i want to renew the subtotal of the checkout session, the payment and the preview steps cause private rules for each customer group. I tried out to set the price via save shipping observer but it doesn't work (the subtotal in preview didn't change and the payment moduls are using the same price as before.. I understand.. the HTML was load before and the steps are only hidden)
Is there any way to refresh the subtotal and the onepagecheckout without loosing the current step ?
Thank u
On the step you are doing this on, find the save action and add:
$this->getOnepage()->getQuote()->collectTotals()->save();
To the code before the response.
Works a treat.

Magento Checkout: Item out of stock charges customer but no order / order confirmation

I am using Magento 1.6 with the out-of-the-box one page checkout.
Upon the final submit, after the customer has reviewed their order, there seems to be a glitch: If an item has become out of stock, the customer is notified and the order seems not to be going through (no order is created and no confirmation page). However, authorize.net does get the complete transaction request and charges the customer. It seems to only happen if an item has become out of stock. (Customer could be lingering to hit the submit button for quite a while.)
What can I do? Add a java script function to check upon stock on clicking submit?
Is this a known bug?
Thanks!
Is your system set to allow Backorders?
System > Config > Catalog > Inventory > Backorders "No Backorders".
If that is set to disallow backorders I wonder why the add-to-cart button even displays.
If you are using a custom template I might start there in troubleshooting. Switch back to a default template and see if this issue persists.

Resources