cancel
Showing results for 
Search instead for 
Did you mean: 

How to add bundle product directly to cart from listing page?

Contributor

How to add bundle product directly to cart from listing page?

How to add bundle product directly to cart from listing page? Magento Version 1.9.3.3

public function getAddToCartUrl($product, $additional = array()) {
    return $this->helper('checkout/cart')->getAddUrl($product, $additional);
}
This solution is not working.
3 REPLIES
Moderator

Re: How to add bundle product directly to cart from listing page?

Hi @Ashish_k_php,

 

The problem you'll have is the product type. Bundle porducts needs configuration.

Why you would use a Bundle product if don't want to allow the configuration? Maybe you can use another product type?

--
If the answer is useful, please give "Kudos" or "Accept as Solution".
Contributor

Re: How to add bundle product directly to cart from listing page?

@Damian Culotta Thanks for your reply.

Yes, that is right. 

But We need to bundle product add to cart directly form product listing if Default required bundle items are by default selected.

If you have any solution please help me and short me out of this point. 

Highlighted
Moderator

Re: How to add bundle product directly to cart from listing page?

If you option is only to add the bundle product you should check how Magento post the add to cart (looking wich options are posted) and then force the same action.

In that case you won't allow the custome rto choose the configuration of your bundle product but it seems is the only way according with your definition.

--
If the answer is useful, please give "Kudos" or "Accept as Solution".