PC Review


Reply
Thread Tools Rate Thread

Bookmarklet to add VAT (sales tax) to web prices

 
 
Jane D
Guest
Posts: n/a
 
      17th Sep 2004
I have become more and more pleased with what bookmarklets can do for me on
my opera browser.

Just to really make me really happy I would love to find a bookmarklet which
automatically added VAT (very similar to sales tax in the US) to a price
shown on a web page.

It could work it one of two ways:

(1) Maybe the bookmarklet would need the user to highlight the price and
then when the bookmarklet was actioned, it would popup a new price inclusive
of VAT (at 17.5% for the UK).

(2) Or alternatively maybe the boomarklet would locate all the currency
entries on a page and somehow (how?) show them with the tax applied. I have
seen bookmarklets which can scan a web page: for exmaple those which
highlight every occurence on a aweb page of a particular word. Maybe the
same sort of thing can be done for figures on a web page.

Do either of these bookmarklets already exist?

A poor third way might be to have a popup box into which the price is
entered and the bookmarkelt already knows the mutliplier to add VAT (sales
tax) so you just have to press enter.

I suspect it must be a common enough need to re-calculate prices when they
are shown exclusive of VAT (or sales tax).

Jane


[Please excuse the crossposting. I have kept to relevant groups.]
 
Reply With Quote
 
 
 
 
Rob Morley
Guest
Posts: n/a
 
      17th Sep 2004
In article <9567CDB7311483F16A@127.0.0.1>, "Jane D" (E-Mail Removed)
says...
<snip>
> [Please excuse the crossposting. I have kept to relevant groups.]
>

No you haven't.
 
Reply With Quote
 
Jane D
Guest
Posts: n/a
 
      17th Sep 2004
>>I have become more and more pleased with what bookmarklets can
>>do for me on my opera browser.
>>
>>Just to really make me really happy I would love to find a
>>bookmarklet which automatically added VAT (very similar to
>>sales tax in the US) to a price shown on a web page.


(E-Mail Removed) wrote:
>
> The ASA states that web sites must display vat-inclusive prices
> by law. I successfully got them to force Expansys to correct
> their pages a few years ago.



Well done!

OTPH do sites selling largely to the trade need to show VAT?

Take Misco for example. http://www.misco.co.uk/ They are linked to Simply
but I get much better customer service at Misco and I can open an account
with them through my small company. However my company is too small to be
able to claim back VAT.

They are trade only and they do display prices with VAT. Are they allowed
to do that from what you say?
 
Reply With Quote
 
MLC
Guest
Posts: n/a
 
      17th Sep 2004
_Jane D_, venerd́ 17/set/2004:

> I have become more and more pleased with what bookmarklets can do for me on
> my opera browser.
>
> Just to really make me really happy I would love to find a bookmarklet which
> automatically added VAT (very similar to sales tax in the US) to a price
> shown on a web page.
>
> It could work it one of two ways:
>
> (1) Maybe the bookmarklet would need the user to highlight the price and
> then when the bookmarklet was actioned, it would popup a new price inclusive
> of VAT (at 17.5% for the UK).

[...]

Hi Jane,
I've made for you a bookmarklet of the (1) kind.
It is at the bottom of this page, called vatIncl:

http://fido.altervista.org/bm/bookmarklets.php

I've tested it on FireFox, then let me know if it works on Opera too, so I
can add its icon. For sure it doesn't work on Internet Explorer, I still
have to look into it.

Last note: you in UK are lucky, we in Italy have IVA (our VAT) at 20%!

Ciao,

X'Posted to: opera.general,alt.comp.freeware,uk.comp.vendors,uk.comp.homebuilt
--
Maria Luisa C - 17/09/2004 16.07.30
 
Reply With Quote
 
Jane D
Guest
Posts: n/a
 
      18th Sep 2004
> _Jane D_, venerd́ 17/set/2004:
>
>> I have become more and more pleased with what bookmarklets can
>> do for me on my opera browser.
>>
>> Just to really make me really happy I would love to find a
>> bookmarklet which automatically added VAT (very similar to
>> sales tax in the US) to a price shown on a web page.
>>
>> It could work it one of two ways:
>>
>> (1) Maybe the bookmarklet would need the user to highlight
>> the price and then when the bookmarklet was actioned, it would
>> popup a new price inclusive of VAT (at 17.5% for the UK).
>> [...]



MLC <(E-Mail Removed)> wrote:
>
> Hi Jane,
> I've made for you a bookmarklet of the (1) kind.
> It is at the bottom of this page, called vatIncl:
>
> http://fido.altervista.org/bm/bookmarklets.php
>
> I've tested it on FireFox, then let me know if it works on
> Opera too, so I can add its icon. For sure it doesn't work on
> Internet Explorer, I still have to look into it.



Your bookmarklet works just fine on my Opera 7.5. Thank you very much for
making such a bookmarklet.

Can I politely suggest two small improvements?

ONE is to round the output number to 2 decimal places. There must be little
demand for any greater accuracy than that.

TWO is harder. When I select a price on a webpage for your bookmarklet then
I find it easiest to double click the price. This usually means that the
currency symbol before the digits also gets selected with the following
number.

Would it be possible to have your bookmarklet ignore the leading character
if it was non-numeric? (If you wanted to be really very clever then you
could reinsert the currency symbol to precede the output number!)

>
> Last note: you in UK are lucky, we in Italy have IVA (our VAT)
> at 20%!


We are lucky that we pay more but at least you can calculate the IVA more
easily in your head! :-)

