How to show the price of addons?

Created on 17 January 2023, almost 2 years ago
Updated 19 January 2023, almost 2 years ago

When the add-ons display in the parent-product, right now they show only the name of the add-on.

How can I also display the price of the add-on? Can that be configured?

(short of deriving a new field formatter )

💬 Support request
Status

Active

Version

1.1

Component

Documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany andih

    I simply added {{ variation_entity.getPrice|commerce_price_format }} to
    commerce-pado-addon-product-variation-label.html.twig:
    /**
    * @file
    * Default product add-on add product variation label template.
    *
    * Available variables:
    * - variation_entity: The add on product.
    *
    * @ingroup themeable
    */
    #}

    Add {{ variation_entity.label }} {{ variation_entity.getPrice|commerce_price_format }}

Production build 0.71.5 2024