Timeline for How to get the number of items in a user's cart from commerce?
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 15, 2017 at 14:23 | answer | added | Gareth Dylan | timeline score: 1 | |
| Jan 28, 2017 at 21:44 | history | edited | Pierre.Vriens | CC BY-SA 3.0 | deleted 23 characters in body; edited title |
| Jan 27, 2017 at 15:46 | comment | added | cwiggo | I want to insert it into a custom block. Knowing this.. I think like you said... I should just copy the logic as kind of a custom sub module that gathers the particular logic i'm after from the cartblock controller etc.. any other thoughts? | |
| Jan 27, 2017 at 13:42 | comment | added | Bojan Zivanovic | Nothing is "global" in D8. You'll need to tell us where you're planning to use the count, so that we can recommend the best course of action. You'd probably want to copy the logic from CartBlock (get the cart from the cart provider, then count the order items & quantities) | |
| Jan 26, 2017 at 20:46 | history | edited | cwiggo | edited tags | |
| Jan 26, 2017 at 17:01 | history | asked | cwiggo | CC BY-SA 3.0 |