>
> Ciao,
>
> X'Posted to:
> opera.general,alt.comp.freeware,uk.comp.vendors,uk.
> comp.homebuilt


 
Reply With Quote
 
MLC
Guest
Posts: n/a
 
      18th Sep 2004
_Jane D_, sabato 18/set/2004:

> Your bookmarklet works just fine on my Opera 7.5. Thank you very much for
> making such a bookmarklet.


You're welcome :-)
>
> Can I politely suggest two small improvements?
>
> ONE is to round the output number to 2 decimal places. There must be little
> demand for any greater accuracy than that.


You're right. Done.

>
> TWO is harder. When I select a price on a webpage for your bookmarklet then
> I find it easiest to double click the price. This usually means that the
> currency symbol before the digits also gets selected with the following
> number.
>
> Would it be possible to have your bookmarklet ignore the leading character
> if it was non-numeric? (If you wanted to be really very clever then you
> could reinsert the currency symbol to precede the output number!)


I've done also this, including though only £ and $ currency symbols, to keep
it simple. I hope it works as you need.

The link is always
http://fido.altervista.org/bm/bookmarklets.php
last bookmarklet of the page.

>
>>
>> Last note: you in UK are lucky, we in Italy have IVA (our VAT)
>> at 20%!

>
> We are lucky that we pay more but at least you can calculate the IVA more
> easily in your head! :-)


Well, it isn't always true because for convenience goods it is at 19% :-/

Ciao,

X'Posted to: opera.general,alt.comp.freeware,uk.comp.vendors,uk.comp.homebuilt
--
Maria Luisa C - 18/09/2004 23.39.38
 
Reply With Quote
 
Jane D
Guest
Posts: n/a
 
      19th Sep 2004
> _Jane D_, sabato 18/set/2004:
>>
>> TWO is harder. When I select a price on a webpage for your
>> bookmarklet then I find it easiest to double click the price.
>> This usually means that the currency symbol before the digits
>> also gets selected with the following number.
>>
>> Would it be possible to have your bookmarklet ignore the
>> leading character if it was non-numeric? (If you wanted to be
>> really very clever then you could reinsert the currency symbol
>> to precede the output number!)



MLC <(E-Mail Removed)> wrote:
>
> I've done also this, including though only £ and $ currency
> symbols, to keep it simple. I hope it works as you need.
>
> The link is always
> http://fido.altervista.org/bm/bookmarklets.php
> last bookmarklet of the page.


This works nicely. :-) I even went to a page with very unusual decimal
points http://www.snapshotpress.co.uk/orderonline_gbp.htm
and it worked there too! I have no idea what character the author used but
your routine deals with it.

HOWEVER ... one thing is overlooked and that is when the price is over £1000
and the web page shows this as £1,000 using a comma as a delimiter for
thousands.

For example on http://www.saddler.co.uk/classified/pages/horsebox.htm at the
bottom of the first screen it says:

Price: £3,600 ono

When I use your new 'vatincl' bookmarklet then the bookmarklet assumes that
the £3,600 is actually £3.600! (Very ironically, I know that in many
European countries this is exactly how thousands are delimited.) The answer
your bookmarklet gives is £3.53 which is not right.

Is there a way to ignore the commas on the number you read from the web
page?
 
Reply With Quote
 
MLC
Guest
Posts: n/a
 
      19th Sep 2004
_Jane D_, domenica 19/set/2004:

> This works nicely. :-) I even went to a page with very unusual decimal
> points http://www.snapshotpress.co.uk/orderonline_gbp.htm
> and it worked there too! I have no idea what character the author used but
> your routine deals with it.


I have no idea either! The merit goes all to JavaScript language :-)
>
> HOWEVER ... one thing is overlooked and that is when the price is over £1000
> and the web page shows this as £1,000 using a comma as a delimiter for
> thousands.
>
> For example on http://www.saddler.co.uk/classified/pages/horsebox.htm at the
> bottom of the first screen it says:
>
> Price: £3,600 ono
>
> When I use your new 'vatincl' bookmarklet then the bookmarklet assumes that
> the £3,600 is actually £3.600! (Very ironically, I know that in many
> European countries this is exactly how thousands are delimited.) The answer
> your bookmarklet gives is £3.53 which is not right.
>
> Is there a way to ignore the commas on the number you read from the web
> page?


I think so. Check that my web page
However I hope you don't mind if the result is not formatted, e.g. it is
without commas or points.
I've also added the euro symbol to the possible currencies, you never know
the UK will join... ;-)
At the moment in the result there is no space between the currency symbol
and the number. If you like better a space, let me know.


X'Posted to: opera.general,alt.comp.freeware,uk.comp.vendors,uk.comp.homebuilt
--
Maria Luisa C - 19/09/2004 22.21.09
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Matching sales records to updated prices, by date Kelii Microsoft Access 5 7th Dec 2006 04:14 AM
Sales order (northwind) with Multiple prices for each product =?Utf-8?B?YXNobGFuZGRhdmU=?= Microsoft Access Forms 1 18th Jul 2006 12:44 AM
CALCULATE SALES PRICES ON OLD INVOICES =?Utf-8?B?REFWRQ==?= Microsoft Excel Misc 1 6th Dec 2005 10:12 PM
Hey sorry I wont mention ANY DEALS whatsoever any sales or prices John@Smith.com Computer Hardware 1 20th Feb 2005 08:46 PM
IE and bookmarklet popup =?Utf-8?B?RnJhbms=?= Windows XP Internet Explorer 5 30th Nov 2004 12:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:26 AM.