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 41 to 60 of 367
24 Oct 2007, 1:02 PM
#41
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

hem:

Finally change all occurrences of "if (DISPLAY_PRICE_WITH_TAX == 'true')" to "if (DISPLAY_PRICE_WITH_TAX != '0')" in the order total modules found at includes/modules/order_total/ and the advance search page. The files requiring change are:

includes/modules/order_total/ot_cod_fee.php
Line #85 : if (DISPLAY_PRICE_WITH_TAX == 'true') {

includes/modules/order_total/ot_coupon.php
Line #49 : if (DISPLAY_PRICE_WITH_TAX == 'true') {

includes/modules/order_total/ot_group_pricing.php
Line #39 : if (DISPLAY_PRICE_WITH_TAX == 'true') {

includes/modules/order_total/ot_gv.php
Line #44 : if (DISPLAY_PRICE_WITH_TAX == 'true') {

includes/modules/order_total/ot_loworderfee.php
Line #90 : if (DISPLAY_PRICE_WITH_TAX == 'true') {

includes/modules/order_total/ot_shipping.php
Line #85 : if (DISPLAY_PRICE_WITH_TAX == 'true') $order->info['shipping_cost'] += zen_calculate_tax($order->info['shipping_cost'], $shipping_tax);

includes/modules/pages/advanced_search_result/header_php.php

Line #207 : if ((DISPLAY_PRICE_WITH_TAX == 'true') && ((isset($_GET['pfrom']) && zen_not_null($_GET['pfrom'])) || (isset($_GET['pto']) && zen_not_null($_GET['pto'])))) {

Line #225 : if ((DISPLAY_PRICE_WITH_TAX == 'true') && ((isset($_GET['pfrom']) && zen_not_null($_GET['pfrom'])) || (isset($_GET['pto']) && zen_not_null($_GET['pto'])))) {

Line #356 : if (DISPLAY_PRICE_WITH_TAX == 'true') {

Line #381 : if ((DISPLAY_PRICE_WITH_TAX == 'true') && ((isset($_GET['pfrom']) && zen_not_null($_GET['pfrom'])) || (isset($_GET['pto']) && zen_not_null($_GET['pto'])))) {

admin/products_price_manager.php
Line #872 : if (DISPLAY_PRICE_WITH_TAX == 'true') {

includes/classes/order.php
Line #502 : if (DISPLAY_PRICE_WITH_TAX == 'true') {
Line #525 : if (DISPLAY_PRICE_WITH_TAX == 'true') {

If in doubt use the Admin -> Developer Tools and do a Lookup in all files for DISPLAY_PRICE_WITH_TAX

Change the "if (DISPLAY_PRICE_WITH_TAX != '0')" to "if (DISPLAY_PRICE_WITH_TAX == '1')". To see why, do a checkout and check the final total- the tax is not included.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

25 Oct 2007, 2:23 PM
#42
birch avatar

birch

New Zenner

Join Date:
Mar 2007
Location:
Amsterdam, The Netherlands
Posts:
11
Plugin Contributions:
0

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

hem:

Change the "if (DISPLAY_PRICE_WITH_TAX != '0')" to "if (DISPLAY_PRICE_WITH_TAX == '1')". To see why, do a checkout and check the final total- the tax is not included.

Good catch!
Hadn't noticed this effect because I do not have a live shop yet.

Regards,
Peter.

16 Nov 2007, 11:19 AM
#43
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

Final tweak- made a minor change to how the Inc/Ex totals appear in the Shopping Cart (main page)- Before I had them on the same line, now they appear one under the other like all the other areas.

Stylesheet changes (marked in red):

#cartSubTotal {
border-top: 1px solid #cccccc;
font-weight: bold;
text-align: right;
line-height: 1.3em;
padding-right: 2.5em;
}

.tableRow, .tableHeading, #cartSubTotal {
height: 3em;
}

and replaced the space in the display with a break (includes/templates/YOUR_CUSTOM_FOLDER/templates/tpl_shopping_cart_default.php):

if(DISPLAY_PRICE_WITH_TAX=='2')
{
echo '<span class="productTaxExTag"> '.PRICE_EX_TAX_TEXT.'</span><br />';
echo '<span class="productTaxPrice">'.$cartShowTotalIncTax.'</span>';
echo '<span class="productTaxIncTag"> '.PRICE_INC_TAX_TEXT.'</span>';
}

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

26 Nov 2007, 9:29 AM
#44
jimbab avatar

jimbab

New Zenner

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

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

Hi Andrew,

I was trying out your mod yesterday and very impressed !

I did find one a few small problems though.
The problems come when using price modifiers from attributes. If a product has an attribute of lets say size with either normal - at normal price or extra with an additional 3.00 € per unit, the shopping cart shows only the base price without the extra 3.00€ for both the unit price and total units price. The cart total is correct though.

If one ordered a product that is 10.00 € with the extra option +3.00€ the cart will show unit price 10.00€ and next to it total product 10.00€ but will show the correct value of 13.00 € as the cart sub total.( just giving an example without stating both the with and without VAT values) Without the mod selecting an option changes the unit price as would be expected, in this case 13.00€ as unit price.

