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

Al01’s picture

The basic way how to do this is shown in uc_gst.module v. 1.2 on line 33:

      $options['suffixes'][] = t(' GST inc.');

I'd like to go a step further and implement also

  • configuration if to add this suffix (it still seems to be just a German special)
  • wrap this text at least in a span, probably better in a div (e.g. to force a new line, font size)
  • for display of the right percentage the easiest way will be to move $options['suffix'][] after uc_taxes_rate_load() and generate the tax percentage by the way
  • within generation of the suffix $node->shippable must be checked if part two "excl. shipping costs" is required (e.g. digital downloads don't need it)
longwave’s picture

Status: Active » Fixed

Fixed 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.

blecheimer’s picture

Status: Active » Fixed

thank you very much!

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.

You could possibly solve that, if you put there a textarea (like in the block configuration page) to exclude/show them on special pages:

Page specific visibility settings
Show >tax/shipping information< on specific pages:
x Show on every page except the listed pages. 
-  Show on only the listed pages. 
-  Show if the following PHP code returns TRUE (PHP-mode, experts only). 
Pages:
[Textarea] per line one page

=> 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

longwave’s picture

Status: Fixed » Active

Can 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.

blecheimer’s picture

Status: Fixed » Active

In 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:

<span class="uc-price-product uc-price-display uc-price">€16,09
       <span class="price-suffixes"> <!-- new -->
            <span class="price-vat-suffix"> including Mwst 7%</span>
            <span class="price-shipping-suffix"> excluding shipping costs</span>
       </span> <!-- new -->
</span>

All the best from Berlin!

longwave’s picture

Status: Active » Fixed

This 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.