Timeline for Apply coupon to grouped SKU
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 27, 2013 at 13:57 | comment | added | aynber | Sure there is. Well, not exactly parentID, but there is $item->getParentItem(). I use it in other scripts when manually creating orders, to add the quote item to the order. | |
Jun 27, 2013 at 13:27 | comment | added | Marius♦ | You cant use parent_id with grouped products. There is no parent_id added to the quote item when you add a grouped product to the cart. That's what I was saying in my answer. | |
Jun 27, 2013 at 13:24 | comment | added | aynber | But since the parentID gets changed each time a different grouped with the same simple gets added to the cart, it's a moot point. Though the way we have the store set up, most people won't buy the same simple from different grouped at the same time. | |
Jun 27, 2013 at 12:42 | comment | added | aynber | Thanks, I was afraid of that. My plan was actually to overwrite the rules modules slightly and have it check $item->getParent()/getParentId() as well as the sku. | |
Jun 27, 2013 at 8:00 | history | edited | Marius♦ | CC BY-SA 3.0 |
deleted 5 characters in body
|
Jun 27, 2013 at 7:33 | history | answered | Marius♦ | CC BY-SA 3.0 |