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

Magento: Add / Delete / View Custom Options of Product Programmatically

Custom options on Magento products are designed to make simple products function like a configurable product with different choosing options like color, size, etc. before purchasing the product. In this tutorial, I present the code to create/add, view, and delete custom options of a product in Magento. ADD CUSTOM OPTIONS In the following example code, … Read more