Closed (fixed)
Project:
Ubercart 2 VAT support
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2009 at 12:50 UTC
Updated:
7 Oct 2009 at 15:50 UTC
Hello! fist of all thank you for your work!
I need a possibility to place a text behind the price.
In Germany you must "flag" the price with something like "incl. Tax (19%) excl. shipping costs"
[ there are 2 taxes (MwSt.) in Germany 7% and 19% /EU - so the above mentioned "Tax (19%)" must be the
name of the configured tax.]
is there any way to implement this?
Comments
Comment #1
Al01 commentedThe basic way how to do this is shown in uc_gst.module v. 1.2 on line 33:
I'd like to go a step further and implement also
$options['suffix'][]afteruc_taxes_rate_load()and generate the tax percentage by the way$node->shippablemust be checked if part two "excl. shipping costs" is required (e.g. digital downloads don't need it)Comment #2
longwaveFixed in CVS. Two configuration checkboxes have been added to so you can switch on the tax and/or shipping suffixes as necessary. I'm not sure this info should be displayed at all locations, let me know if there are any locations where this isn't actually wanted.
The text is wrapped in a span so it can be styled as necessary, we can't use a div as the whole price is already wrapped in a span, but if this info is required on a new line or a smaller font this should all be doable from CSS.
Comment #3
blecheimer commentedthank you very much!
You could possibly solve that, if you put there a textarea (like in the block configuration page) to exclude/show them on special pages:
=> SHIPPING
in the line "excluding shipping costs"
=> is it possible to link the "shipping costs" with a custom page
please add an text field: if it is empty -> no link | if it is filled -> link to the linked page (multi-language feature is welcome!)
(in germany you must show the shipping cost as near as possible)
Thank you very much for your work!
seba
Comment #4
longwaveCan you give me an example of some pages where you do not need the tax/shipping costs text to be displayed? I do not want to add complex configuration options unless I am sure they will be useful!
I will add a link to an optional shipping costs page when I next have time.
Comment #5
blecheimer commentedIn my current opinion it looks fine. so i have not found pages to exclude the lines. (it has been only a suggestion)
The only page - i think - is the shopping cart:
there could be a line under the product list [div id="cart-form-products"] that shows the same (or only the tax line, because it could be complex if there are shipable and non-shipable products) - but it is not a "must have".
Another point:
could you add another span around both single spans (tax & shipping) so it will be easier to design it.
like:
All the best from Berlin!
Comment #6
longwaveThis should be done in Ubercart core and not uc_vat, I have created a patch and a separate issue here: #585764: Add CSS classes to uc_price prefixes and suffixes