Using Magento as a Checkout, Payment and Admin System
So, you want to use the Checkout, Payment and Admin facilities but not the catalog? Well here’s a quick and painless solution.
If you have a set list of products then build the product list in the Magento back office, a previous post covers creating Magento products dynamically.
Once you have the products, all that is required is to add the products to the cart. The simplest way to do this is to feed two variables into the cart, SKU and Quantity:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | include_once '../app/Mage.php'; Mage::app(); Mage::getSingleton('core/session', array('name' => 'frontend')); $sku = $_POST['sku']; if (!isset($_POST['qty']) || (!is_int($_POST['qty']))) { $qty = 1; } else { $qty = $_POST['qty']; } $productid = Mage::getModel('catalog/product')->getIdBySku($sku); header("Location: /checkout/cart/add/product/".$productid."/qty/".$qty."/"); |
Your customer has then bypassed a Magento catalog but still checkouts using the Magento system and the admin can still make use of the excellent backoffice system.
Any comments or queries welcome.




