Let say I have a simple product id and I want to add it to shopping cart. I can add it with

cart->addProduct($product, array('qty'=>1));

But the problem is its attributes , I want to add them also for example the size and color of the product.

  • But the problem is its attributes - it is attribute or custom options? – Sathish Nov 7 '17 at 8:43

You can call the attributes information in the cart. In app/design/frontend/default/your-theme/template/checkout/cart/item/default.phtml

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.