tijojoel Posted March 9, 2018 Share Posted March 9, 2018 Hi, How to add a product with another product . When a customer add a product into the cart, based on the category another product will come automatically into the cart like a dependent product and it should get deleted when main product is deleted. Link to comment Share on other sites More sharing options...
NemoPS Posted March 10, 2018 Share Posted March 10, 2018 Is the other product supposed to be free? If so, you can try using a gift option from the cart rules Link to comment Share on other sites More sharing options...
tijojoel Posted March 10, 2018 Author Share Posted March 10, 2018 @NemoPS No it is not a free product it has price with tax dependency Link to comment Share on other sites More sharing options...
NemoPS Posted March 16, 2018 Share Posted March 16, 2018 Then you need to edit the cart controller/class. It's a bit long, you want to check what product is being added, and if it matches the id, add the extra one as well. Of course, it must be deleted together too. It all depends on how you want to handle the thing at that point Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now