How to show pricing rules for a specific application plan
Issue
- When accessing the Liquid drop
metric.pricing_rules
in the loop shown below, it returns the same pricing rules for all plans. It should only be returning those pricing rules for the plan that has them.
{% for metric in plan.metrics %}
{% if metric.pricing_rules.size > 0 %}
{% for pricing_rule in metric.pricing_rules %}
<li>
{{pricing_rule.min }} – {{ pricing_rule.max}} ${{ pricing_rule.cost_per_unit }}
</li>
{% endfor %}
{% endif %}
{% endfor %}
Environment
- Red Hat 3scale API Management Platform SaaS, 2.0 (On-premises)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.