I have got a situation where I need to place a button of add to cart for every simple product on bundle product page. So that customer can order that particular simple item of bundle product individually.

Any one have any guess how should i do that.

Please reply

Thanks in advance


There's a helper for that: Mage_Checkout_Helper_Cart::getAddUrl().

In your child products loop you need only feed that method the child product instance and it will render the proper URL. You can adjust with quantity, etc via JavaScript.

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.