We use the static Magento back end interface (www.movingpicturebooks.com). This is pretty straight forward. The biggest problem is that you need to tightly bind your interface to specific product identifiers. If you work with separate development and production environments, it can be a real bitch to synchronize them. But this is another topic. Here are the snippets you need:
1) Add buttons to the cart . Use this link format:
/ statement / basket / add / product = $ PRODUCTID &? Qty = $ QUANTITY
2) Cart for communication : / checkout / cart /
3) Link to check : / checkout / onepage /
4) My account : / client / account /
5) Login / Logout . To access a Magento session you need to have a small PHP code, and then depending on where it is located, display the appropriate link. Example:
<?php $include_file = $_SERVER['DOCUMENT_ROOT'] . '/app/Mage.php'; require_once ($include_file); Mage::app("default"); Mage::getSingleton("core/session", array("name" => "frontend")); if (empty($session)) { $session = Mage::getSingleton("customer/session"); } if($session->isLoggedIn()) { $login_action = "Sign Out"; $login_url = "/index.php/customer/account/logout/"; } else { $login_action = "Sign In"; $login_url = "/index.php/customer/account/login/"; } ?>
6) Skinning . You mentioned the desire to embed Magento Shopping Cart material in your design template. This is not just a cart that you need to worry about - it is my account, login, password to forget, all kinds of things. This is one area of Magento that is halfway documented. Do a little research and you can download it.
Wes pomeroy
source share