Order getting successful, when both person placing order at the same time on a single quantity item (same product, quantity =1) - magento

I was trying different scenarios about the payment. Since we are a small boutique, sometimes we have only one item in stock. So I was trying a scenario where I added a product (with only one quantity in the inventory) to my cart and clicked on place order and then was filling my credit card information at the same time another person was adding the same product to his cart and clicked on place order after me. But because I was filling the information and he was paying by "cash on delivery". What happened is that we both got the confirmation email and the payment was successful. So how this is possible? When I checked the inventory it was (-1) and not (0). I tried again but this time , I filled the credit card information and clicked "pay now" and then the other person clicked "place order". In this case the cash on delivery one didn't get the order. which is what it should have happened in the first time.

Related

Get quote id on admin new order create page

I want to add one price match textbox when admin try to create an order.
Like this:
so when customercare got a customer for price match they just enter amount difference then we give total discount to customer. But I am faceing big problem so when user add amount press enter I am pinging one controller but in that controller I am not able to get quote id I am using:
$session = Mage::getSingleton('adminhtml/session_quote')->getQuote();
echo $session->getId() or $session->getQuoteid();
But I am not able to get quote id. And is there any why we can do that. Because we don't want customer item price we want to give full cart discount which help our account team to do there work easily.
There is one more default way to do this.
1) When you create an order from backend, you enter the customer detailed first.
2) When order page opens, there is a button where says "Add Products", click on it, select the product you want to map with this order.
3) Later, customer will tell the price which means you want to have custom price. In this case there is a checkbox called 'Custom price' under every product item you have added with "Add Products" option (Inside "Items Ordered).
4) When you click on this checkbox, an input will be visible in which you can enter the discounted price. Once you enter the custom price, click on the button below called "Update items and qty's".
5) Item's price will get updated with your custom price. You can proceed with the further order processing now :)

Magento - Notification of refund order

In magento, how do we send the client a notification from the website that an order has been refunded? and can we update the status to show that it was refunded?
Magento version : 1.7.0.2
From the Magento User Guide. See Step 6 below for e-mail notification.
Refunding
You can create a record of a product refund from an existing order by generating a
credit memo.
To view the list of refunds made in your web store:
From the Sales menu, select the Credit Memos option to display the Credit Memos page.
To refund a product from an existing order:
Note: You can create credit memos only for orders for which invoices were created. Without an invoice, an order is assumed not to be paid so that there is nothing to refund.
In the Admin Panel, select Sales > Orders to display a list of the existing orders.
Click the View link on the right side of the row of the desired order to display the
order view page.
Click the Credit Memo button to generate a credit memo.
Scroll down to the Items to Refund area, and in the Qty to Refund field of each
relevant product, specify the quantity of products to refund.
To specify that this product was actually returned to the web store, select the Return
to Stock check box.
6. (Optional) Select the Email Copy of Credit Memo check box to automatically send an email to the customer that the order has been refunded. You can also adjust the refund totals to match your business rules.
Managing Orders and Customers
Click the Refund button at the bottom of the page. The total of the order from which
this product was refunded is updated automatically.
Click the Back button to return to the orders page where you can create additional
orders, if required.
Note: Refunding an order in Magento CE does not cause an actual payment refund. You must refund the payment on your own. The credit memo is only a record used to track the refunds and to provide proper values in the reports.

Magento: Can't invoice, ship or complete zero dollar total orders

Our Magento store (1.7) has some promo codes that allow free orders to select individuals. The promo code works fine. The problem is that when the order comes in the backend we can't invoice or ship the orders with zero balance due. We used the "Free Shipping" payment method to complete the transaction.
The invoice and cancel buttons are missing from the order view page. The ship button is there but when I go to the shipping screen there is no submit shipment button.
Does anyone know how to fix this problem for orders with $0 total due?

Missing UPS Shipping Methods on the Magento Frontend

What would cause ups shipping methods that are selected in magento's shipping method admin page to not show up as shipping options to customers. Specifically I'm trying to get the ground commercial option to show up on the frontend.
I've done some research on this, it seems like this questions been asked a before and never answered (that i can find) so I'll ask it again and throw in my research on the subject.
I've traced the source code from the shipping cost estimations in the shopping cart and found that when you enter a zip code it creates an entry in the 'sales_flat_quote_address' table with basically just the postcode and id fields filled.
It also creates rows in 'sales_flat_quote_shipping_rate'. one for each applicable shipping method for that quote/address pair.
When magento lists the shipping options it references this table.
Somewhere between the shipping methods admin and this database table some of the shipping methods are filtered out.
I think it has something to do with residential/commercial addresses. However ups's rating api cant determine if an address is residential/commercial if only given a zip code. Also changing the destination type in the admin page does not have an effect on which methods are displayed on the frontend.
For reference if all ups shipping methods are selected in the back end, the following are the only ones that show up on the front end:
ground
3 Day Select
2nd Day Air
Next Day Air Saver
Next Day Air
Next Day Air Early AM
This is out of 22 options selected in the backend.
Go to System > Configuration from admin panel
In the Configuration panel on the left, under Sales, click Shipping Methods.
Click to expand the UPS section. Then set enable to yes.

virtuemart cart timer

Please help, don't really understand joomla + virtuemart. If we want to put a timer when user add to cart, so, and product will be unavailable for another user, can give a rough illustration how to do that?
So, if within that timeframe, user still no checking out, then the product will be removed from his cart, and become avail again.
Each product in VirtueMart has an "In Stock" property; this is in the "Product Status" tab.
Under Admin -> Configuration in VirtueMart admin, in the section "Core Settings", there's an option called "Check Stock". If enabled, the user will not be able to check out if they try to buy more units than are in stock.
So, say there is 1 unit left and Alice puts it in her cart, then decides to go for dinner or something. Bob comes to the site, sees the same item, puts it in his cart and then checks out. Bob is successful; order is sent to him. When Alice gets back, even though the item is in her cart, it won't let her check out because the "In Stock" quantity is now zero.
Make sense?
Now it solved.
Just edit the code for virtual mart plugin and store the cart time in session. And use javascript module to pull from server whether any product expired, if does, then just remove it.

Resources