Timeline for How do I disable Commerce cart order refresh to preserve custom prices on line items?
Current License: CC BY-SA 3.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 5, 2016 at 17:20 | vote | accept | Travis Johnston | ||
Jan 5, 2016 at 15:48 | answer | added | Ryan Szrama | timeline score: 4 | |
Jan 5, 2016 at 15:45 | history | edited | Ryan Szrama | CC BY-SA 3.0 |
Updated the title into an actual question.
|
Dec 27, 2015 at 10:56 | history | edited | avpaderno♦ |
edited tags
|
|
Dec 14, 2015 at 19:48 | history | edited | Travis Johnston | CC BY-SA 3.0 |
Changed the scope of the question in the title
|
Dec 7, 2015 at 14:34 | comment | added | Travis Johnston | Thanks @oksana-c , After some more digging, it looks like the problem may be controlled by the commerce_order_cart_refresh hook which rebases line items in the cart and is removing changes made to the line items. | |
Dec 6, 2015 at 1:19 | comment | added | oksana-c | Try removing the line where you set commerce_total for the $new_line_item. Saving the line_item should take care of setting commerce_total | |
Dec 2, 2015 at 15:31 | comment | added | Travis Johnston | I've made edits to the OQ since it was getting clouded with my own updates. Hopefully this is more clear on what is desired. | |
Dec 2, 2015 at 15:31 | history | edited | Travis Johnston | CC BY-SA 3.0 |
Rewrote the question because it's getting jumbled with my own updates which clouds the real need.
|
Dec 1, 2015 at 18:20 | history | edited | Travis Johnston | CC BY-SA 3.0 |
I changed the title since it wasn't clear to what is really needed a this point.
|
Dec 1, 2015 at 16:57 | comment | added | Travis Johnston | Yeah you can see I actually posted my Rule in that one towards the bottom because the basic removal off the "combine" setting doesn't really do anything - even when removed from all locations. I had to make that rule. | |
Dec 1, 2015 at 16:51 | comment | added | oksana-c | Ah! http://drupal.stackexchange.com/questions/97404/new-line-item-every-time-an-item-is-added-avoid-grouping - have you tried this approach to keep line items separate? | |
Dec 1, 2015 at 15:59 | history | edited | Travis Johnston | CC BY-SA 3.0 |
Made progress
|
Dec 1, 2015 at 15:30 | history | edited | Travis Johnston | CC BY-SA 3.0 |
adding another try
|
Dec 1, 2015 at 15:13 | history | edited | Travis Johnston | CC BY-SA 3.0 |
Added more info.
|
Dec 1, 2015 at 12:56 | comment | added | Travis Johnston | This code does keep the proper price as it gets it from the first line item, but I can't seem to A) delete old line item or B) change the original quantity | |
Dec 1, 2015 at 12:55 | comment | added | Travis Johnston | Yeah the option for the user to select the quantity of the product is still there, but once they click Add to Cart, I need it to break the line item created apart and create separate ones. I did this with Rules but the adjusted price didn't carry over. | |
Dec 1, 2015 at 0:37 | comment | added | oksana-c | Your goal is to have each line item quantity always = 1 when user adds the same line item to the cart multiple times? | |
Nov 30, 2015 at 18:27 | history | asked | Travis Johnston | CC BY-SA 3.0 |