Forums / Features Wish List / Display price with VAT/TAX and Ex VAT/TAX

Display price with VAT/TAX and Ex VAT/TAX

Views: 57,806

Results 161 to 180 of 367
3 Apr 2009, 11:34 AM
#161
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Display price with VAT/TAX and Ex VAT/TAX

zacherynuk:

Hi,

Firstly thank you for all the effort put into this mod - it looks fab and perfect for what I have been looking for!

When I try and install the mod, however, my site bombs to blank page with this error:

[03-Apr-2009 10:22:13] PHP Fatal error: Cannot redeclare zen_get_products_display_price() (previously declared in /usr/local/psa/home/vhosts/shop.informal-it.co.uk/httpdocs/shop/includes/functions/functions_prices.php:156) in /usr/local/psa/home/vhosts/shop.informal-it.co.uk/httpdocs/shop/includes/functions/extra_functions/inc_ex_functions.php on line 13

So, I dutifully commented out lines 256=>294 from includes/functions/functions_prices.php and now the site comes up, but only INC VAT pricing works, if I choose Both, Ex VAT pricing is not displayed...

The only thing Is I am running SitewideMarkup - but this doesn't install includes/functions/functions_prices.php - therefore I am stuck and worried about how to cirrectly install this mod.

Thanks for your time,

Z

What version of ZenCart are you running?

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

3 Apr 2009, 12:43 PM
#162
zacherynuk avatar

zacherynuk

New Zenner

Join Date:
Apr 2009
Posts:
5
Plugin Contributions:
0

Re: Display price with VAT/TAX and Ex VAT/TAX

E-Commerce Engine Copyright © 2003-2009 Zen Cart™
Zen Cart v1.3.8a/v1.3.8

(Your version of Zen Cart™ appears to be current)

Is this bad ?

3 Apr 2009, 3:04 PM
#163
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Display price with VAT/TAX and Ex VAT/TAX

Hi,
I get the same error as Hem with this new version: blank page until inc_ex_functions.php is removed/changed for the old version.
My cart is 1.38a with all patches.
regards
Steve

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

3 Apr 2009, 3:19 PM
#164
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Display price with VAT/TAX and Ex VAT/TAX

torvista:

Hi,
I get the same error as Hem with this new version: blank page until inc_ex_functions.php is removed/changed for the old version.
My cart is 1.38a with all patches.
regards
Steve

Check out the FAQ in the readme. I've uploaded a fixed version to my website so use that instead.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

3 Apr 2009, 4:35 PM
#165
zacherynuk avatar

zacherynuk

New Zenner

Join Date:
Apr 2009
Posts:
5
Plugin Contributions:
0

Re: Display price with VAT/TAX and Ex VAT/TAX

Aha :oops: X2

I hadn't registered the need for the FAQ since I hadn't made any changes to the file "inc_ex_functions.php" which seems to have the function un-commented by default...

Also, the ex-vat prices 'weren't showing' because background & text colour were clashing. What a n00b. Sorry.

So, it's in and looking good!

ta v much,

z

3 Apr 2009, 9:46 PM
#166
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Display price with VAT/TAX and Ex VAT/TAX

zacherynuk:

Aha :oops: X2

I hadn't registered the need for the FAQ since I hadn't made any changes to the file "inc_ex_functions.php" which seems to have the function un-commented by default...

Also, the ex-vat prices 'weren't showing' because background & text colour were clashing. What a n00b. Sorry.

So, it's in and looking good!

ta v much,

z

Nah- not your fault. I hadn't deactivated that function before uploading.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

4 May 2009, 10:01 AM
#167
sir_henry avatar

sir_henry

New Zenner

Join Date:
May 2009
Location:
Beautiful North Yorkshire (UK)
Posts:
10
Plugin Contributions:
0

Re: Display price with VAT/TAX and Ex VAT/TAX

Had to post to say a huge 'thanks' to Hem for all the work on this add-on. Worked a treat and will soon be part of our new shop.

4 May 2009, 4:04 PM
#168
sir_henry avatar

sir_henry

New Zenner

Join Date:
May 2009
Location:
Beautiful North Yorkshire (UK)
Posts:
10
Plugin Contributions:
0

Re: Display price with VAT/TAX and Ex VAT/TAX

Just one question - probably my setup somewhere, but when I change 'Display Prices With Tax' to 'inc/ex' in admin, I get the position changed but not the amounts. In other words an item will display as £10.86 inc VAT and £12.49 ex VAT. Any ideas where I'm going wrong?

5 May 2009, 9:37 AM
#169
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Display price with VAT/TAX and Ex VAT/TAX

Sir Henry:

Just one question - probably my setup somewhere, but when I change 'Display Prices With Tax' to 'inc/ex' in admin, I get the position changed but not the amounts. In other words an item will display as £10.86 inc VAT and £12.49 ex VAT. Any ideas where I'm going wrong?

Are you running the latest version (v1.21a)?

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

5 May 2009, 12:21 PM
#170
sir_henry avatar

sir_henry

New Zenner

Join Date:
May 2009
Location:
Beautiful North Yorkshire (UK)
Posts:
10
Plugin Contributions:
0

Re: Display price with VAT/TAX and Ex VAT/TAX

hem:

