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 121 to 140 of 367
1 Jul 2008, 11:18 PM
#121
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

Brent:

Hi Andrew (or any php boffins),

Firstly, many thanks for this mod (You should stick your PayPal address in the readme :smile:)

One question. I'm merging the changes in \includes\templates\uktemplate\sideboxes\tpl_shopping_cart.php but as I can't read code I wanted to check on the following in line 28 where yours has:

  if (($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
> 
> and the stock version has:
> 
> ```php
      if (isset($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {

Is the missing "isset" intentional? I've searched online and found what it does, "isset is a function that takes any variable you want to use and checks to see if it has been set" but I'm a bit out of my depth here :blush:

Regards

Brent

Brent- you are correct. Proper code should see if the variable is 'isset' before checking it. However the first form should still work as the $_SESSION should still return NULL.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

2 Jul 2008, 12:11 AM
#122
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

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

Hi Andrew,

All installed and works like a dream :clap:

I manually hacked my V1.2.x stores to display the VAT by following instructions in other threads but I never got specials to calculate correctly. I've therefore been looking forward to trying your mod for a long time but have just not had a chance to get my act together to upgrade my store.

PM me your PayPal address. This rounds on me.

Regards

Brent

5 Jul 2008, 11:05 PM
#123
bobi avatar

bobi

New Zenner

Join Date:
Nov 2007
Posts:
37
Plugin Contributions:
0

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

Jut want to say thank you to Hem

very nice addon this one, been doing my head for some time now
and finaly i can now relax as this work you have made is very good.

thank you for you,r time

cheers

bobi

5 Jul 2008, 11:58 PM
#124
bobi avatar

bobi

New Zenner

Join Date:
Nov 2007
Posts:
37
Plugin Contributions:
0

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

@ Hem or some one that can help

i have maybe a simple problem for you, but way dificult for me.
the Price is shown exc/incl corectly all the way to theShopping Cart Contents then we go thru Shipping Method and select the method we like
then we go Payment Method and from here the price is not shown correctly anymore, or at list i think so.

All the previus modifications have worked out good,
i will very much like this modification to, so the costumers dont gett confused.

As you can see on the shopin cart the product is 242 euro, but on the Payment Method the product become 194
and then the TAX/VAT is displayed on is own ( that is good in one way)
is it possible to display the incl/exc tax/vat on the Payment Method so it can be 194 exc vat / 242 incl vat

or maybe im the one that is confused here:shocking:, and the procedure is correct

thank you for you,r time

cheers

bobi

18 Jul 2008, 3:55 PM
#125
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

bobi:

@ Hem or some one that can help

i have maybe a simple problem for you, but way dificult for me.
the Price is shown exc/incl corectly all the way to theShopping Cart Contents then we go thru Shipping Method and select the method we like
then we go Payment Method and from here the price is not shown correctly anymore, or at list i think so.

All the previus modifications have worked out good,
i will very much like this modification to, so the costumers dont gett confused.

As you can see on the shopin cart the product is 242 euro, but on the Payment Method the product become 194
and then the TAX/VAT is displayed on is own ( that is good in one way)
is it possible to display the incl/exc tax/vat on the Payment Method so it can be 194 exc vat / 242 incl vat

or maybe im the one that is confused here:shocking:, and the procedure is correct

thank you for you,r time

cheers

bobi

Please check the FAQ section in the install.txt- The instructions are there.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

15 Aug 2008, 1:23 PM
#126
mindows avatar

mindows

New Zenner

Join Date:
Jul 2008
Posts:
8
Plugin Contributions:
0

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

Hi, Andrew

I found a solution to set up the store as retailer (showing prices to the customers with VAT) and as a wholesaler (showing prices for companies without VAT, of course after they are logged in) **http://www.zen-cart.com/forum/showthread.php?p=597486#post597486
**
I'd like to make clear, what the price a customer look at.
If it is a company logged in, I prefer, that next to the price would be "VAT Exc".
And if it is a normal customer or a person - would be "VAT Inc".

I feel I could use your mode... Any advice?

15 Aug 2008, 11:41 PM
#127
cheungvong avatar

cheungvong

New Zenner

Join Date:
Mar 2008
Posts:
7
Plugin Contributions:
0

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

Hi,

Thanks for the Mod... I installed awhile ago and it seems to work fine when someone is logged in but does not work when logged out. The VAT and EX VAT is the same... does anyone know why this is happening?

Thanks,
Cheung
:blink:

18 Aug 2008, 12:05 PM
#128
bikerboy avatar

bikerboy

New Zenner

Join Date:
Aug 2008
Posts:
2
Plugin Contributions:
0

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

Hi

I'm new to ZenCart and am currently configuing our new store at https://www.inter-bikeshop.co.uk using the current version. I have applied Andrew's module to display prices with and without VAT, but can't get it to work. The option appears in the admin panel and I've selected it to show prices Inc and Ex VAT.

To show prices with Tax is also switched on in Store Configuration. But nothing shows up in the store I still just get just the price displayed?

Can someone point me in the right direction to get this sorted.:dontgetit

I'm anxious to get this fix working, as being a UK store we must show prices with tax but ex tax to overseas customers.

Thanks in advance.

Reards

Jon
[email protected]

18 Aug 2008, 1:46 PM
#129
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

mindows:

Hi, Andrew

I found a solution to set up the store as retailer (showing prices to the customers with VAT) and as a wholesaler (showing prices for companies without VAT, of course after they are logged in) **http://www.zen-cart.com/forum/showthread.php?p=597486#post597486
**
I'd like to make clear, what the price a customer look at.
If it is a company logged in, I prefer, that next to the price would be "VAT Exc".
And if it is a normal customer or a person - would be "VAT Inc".

I feel I could use your mode... Any advice?

Are you currently flagging whether a customer is a regular or a company (say using a different mod)??? If so then it would be easy enough to modify the display function to check to see which prices is displayed.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

18 Aug 2008, 1:50 PM
#130
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

cheungvong:

Hi,

Thanks for the Mod... I installed awhile ago and it seems to work fine when someone is logged in but does not work when logged out. The VAT and EX VAT is the same... does anyone know why this is happening?

Thanks,
Cheung
:blink:

You have your store set to calculate tax by customer location- So until the customer logs in the mod does not know which tax rate to use.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

18 Aug 2008, 1:52 PM
#131
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

Bikerboy:

Hi

I'm new to ZenCart and am currently configuing our new store at https://www.inter-bikeshop.co.uk using the current version. I have applied Andrew's module to display prices with and without VAT, but can't get it to work. The option appears in the admin panel and I've selected it to show prices Inc and Ex VAT.

To show prices with Tax is also switched on in Store Configuration. But nothing shows up in the store I still just get just the price displayed?

Can someone point me in the right direction to get this sorted.:dontgetit

I'm anxious to get this fix working, as being a UK store we must show prices with tax but ex tax to overseas customers.

Thanks in advance.

Reards

Jon
[email protected]

Seems to be working fine on your test product.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

18 Aug 2008, 2:01 PM
#132
bikerboy avatar

bikerboy

New Zenner

Join Date:
Aug 2008
Posts:
2
Plugin Contributions:
0

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

Hi

Managed to get it to work now , but only by overwriting core files, not by using files in custom folders, what am i doing wrong?:dontgetit

Jon

18 Aug 2008, 4:01 PM
#133
billnally avatar

billnally

Zen Follower

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

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

Hi, been using this mod for about a couple of months and only just noticed that it’s not charging VAT on shipping. Been reading through this thread and although it’s mentioned a couple of times, I’m not sure what to do about it.
Thanks for any help

18 Aug 2008, 4:01 PM
#134
cheungvong avatar

cheungvong

New Zenner

Join Date:
Mar 2008
Posts:
7
Plugin Contributions:
0

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

hem:

You have your store set to calculate tax by customer location- So until the customer logs in the mod does not know which tax rate to use.

Thank you Hem! Where do I find that setting so it does not calculate by customer location?

Thanks,
Cheung

21 Aug 2008, 4:39 PM
#135
mindows avatar

mindows

New Zenner

Join Date:
Jul 2008
Posts:
8
Plugin Contributions:
0

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

hem:

Are you currently flagging whether a customer is a regular or a company (say using a different mod)??? If so then it would be easy enough to modify the display function to check to see which prices is displayed.

Yes, but I did not create that. VAT for Euro Comp mod asking for a VAT number and that means it is a company. And then another mod Customer Tax Ex mod is flagging them for "a prove". I put a link in a previous message, how it looks.
Would you give a hand, please.

6 Oct 2008, 1:26 PM
#136
j_a_j_o avatar

j_a_j_o

New Zenner

Join Date:
Sep 2008
Posts:
11
Plugin Contributions:
0

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

Hello, i have installed this mod couple weeks ago, but now when i want to start my shop i found problem:

Total Price in shopping cart is displayed without VAT, i made changes from install.txt, is says:

4. 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) : '');

But this works ony for simple items, total price is still displayed without VAT.

My shop is in polish, so i made a little translation, is image below:

6 Oct 2008, 1:34 PM
#137
j_a_j_o avatar

j_a_j_o

New Zenner

Join Date:
Sep 2008
Posts:
11
Plugin Contributions:
0

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

And I forgot:

my shop adress

https://www.tions.pl

24 Nov 2008, 12:46 AM
#138
gairneybank avatar

gairneybank

New Zenner

Join Date:
Mar 2006
Posts:
16
Plugin Contributions:
0

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

hem:

I'll finally get some free time at the end of this week to put this together into a formal contribution (I'm on Christmas holidays). And Jim, I'll have a look at the attribute issue- As I don't use attributes on my site it never occurred to me to check it out.
Hi Andrew,

Installed your contribution. Thank you, great add on.

Did you ever get round to addressing the attribute issue?

Gairneybank

29 Dec 2008, 4:52 PM
#139
rerbe avatar

rerbe

New Zenner

Join Date:
Feb 2004
Posts:
8
Plugin Contributions:
0

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

Hi,
I have installed this mod on my v1.3.8 cart it works fine when not logged in, the display shows includex & excluded prices, but when the customer logs in both prices are the pre-vat prices (lower price), I have checked through the previous posts with no luck, I have tried installing the Rescue Pak1.3.8 again the same???

Please can someone advise as I am almost ready to go live.

Thanking you in advance.

Rich

2 Jan 2009, 7:29 PM
#140
rerbe avatar

rerbe

New Zenner

Join Date:
Feb 2004
Posts:
8
Plugin Contributions:
0

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

I am assuming this thread is dead.

No probs.