Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently, there's no way to easily load the "available"|"applicable" price list items, we can only get the price list item that matches the given quantity, but no way to actually get all the available price list items (That could be useful in a price table for instance).
Comment | File | Size | Author |
---|---|---|---|
#2 | 3110151-2.patch | 7.25 KB | jsacksick |
|
Comments
Comment #2
jsacksick CreditAttribution: jsacksick at Centarro commentedThe only downside of the patch is that we now load price list items for all quantity tiers when calling
loadItem()
on the price list repository.The good thing is that calling
loadItems
populates a static cache that is reused byloadItem()
.My attempt with this patch was to avoid duplicating the logic in my custom code and also in the price list module itself...
Comment #4
jsacksick CreditAttribution: jsacksick at Centarro commentedCommitted.