Are you running the latest version (v1.21a)?

Yes - only set up this over the weekend.

6 May 2009, 3:20 PM
#171
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Display price with VAT/TAX and Ex VAT/TAX

Sir Henry:

Yes - only set up this over the weekend.

Unzip the attached to includes\functions\extra_functions and it should cure your problems.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

6 May 2009, 4:28 PM
#172
sir_henry avatar

sir_henry

New Zenner

Join Date:
May 2009
Location:
Beautiful North Yorkshire (UK)
Posts:
10
Plugin Contributions:
0

Re: Display price with VAT/TAX and Ex VAT/TAX

hem:

Unzip the attached to includes\functions\extra_functions and it should cure your problems.

You are a true Zen god! Works great now. Many thanks.

6 May 2009, 10:38 PM
#173
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Display price with VAT/TAX and Ex VAT/TAX

Sir Henry:

You are a true Zen god! Works great now. Many thanks.

Not a problem. Have fun with it. Let me know if you hit any other problems.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

21 May 2009, 1:19 PM
#174
kowalczuk avatar

kowalczuk

New Zenner

Join Date:
Jan 2006
Posts:
4
Plugin Contributions:
0

Re: Display price with VAT/TAX and Ex VAT/TAX

hello,

i realise that it's a bit late and that i may have missed it somewhere throughout the thread, but i was wondering whether this mod worked with zen cart 1.3.7? (the install text says tested on 1.3.8...)

apologies if you've already answered this elsewhere...i did look.

anyway, thanks

kowalczuk

22 May 2009, 12:36 PM
#175
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Display price with VAT/TAX and Ex VAT/TAX

kowalczuk:

hello,

i realise that it's a bit late and that i may have missed it somewhere throughout the thread, but i was wondering whether this mod worked with zen cart 1.3.7? (the install text says tested on 1.3.8...)

apologies if you've already answered this elsewhere...i did look.

anyway, thanks

kowalczuk

Someone did test it with 1.3.7 awhile back and got it working.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

25 May 2009, 2:04 PM
#176
sandshark avatar

sandshark

New Zenner

Join Date:
May 2009
Posts:
2
Plugin Contributions:
0

Re: Display price with VAT/TAX and Ex VAT/TAX

Thanks very much for this mod.

I installed it here: http://www.pufferparts.co.uk

I still need to bulk update products tax class to make it display things correctly, but on new products it works fine.

I need help getting it to display the correct amount in the shopping cart, and also in the invoice zen cart sends out. I can seem to get this to work.

Any ideas how to do it please?

25 May 2009, 3:19 PM
#177
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Display price with VAT/TAX and Ex VAT/TAX

sandshark:

Thanks very much for this mod.

I installed it here: http://www.pufferparts.co.uk

I still need to bulk update products tax class to make it display things correctly, but on new products it works fine.

I need help getting it to display the correct amount in the shopping cart, and also in the invoice zen cart sends out. I can seem to get this to work.

Any ideas how to do it please?

It's in the FAQ:

Q. How do I use the inc/ex display method and display the items in the Shopping Cart so show prices including taxes?

A. Again it means changing a core file:

  1. Backup includes\modules\pages\shopping_cart\header_php.php
  2. Edit includes\modules\pages\shopping_cart\header_php.php
  3. Find the following two lines:

$productsPrice = $currencies->display_price($products[$i]['final_price'], zen_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . ($products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->display_price($products[$i]['onetime_charges'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) : '');

$productsPriceEach = $currencies->display_price($products[$i]['final_price'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) . ($products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->display_price($products[$i]['onetime_charges'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) : '');

  1. Delete the class reference '$currencies->' from both lines so they read:

$productsPrice = display_price($products[$i]['final_price'], zen_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . ($products[$i]['onetime_charges'] != 0 ? '<br />' . display_price($products[$i]['onetime_charges'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) : '');

$productsPriceEach = display_price($products[$i]['final_price'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) . ($products[$i]['onetime_charges'] != 0 ? '<br />' . display_price($products[$i]['onetime_charges'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) : '');

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

25 May 2009, 3:23 PM
#178
sandshark avatar

sandshark

New Zenner

Join Date:
May 2009
Posts:
2
Plugin Contributions:
0

Re: Display price with VAT/TAX and Ex VAT/TAX

hem:

It's in the FAQ:

I had tried that, but it turns out I was uploading the file to the wrong template :) Cheors.

Any idea how to make it display in invoices generated by the site?

26 May 2009, 12:16 PM
#179
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Display price with VAT/TAX and Ex VAT/TAX

sandshark:

I had tried that, but it turns out I was uploading the file to the wrong template :) Cheors.

Any idea how to make it display in invoices generated by the site?

Good question- I only coded it as a browser display mod; I never even looked at the print/email side.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

26 May 2009, 11:45 PM
#180
hcd888 avatar

hcd888

Zen Follower

Join Date:
May 2008
Posts:
348
Plugin Contributions:
0

Re: Display price with VAT/TAX and Ex VAT/TAX

Hi, i installed the mod, everything seems to display correctly, unless i show prices with VAT included.

Prices show fine in product info, product listings etc, but when i add to cart. In the Side box it displays £0.00 inc vat

Any help will be very much appreciated thanks :bigups: