Closed (works as designed)
Project:
Ubercart 2 VAT support
Version:
6.x-1.0-rc7
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2009 at 01:00 UTC
Updated:
5 Oct 2009 at 15:46 UTC
Add "including VAT" or "excluding VAT" to product prices: set
The string "including VAT" is not shown on all prices when the product is shown with only its teaser (i.e. on front page). The price placed under the product image carries the text. The price shown below the teaser and above the attribute selectors does not carry the text.
When product page is shown in full both prices carry the "including VAT" text.
Expected "including VAT" on both prices on teaser page.
Fresh Drupal 6.14, Ubercart rc7, with default theme.
| Comment | File | Size | Author |
|---|---|---|---|
| zz_full.png | 178.76 KB | ChrisW | |
| zz_teaser.png | 155.86 KB | ChrisW |
Comments
Comment #1
longwaveThe decision to hide the label and suffixes from this field is made by Ubercart core, not uc_vat. From line 769 of uc_product.module:
$node->content['sell_price'] = array('#value' => theme('uc_product_price', $node->sell_price, $context, array('label' => !$teaser)),This results in the "Price:" label and any prefixes/suffixes being hidden from display. The code responsible for doing this when 'label' is FALSE is in the theme_uc_price() function in uc_store.module. You could override this functionality in your theme by implementing your own phptemplate_uc_price() function instead.