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 101 to 120 of 367
2 May 2008, 9:39 AM
#102
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

Rescue Paks for ZenCart v1.3.7 and v1.3.8 attached.

How to use:

Just unzip the contents of the Rescue Pak and then copy them onto the ZenCart installation. Make sure that the files go into their corresponding folders.

If you have installed any mods that changes any of these core files then you will need to reinstall them. There is no need to reinstall the v1.1 IncExTaxMod as it no longer changes any of the core files.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

13 May 2008, 9:29 AM
#103
craig_heavygoods avatar

craig_heavygoods

New Zenner

Join Date:
Nov 2007
Location:
Frome, UK
Posts:
40
Plugin Contributions:
0

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

hey

I installed this on three websites when Hem started developing it and got it to work...I updated the template yesterday and it was picking up PRICE_INC_TEXT or something along them lines next to the price. So I removed the code that was provided in the first few pages of this thread.

I thought it would be a better idea too install the new version (1.1.0) so I used the resuce file you provided just incase any of the older code was left over. I have also copy and pasted the re-write of SQL code into my patch bit.

My problem is even though I've uploaded all the files in 1.1.0 and set the option to display inc/ex tax, it's just displaying as it was before which is "price: xx.xx"

You'll see what you mean here ```
http://www.active-batteries.co.uk


I'm probably missing a file or something I'm guessing but any help would be great

Craig

Craig

13 May 2008, 9:38 AM
#104
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

craig-heavygoods:

hey

I installed this on three websites when Hem started developing it and got it to work...I updated the template yesterday and it was picking up PRICE_INC_TEXT or something along them lines next to the price. So I removed the code that was provided in the first few pages of this thread.

I thought it would be a better idea too install the new version (1.1.0) so I used the resuce file you provided just incase any of the older code was left over. I have also copy and pasted the re-write of SQL code into my patch bit.

My problem is even though I've uploaded all the files in 1.1.0 and set the option to display inc/ex tax, it's just displaying as it was before which is "price: xx.xx"

You'll see what you mean here ```
http://www.active-batteries.co.uk

> 
> I'm probably missing a file or something I'm guessing but any help would be great
> 
> Craig

Graig- check the Display Prices with Tax option under Configuration->My Store. Make sure this is set to 'Ex/Inc' or 'Inc/Ex'

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

13 May 2008, 9:42 AM
#105
craig_heavygoods avatar

craig_heavygoods

New Zenner

Join Date:
Nov 2007
Location:
Frome, UK
Posts:
40
Plugin Contributions:
0

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

2= Display tax included AND excluded prices , is definatly selected

I don't know if that linked worked before but its

https://www.active-batteries.co.uk

cheers,

Craig

Craig

13 May 2008, 9:52 AM
#106
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

craig-heavygoods:

2= Display tax included AND excluded prices , is definatly selected

I don't know if that linked worked before but its

https://www.active-batteries.co.uk

cheers,

Craig

You need to apply the SQL patch- 2 is no longer a recognised option in v1.1.0

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

13 May 2008, 9:54 AM
#107
craig_heavygoods avatar

craig_heavygoods

New Zenner

Join Date:
Nov 2007
Location:
Frome, UK
Posts:
40
Plugin Contributions:
0

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

ClevaTreva:

Hi Hem

Great Mod! :smile:

I just tried to install this mod.

The SQL bit didn't work. I have no db prefix set and found removing the database names worked:

From this:

