Question

my rule image

I am trying to make a block which shows two products in it with a rule that if a customer bought these two products he will save some amount of money. I want to do something like this, Can any one let me know how can i do that. I tried reading the content for shopping cart price rule and catalog price rule but didn't get how to make this type of product rule. Thanks in advance.

Was it helpful?

Solution 2

So I am here to share my answer for this approach of adding products together. Well May be its not the best way but it works for me.

First Step

Firstly I created a new attribute say Frequently Bought and add it in the attribute set of products

Second Step

Then I set the value of the attribute created for products which I want to add together in the cart.

Note The value should be same for attribute.

Third Step

Then I filter the product according to my new attribute, which obviously only gives me two products.

And then I used an ajax to add both to cart.

Final Step

Then simply create the rule for the products.

That's all. May be it help someone. Thanks for inspiring me to share an answer.

OTHER TIPS

This can be done with a little work on your individual product page theme. The functionality is already there in magento, you just have to make it look like it.

You can start by going into each product and setting up your upsell/cross-sell individually. This gives you the most control, but takes the longest amount of time. For more broad rules, look into the rule based product relations you mentioned in your question.

You can then create the discounts by setting up shopping cart price rules.

After that, all you need to do is edit your theme. You can do this in either related.phtml or upsell.phtml, (depending on how you setup your relations rules).

These themes are located in app/design/frontend/{package}/{theme}/catalog/product/list/

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top