Archive: checkout cart

 

Posts Tagged ‘checkout cart’


Is there an observer which can be used to observe events when a product is removed from the cart? I haven’t found any. What I have found is checkout_cart_update_items_after which can be used if a product is removed by altering the product count, but not when the user uses the remove button. The only alternative [...]



 

I’ve been reading a lot of tutorials around the internet, but even the ones on the Magento site are for version 1.5 or less and even some of the functions references do not exist any longer. What I am doing is simple, I am sending a item to a custom script outside of Magento where [...]



 

I have this page for instance that doesn’t have a proper breadcrumb set: http://www.princessly.com/checkout/cart/ It’s just “Home >>” and that’s it. How can I make it “Home >> Shopping Cart”? Thus far I can only find the breadcrumb template which is template/page/html/breadcrumbs.phtml but I have no idea how to make this change. I suppose I [...]



 

I’m trying to translate “My Cart” to “%s Items in Cart” via /my_theme/locale/en_US/translate.csv. I have a custom cart link like so: <?php $_cartQty = $this->getSummaryCount() ?> <?php $cartText = (!empty($_cartQty)) ? $_cartQty : ’0′; ?> <li class=”cart”> <a href=”<?php echo $this->getUrl(‘checkout/cart’) ?>” class=”cart-link”><?php echo $this->__(‘My Cart (‘ . $cartText . ‘)’) ?></a> All of the [...]



 

In the default checkout.xml there is: <reference name=”top.links”> <block type=”checkout/links” name=”checkout_cart_link”> <action method=”addCartLink”></action> <action method=”addCheckoutLink”></action> </block> </reference> Renaming links from top menu using local.xml? Possibly Related Posts: Magento admin route extension resulting in 404 Sort algorithm: Magento totals sorted wrongly causing wrong shipping tax calculation Create a WYSIWGY field in magento backend Magento is writing [...]



 

I try to get the cart items for a given product; I have tried this code : $product = Mage::getModel(‘catalog/product’) ->setStoreId(Mage::app()->getStore()->getId()) ->load(’2784′); $quote = Mage::getSingleton(‘checkout/cart’)->getQuote(); $cartItems = $quote->getItemByProduct($product); foreach ($cartItems as $item) { echo $item->getId().”<br/>”; } but it don’t gives anything. How can I modify my code to use “getItemByProduct” in the right form ? [...]



 

I have an observer listening for the event ‘checkout_quote_init’. When the observer code is run, one of the things it does is: $cart = Mage::helper(‘checkout/cart’)->getCart(); but that fires the checkout_quote_init event again (from Checkout/Model/Session.php) if the user is not logged in. Is this a common problem? Is the answer that I simply cannot do what [...]



 

When i try to change: <reference name=”right”> <block type=”checkout/cart_sidebar” name=”cart_sidebar” before=”-” template=”checkout/cart/sidebar.phtml”/”> in app\design\frontend\base\default\layout\checkout.xml <reference name=”left”> <block type=”checkout/cart_sidebar” name=”cart_sidebar” before=”-” template=”checkout/cart/sidebar.phtml”/”> my cart vanish. The caching is off. Magento cart disappears when the position is changed Possibly Related Posts: Magento admin route extension resulting in 404 Sort algorithm: Magento totals sorted wrongly causing wrong shipping [...]



 

How do I get the content of the following files frontend/enterprise/default/template/page/html/header.phtml or frontend/base/default/template/page/template/links.phtml or frontend/enterprise/default/template/checkout/cart/cartheader.phtml outside of Magento and still have the processed date intact. Like what I mean is still showing the correct number of items for the user ‘My Cart (5)’, or in the header it says ‘Welcome, volkan yavuz’ and still show [...]



 

I’m aware that a product can be added via querystring in Magento. Pattern: /path/to/app/checkout/cart/add?product=[id]&qty=[qty] And if I have a required custom options: /path/to/magento/checkout/cart/add?product=$id&qty=$qty&options[$id]=$value If custom option is for example “field” or “drop_down”, it’s simple; My querstion is: How to add a product via querystring if one of custom option is a file type? I would [...]