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).

CommentFileSizeAuthor
#2 3110151-2.patch7.25 KBjsacksick
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jsacksick created an issue. See original summary.

jsacksick’s picture

Status: Active » Needs review
FileSize
7.25 KB

The 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 by loadItem().

My attempt with this patch was to avoid duplicating the logic in my custom code and also in the price list module itself...

  • jsacksick committed 59b7bb4 on 8.x-2.x
    Issue #3110151 by jsacksick: Add a method for getting all the available...
jsacksick’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.