3

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.

  • Same can be achieve using aheadworks frequently bought together extension: ecommerce.aheadworks.com/magento-extensions/… – Bijal Bhavsar Jan 20 '14 at 11:54
  • Thanks for the extension I want exactly this, but this is not free of cost so i cannot use this. Is there any other way to achieve this by making some module or block programmatically. I need to do this by tomorrow.Can any one please help me. Thanks – Waseem Jan 20 '14 at 12:02
  • Well I achieve this kind of functionality without use of any extensions. – Waseem Jan 23 '14 at 12:12
  • Thats good. You can add solution here and add it as a answer :) – Bijal Bhavsar Jan 23 '14 at 12:19
  • Well it is not complete yet, just one more thing to do and then I will add the answer over here. Thanks. – Waseem Jan 23 '14 at 12:44
2

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/

  • Thanks for the the answer @ryan I had done this thanks again. – Waseem Feb 19 '14 at 4:42
1

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.

  • may i see your demo? – zus Oct 4 '17 at 6:46

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.