Jump to content

Custom price for two products (pack?)


Recommended Posts

Hi,

i'm making a module that combines products in packs. I can't figure out how to make a cart rule or something that will change price when specific products are added to the cart.

For example:

Car costs 1000euro, Tires cost 500euro, Seat cover costs 100euro... when those three are aded to cart, the price of seat cover should be 1 euro instead of 100...

 

As I see, the best way should be a cart rule with (as in our example) three cart rule product groups... so how should I do it?

Can i do it with a Cart Rule Object, some function or should i manually insert values into sql tables?

Some example code would be much appreciated :)

Thanks in advance :)

 

Edited by Bugas (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...