What I want to do is.

  1. I need to disable the checkout process.
  2. When logged-in users go to view cart page after added some products, the page will have order by email button. So when click on that button I need to send email to admin+user with order details and need to save order details at my account section.

Any idea really appreciate...

  • 1st question that comes to mind would be "why using Magento if you don't want people to checkout i.e. order things ?" – Julien Lachal Jul 8 '15 at 13:33
  • Using a ecommerce system has many advantages: catalog, products, prices, ... :) – Fabian Blechschmidt Jul 8 '15 at 14:11
  • 1
    Yes I agree with you.But that's what client want. – dammika Jul 9 '15 at 4:18

First of all, you need to override the checkout page and convert the sales quote into sales order programatically behind the scene with custom values like (shipping address, shipping methods, payment methods).

Then as you have overridden the checkout page with your custom template having button order by email, the user will click on it and order details will be sent to the admin & customer. You need to code accordingly in your custom checkout template.

Code for this will be time-consuming, so basic overview given.

| improve this answer | |
  • thank you for your suggestion. Do you have source code to read the values from the shopping cart? – dammika Jul 9 '15 at 4:21
  • $cart = Mage::getModel('checkout/cart')->getQuote(); foreach ($cart->getAllItems() as $item) { $productName = $item->getProduct()->getName(); $productPrice = $item->getProduct()->getPrice(); } this code snippent loads the current quote items and you can change it accordingly – Rahul Kumar Das Jul 9 '15 at 5:25
  1. I would think about throwing everything into a wishlist and misuse it somehow.

  2. The alternative is to just implement your own controller and send an email/fake an order to do it the real way.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.