Displaying (GST incl.) or (GST free) after price?
Hey all,
After trawling through the forums I cannot find any answer as to how to display either (GST incl.) or (GST free) after a product's price. This would obviously be dependant on whether the product is subject to tax or not.
Now I've already set up tax zones and all that, and it all works correctly however GST (Australian Tax) is not explicitly shown anywhere in the product detail nor checkout - rather it is merely included in the price of the product.
How do I change the pricing information of each product from:
-----
Product A
$10
-----
to:
-----
Product A
$10 (GST Incl.) or (GST free)
-----
I would prefer not to include it in the product description as it does not show on internal search pages.
Any help in this matter would be much appreciated!
Re: Displaying (GST incl.) or (GST free) after price?
Hi,
Have you found an answer to this question yet, as this is exactly the question I have as well.
cheers
Re: Displaying (GST incl.) or (GST free) after price?
Hi Guys,
> Have you found an answer to this question yet, as this is exactly the question
> I have as well.
To the best of my knowledge the only way to do this is with a little bit of custom coding.
However, before you even consider doing that, I trust that you are aware that by law, you must specify your prices as GST inclusive.
Cheers
Rod
Re: Displaying (GST incl.) or (GST free) after price?
Hi,I have been able to add the words Incl GST before my prices and am happy with this at the moment
I went into includes/functions/functions_price.php changed the bit that says
if ($display_normal_price == 0) {
// don't show the $0.00
$final_display_price = $show_special_price . $show_sale_price . $show_sale_discount;
} else {
$final_display_price = $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
}
to read
if ($display_normal_price == 0) {
// don't show the $0.00
$final_display_price = $show_special_price . $show_sale_price . $show_sale_discount;
} else {
$final_display_price = 'Incl GST ' .[/B] $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
}
and it nows shows in the front of every price.
if you find a way to move it to behind the price, that would be great
Cheers
Re: Displaying (GST incl.) or (GST free) after price?
G'day partyparcels,
> Hi,I have been able to add the words Incl GST before my prices and > am happy with this at the moment
> I went into includes/functions/functions_price.php
zencart offers an easier way. log onto admin, browse to localisation/currencies. Edit the "symbol" fields.
eg, if you wish it to display "Inc GST" to the right of the currency fields, define "symbol right" as "Inc GST". Simple eh ;-)
Cheers
Rod
Re: Displaying (GST incl.) or (GST free) after price?
Wow- that is much easier! Thanks for that! Does that need to be backup somewhere in the template files? Is there a way for there to be a space between the last number at the Incl? When I put a space before it in admin it doesn't translate through.
Re: Displaying (GST incl.) or (GST free) after price?
> Wow- that is much easier! Thanks for that!
<smiles>
> Does that need to be backup somewhere in the template files?
No. It is stored in the database.
> Is there a way for there to be a space between the last number at > the Incl? When I put a space before it in admin it doesn't translate >through.
Spaces can be added using the html 'space' format, namely:
Simply add that where ever you want a space character to appear.
The leading "&" and trailing ";" are required.
If you wish to add two spaces, it would look like this:
Cheers
Rod
Re: Displaying (GST incl.) or (GST free) after price?
Thanks for all your help. I am now trying to use the space to line up some attributes at one word is a lot shorter than the others to the radio buttons do not line up. This seems to be working, but in the attribute name box in admin there isn't enough space to type that space command enough times so I have an attribute that reads cups   but need 2 more to make things line up. Is there and easier way or can i get to the coding and add them there?
http://partyparcels.com.au/index.php...products_id=54
Here is the url.
Cheers again.
Re: Displaying (GST incl.) or (GST free) after price?
G'day partyparcels,
> so I have an attribute that reads cups   but
> need 2 more to make things line up. Is there and easier way or can > i get to the coding and add them there?
Sure you can get your hands dirty and tweak the coding if you desire, but generally speaking the less of this you do, the less problems you'll have when you do an upgrade.
As for the html " ", it isn't really designed for multiple spaces and text formatting, and you try it you may get unexpected or inconsistent results depending on the the browser used and the fonts available.
The best way to keep text formatting in html is by using the "<pre></pre>" tags. Anything placed within these tags *should* get dispayed exactly as entered (preformatted).
Cheers
Rod
Re: Displaying (GST incl.) or (GST free) after price?
Hi Folks,
I have added the "Inc GST" in the Symbol Right field.
But now I get after the price the "Inc" displayed over the frame border and the "GST" on the next line down below the price. This only happens in pages 2 & 3 in "cart total" of the checkout process, but doesn't occur when it displays the cart contents on page 3.
Is it just me experiencing this? How do you fix it, any ideas please!
Cheers