Also any attribute price options always show up with only the without tax value rather than both with and without VAT to be consistent with the other displays.

I had a look at the link you gave but none of the products use attribute price modifiers.

Any ideas on mods needed ?

Jim

27 Nov 2007, 11:49 AM
#45
pcspot avatar

pcspot

New Zenner

Join Date:
Aug 2007
Posts:
31
Plugin Contributions:
0

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

WOW! I knew I should have studied computer science at some stage!! This looks like alot of work and programming. Can this be made as a quick install for simple folks? I would like to use this but and hesitant to try and mess with core files . my shop is already live and could use this mod. many thanks for your efforts.
Nhttp://www.zen-cart.com/forum/images/smilies/blink.gif
:blink:

4 Dec 2007, 9:37 PM
#46
spbennett avatar

spbennett

Zen Follower

Join Date:
Feb 2007
Location:
Leicester UK
Posts:
230
Plugin Contributions:
0

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

Any chance of a definitve step by step explanation of how to implement this?

I'm kinda confused by all these posts that tell you to do one thing and then to edit that thing later in the thread :dontgetit

Sounds like an ideal solution for me but I can't get my head around all these posts.

Help please???

19 Dec 2007, 12:38 PM
#47
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

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.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

20 Dec 2007, 11:34 AM
#48
fosen_tools avatar

fosen_tools

New Zenner

Join Date:
Nov 2005
Posts:
5
Plugin Contributions:
0

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

I'm confused to, a step by step explanation of how to implement this will be very appreciated. This is a very useful mod for our webshop, nice work hem, keep up with the good work.

21 Dec 2007, 12:11 PM
#49
image_1 avatar

image_1

New Zenner

Join Date:
Apr 2006
Posts:
3
Plugin Contributions:
0

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

Hi

I have followed the steps here and have successfully (so far) got this working on a site ive developed - https://www.teltech.co.uk

However my client has pointed out, when a product with an attribute is added to the cart it doesnt show the right price in there.

For example, there is a refurbished product at £75 ex.vat this goes in cart and shows ok (75ex.vat, 88.13inc.vat). Then on the same product there is an attribute to choose as new, this is £10 more, but goes in cart as £75 ex.vat as well.

Any ideas???

I need to get this right asap!!!

Thanks in advance!!!

21 Dec 2007, 12:55 PM
#50
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

Down on my wishlist

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

21 Dec 2007, 1:34 PM
#51
image_1 avatar

image_1

New Zenner

Join Date:
Apr 2006
Posts:
3
Plugin Contributions:
0

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

oh so its not actually possible to do this?

should i revert my files back?

thanks

21 Dec 2007, 3:18 PM
#52
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

Depends- what's your timescale???

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

29 Dec 2007, 10:12 PM
#53
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

Am I missing something??? I've just formalised the mod and submitted it as an official contribution so I thought I would have a look a the attributes issue. I check out an attributed product on the demo database (Matrox graphics card) but it would seem that even without my mod the shopping cart does not include the value of the extra attribute in the shopping cart those it does appear in the sub-total.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

3 Jan 2008, 4:01 PM
#55
image_1 avatar

image_1

New Zenner

Join Date:
Apr 2006
Posts:
3
Plugin Contributions:
0

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

Hi

Sorry for not replying been off work over xmas!

I did revert my files back, the client needs it to work correctly across all products including attributes. So couldn't keep it that way.

Good to see its a proper download now!

Has the attribute feature been fixed/included then?

If so I will apply this to the site.

Thanks

4 Jan 2008, 10:56 PM
#56
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

Not yet but I am working on it.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

10 Jan 2008, 9:29 AM
#57
craigfer avatar

craigfer

New Zenner

Join Date:
Sep 2007
Posts:
10
Plugin Contributions:
0

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

Hi have loaded this and get this message when installing the sql patch

Failed: 1
ERROR: Cannot execute because table zencart.configuration does not exist. CHECK PREFIXES!
Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.

Can you help?

10 Jan 2008, 9:52 AM
#58
idlerob avatar

idlerob

New Zenner

Join Date:
Apr 2006
Posts:
27
Plugin Contributions:
0

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

Is there a way to show the excluding tax at the end rather than having all the price applied to the non tax and then displaying the including tax at the end. just want it the other way round.
cheers

11 Jan 2008, 10:08 AM
#59
sagivle1 avatar

sagivle1

New Zenner

Join Date:
Dec 2007
Posts:
31
Plugin Contributions:
0

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

Hey guys ,
i have a problem in the VAT module , and it seems that it does not checking if the VAT number is real , so , if i am just putting any values inside of the VAT textbox i am getting the same result as if it was real VAT number..
hope you could help me...
tnx alot!

11 Jan 2008, 12:49 PM
#60
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

craigfer:

Hi have loaded this and get this message when installing the sql patch

Failed: 1
ERROR: Cannot execute because table zencart.configuration does not exist. CHECK PREFIXES!
Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.

Can you help?

Craig, this will be because you have set a prefix for your ZenCart tables. You will have to edit the sql file and add this prefix to the table names. Let me know if you need any help.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com