Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Thanks for this formatter! I wonder how to make this formatter somehow compatible with a price table (http://drupal.org/project/commerce_price_table). As it is now, it chooses the last price in the table as the price. Any suggestions?
Comment | File | Size | Author |
---|---|---|---|
#7 | lets_modules_alter_the_formatted_prices_created_by_the_module-Commerce_price_table.patch | 4.4 KB | facine |
Comments
Comment #1
bengt CreditAttribution: bengt commentedI see now that showing the last price (in the price field) is actually another issue which has nothing to do with this formatter. But I am still interested in suggestions how to change this formatter so that it will work with price tables.
Comment #2
recrit CreditAttribution: recrit commentedthe Commerce Price Table actually provides its own field type of 'commerce_price_table' which displays the table of prices using the normal commerce_currency_format(). The Commerce Price Table module could add a setting to its Price Chart formatter that provided a selection of price formatters.
* moving issue to commerce_price_table queue
Comment #3
pcambraJust for my own reference, we're talking about including http://drupal.org/project/commerce_price_savings_formatter or other formatters inside the table, that's a very interesting feature, I'll review it.
Comment #4
recrit CreditAttribution: recrit commentedthats correct .. basically exposing any price field formatters to be used for the prices in the table.
Comment #5
pcambraI've given a further thought on this.
This change may imply a conceptual rewrite on this module, being a setting itself of any other formatter (not sure if that's even possible). So it should alter all formatters that are available for normal price fields to be available also for price table and expose extra settings for the price table.
I'd probably create a 2.x branch for this.
Comment #6
klavs CreditAttribution: klavs commented+1 for needing this :)
I'd like to be able to f.ex. show prices excl. VAT (but VAT will still be applied when checking out).
Comment #7
facine CreditAttribution: facine commentedBased on this other recrit patch I created a patch for this module.
To implement adding a new formatter setting:
Regards
Comment #8
pcambraSo this means that for every formatter out there doing stuff for prices needs to add a submodule in the price table module?
Or viceversa, price table needs to add a submodule in every formatter out there?
Comment #9
facine CreditAttribution: facine commentedYes, not the best solution but... Furthermore there are only 4 or 5 formatters.