skip to Main Content

Getting error while adding product to cart – Magento

I tried to add product programmatically. and i use below code $cart = Mage::getSingleton('checkout/cart'); $cart->init(); $paramater = array( 'product' => $product->getId(), 'related_product' => null, 'qty' => 1, 'form_key' => Mage::getSingleton('core/session')->getFormKey() ); $request = new Varien_Object(); $request->setData($paramater); $cart->addProduct($product, $request); $cart->save(); This…

VIEW QUESTION

Magento category to owl carousel

This code is displaying only one product from each category, however I want it to display all products from each category in its own owl-carousel. How can I fix this? <?php $categoryIds = array("3","5","6","12","7"); foreach($categoryIds as $categoryId){ $carouselcategoryProducts = $block->getCategoryProductsById($categoryId);…

VIEW QUESTION

Magento 2 Klarna checkout

I need to integrate the Klarna Checkout module into magento 2.1.2. I am using the version of the "klarna/m2-checkout module": 4.2.2. When choosing a delivery method, I always get an error in the pop-up window: Sorry, the delivery option you…

VIEW QUESTION
Back To Top
Search