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, if you attach a price field to any other entity type than commerce_product, you're not able to indicate that the price you're entering is tax inclusive.
The code that does that for commerce products is currently not reusable, we should create two API functions that can be called by custom modules in order to mimic this behavior.
Comment | File | Size | Author |
---|---|---|---|
#1 | commerce_tax-add-api-functions-2376871-1.patch | 10.18 KB | jsacksick |
Comments
Comment #1
jsacksick CreditAttribution: jsacksick commentedI'm not sure about the function names, but here's a first patch.
Comment #3
AdamGerthel CreditAttribution: AdamGerthel commentedDuplicate of #1892132: Allow "includes tax" to be shown on all entities using commerce_price field