Magento: Get Custom Options & Configurable Product’s Options on Shopping Cart

This article shows how you can get custom options values and configurable options values in shopping cart page in Magento 1.x. We use the checkout session quote collection for this purpose. Here’s the full code: // Get visible items collection in shopping cart $itemsCollection = Mage::getSingleton('checkout/session') ->getQuote() ->getAllVisibleItems(); foreach ($itemsCollection as $item) { // Get … Read more

Associated Simple Product Price in Cart: Magento Extension [FREE]

Associated Product Price in Cart is a FREE Magento extension that uses the associated simple product’s price in shopping cart instead of the configurable product’s price. This module is compatible with Magento version 1.5 and later (Magento 1.5, 1.6, 1.7, 1.8, 1.9). Sometime, you have a scenario when a configurable product and its associated simple … Read more

Magento 2: Get Product’s Custom Option Value from Cart & Order

This article shows how to get custom option values of products/items added to cart or products of any order in Magento 2. I will simply be using ObjectManager for this example. Get custom options of products present in shopping cart $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $cart = $objectManager->get('\Magento\Checkout\Model\Cart'); // get cart items $items = $cart->getItems(); // get … Read more

Print Product & Cart Page: Magento Extension [FREE]

Print Product & Shopping Cart Page is a FREE Magento Extension that generates neat and clean print page of products and shopping cart, removing unnecessary header, footer & sidebar. This module is compatible with Magento version 1.5 and higher (Magento 1.5, 1.6, 1.7, 1.8, 1.9). A “Print Product” link is added to product page and … Read more

Magento: Clear / Delete Shopping Cart Items of Single or All Customers

Here is the code to delete all shopping cart items of currently logged in single customer: $cart = Mage::getSingleton('checkout/cart'); $quoteItems = Mage::getSingleton('checkout/session') ->getQuote() ->getItemsCollection(); foreach( $quoteItems as $item ){ $cart->removeItem( $item->getId() ); } $cart->save(); If you want to clear all shopping cart items of all customers then you can use the following code: $quoteCollection = … Read more

Magento: Incorrect template design for login and register page due to Persistent Shopping Cart

Problem: I am using Magento 1.6 and my login and register page design has problem. It is not taking the template path from my custom theme. Instead, it is taking the template path from base persistent folder. For example, the login template path is taken from frontend/base/default/template/persistent/customer/form/login.phtml instead of frontend/default/MY_THEME/template/customer/form/login.phtml It’s strange how this persistent … Read more

Displaying all products and new products listing in column/grid layout – Zen-cart

Exactly before one year, I was doing a shopping cart project in Zen-cart. I had to display ‘All Products’ and ‘New Products’ listing in column/grid layout. The default layout was row layout. Then I searched if there was any addon which could help in my problem. But I couldn’t find any. The response that I … Read more

How to fix row height in zen-cart product listing?

Almost one year back, I had problem with the product display in Zen-cart. I searched for help in zen-cart forum. I started a topic over there. But at last, I myself had to post the solution on that thread.. coz, I found the solution. ;) I just wanted to include that problem and solution in … Read more