UPDATE zencart.configuration SET configuration_description = 'Display prices with Tax?<br>
0= Display with tax excluded<br>
1= Display with tax included<br>
2= Display tax included AND excluded prices', set_function = 'zen_cfg_select_option(array(''0'', ''1'', ''2''),', configuration_value = '2'
WHERE zen_configuration.configuration_id =15;

> 
> ```
UPDATE `configuration` SET `configuration_description` = 'Display prices with Tax?<br>
0= Display with tax excluded<br>
1= Display with tax included<br>
2= Display tax included AND excluded prices', set_function = 'zen_cfg_select_option(array(''0'', ''1'', ''2''),', `configuration_value` = '2'
WHERE `configuration`.`configuration_id` =15;

Also, the excluding VAT bit says 'Ex VAT', but most sites say 'Exc VAT'. I changed this in the IncExTaxMod_defines.php file.
Onwars and upwards. I owe you a beer.

Trev

I've installed this SQL patch is this not correct?

Craig

13 May 2008, 9:59 AM
#108
craig_heavygoods avatar

craig_heavygoods

New Zenner

Join Date:
Nov 2007
Location:
Frome, UK
Posts:
40
Plugin Contributions:
0

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

ok i understand that!

and its kind of working, but the define PRICE_INC_TAX_TEXT is appearing as opposed to inc. tax

am i still missing a file?

Craig

13 May 2008, 11:07 AM
#109
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

If you are using v1.1.0 then the correct SQL is:

UPDATE `configuration` SET `configuration_description` = 'Display prices with Tax?<br>
Display with tax excluded (false)<br>
Display with tax included (true)<br>
Display prices with both tax included and then excluded prices (inc/ex)<br>
Display prices with both tax excluded and then included (ex/inc)<br>
', set_function = 'zen_cfg_select_option(array(\'false\', \'true\', \'inc/ex\', \'ex/inc\'),', `configuration_value`='ex/inc' 
WHERE `configuration_key` ='DISPLAY_PRICE_WITH_TAX';

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

13 May 2008, 11:08 AM
#110
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

craig-heavygoods:

ok i understand that!

and its kind of working, but the define PRICE_INC_TAX_TEXT is appearing as opposed to inc. tax

am i still missing a file?

Yes- includes/languages/english/extra_definitions/YOUR CUSTOM FOLDER/IncExTaxMod_defines.php

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

13 May 2008, 11:16 AM
#111
craig_heavygoods avatar

craig_heavygoods

New Zenner

Join Date:
Nov 2007
Location:
Frome, UK
Posts:
40
Plugin Contributions:
0

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

awww i had it in custom folder so i placed that file in "extra_definations" without creating a new folder and it works fine now!

Thanks so much for your help Hen! your a legend!

Craig

Craig

17 May 2008, 9:28 AM
#113
eggrush avatar

eggrush

Zen Follower

Join Date:
Apr 2007
Posts:
153
Plugin Contributions:
0

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

Hi
How do i go about uninstalling this mod, its a top mod by the way.

Egg :cool:

22 May 2008, 8:37 PM
#115
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

BillNally:

Hi, Brilliant mod and great timing.
Have a little problems. Is there a way of getting the VAT to display in the product index page or at least display the price including VAT.
Thanks

Bill- check the install.txt file included in the mod- Your answer is in the FAQ section.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

2 Jun 2008, 9:26 PM
#117
steddy_eddie avatar

steddy_eddie

New Zenner

Join Date:
Oct 2007
Posts:
7
Plugin Contributions:
0

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

This is indeed a great mod - I was going to implement inc/ex VAT a while ago using the tips before they'd been rolled into a tasty mod.. glad I waited

Hem please PM me your paypal address and allow me to buy you a beer!

4 Jun 2008, 10:38 AM
#118
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

steddy_eddie:

This is indeed a great mod - I was going to implement inc/ex VAT a while ago using the tips before they'd been rolled into a tasty mod.. glad I waited

Hem please PM me your paypal address and allow me to buy you a beer!

Thanks Eddie- I really should get round to setting PayPal up (I like beer)

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

30 Jun 2008, 6:58 PM
#119
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, im in it again and don’t know where I went wrong.
I set up my test site, set up the mod and configured all the prices. The test site works great.
Tonight I have to move all this over to the live site. I put it on maintenance, backed everything up and then copy and pasted the includes folder except the config file. I did the database patch and then swopped the products field from the test web site into the live one. I was sure I had tested this before and I thought it had worked but tonight it hasn’t made the price changes. Everything else is in place but the products VAT settings aren’t even in admin.
Can anyone tell me what fields to move across, thought I had this sussed.
Thanks in advance

1 Jul 2008, 10:08 AM
#120
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 (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:

      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