Magento admin order minimum value based on customer group - magento

I want to set a condition by which I can restrict my admin to create orders for specific customer group.
The condition is minimum order value.
If the customer group is 'wholesale' then they have to order minimum $50.
I have already set this in frontend. In cart.phtml I put up a condition by which customer cant see the "proceed to checkout" button. And also I disabled the "place order" button for a specific customer group if someone directly accesses the checkout page from the URL.
But I also have to set this up in the admin panel. Where we can manually create orders.
There I have to also set the condition so that wholesale customers have to purchase more than $50.

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 :)

Limit cart to 1 product per attribute/type - Magento

Our company sells pharmaceuticals online and by law we are limited to how much of a particular drug a customer can purchase.
For singular products with one brand this is easily controllable through default Magento functionality, my problem arises when we have different brands of a particular drug.
In a nutshell I can currently limit a customer to 1 pack of paracetamol from brand A but there is nothing to stop them getting another pack from brand B at the same time.
I would like to be able to check the cart for products with a particular attribute and limit them to 1 per cart. Ideally this would be when the customer clicks add to cart and the message would be displayed via the default Magento alerts that we currently have.
EDIT: I think the easiest way to solve this would be to check the SKU codes currently in the basket when adding a product to the cart. If there is a match, Throw up an error else add the item to the cart.
I think this link will help you but you need to modify as per your requirement. http://ceckoslab.com/magento/magento-check-if-product-is-in-cart/..
This link is to check the cart whether the same product is added or not? So modify this as per you requirement
You can set maximum allowed quantity in cart from admin panel. System->configuration. From left tab see catalog->inventory. Set Maximum qty allowed in shopping cart to 1.
If you want to add check on whole cart. see this paid extension

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.

Only allow administrator to buy products in Magento frontend

I need to somehow setup a Magento store to disable purchasing of a few products, and instead show a message that they can only be bought in the physical store. The twist is that the store owner/administrator has to be able to "buy" these products on the frontend on behalf of the customer -- all payment options are not available in the backend.
So, is there a way to only allow certain customers/users to purchase certain products, and show all other customers and anonymous visitors a "not for sale" notice? (Not "out of stock".)
I have thought of creating a special store view or custom design, or even using some Javascript trickery to prevent unauthorized visitors to purchase these products. Any clever ideas?
1 - Creating a custom product attribute that identify these products
2 - Put owner/administrator in a special customer group
3 - Anywhere you have a 'add to cart' button, you check the above logic and only should 'add to cart' for those product if customer is in that owner/administrator customer group
You could try overwriting the addAction method within the CartController (app/code/core/Mage/Checkout/controllers/CartController.php), and create a conditional statement that checks the user level.
Look forward creating Custom Shopping Cart Pricerule.
By default they do not satisfy your needs.
But this is the best place for your logic!

How to hide magento Price tab from admin panel

I made separate provision for setting Prices for Product in admin panel. Now I want to hide the default Price tab from Manage product section. How I do this? Where I need to change.
Go to the attribute set in backend, select your attribute set, and then delete prices group from attribute set.

Resources