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 321 to 340 of 367
28 Jan 2013, 12:19 AM
#321
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Display price with VAT/TAX and Ex VAT/TAX

The bug reported by @Locix has been fixed; users selecting Display Prices with Tax = Ex/inc no longer have to delete the template file ./includes/templates/YOUR_TEMPLATE/templates/tpl_modules_order_totals.php. The new version is available in the plugins area now.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Feb 2013, 3:19 PM
#322
ray_the_otter avatar

ray_the_otter

Zen Follower

Join Date:
Jul 2010
Posts:
278
Plugin Contributions:
0

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

I have installed the mod updated by Mr swguy, all works great etc, however I have a minor problem.

I have edited the /includes/modules/CUSTOM/product_listing.php file to show my LOWEST quantity discount for products on the products listing page with the following found in a posts by Ajeh

$listing->fields['manufacturers_name'] . '</a>';
        break;
        case 'PRODUCT_LIST_PRICE':
        $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
		// bof: display lowest quantity price
if ($lc_price == TEXT_LOGIN_FOR_PRICE_PRICE . '<br />' || $lc_price == TEXT_AUTHORIZATION_PENDING_PRICE . '<br />') {
  $change_price = false;
} else {
  $change_price = true;
}

if ($change_price) {
  $lowest_price = zen_get_products_discount_price_qty((int)$listing->fields['products_id'],20000);
  $lowest_price_tax_class = zen_products_lookup((int)$listing->fields['products_id'], 'products_tax_class_id');
  $lc_price = $currencies->display_price($lowest_price, zen_get_tax_rate($lowest_price_tax_class));
}
// eof: display lowest quantity price
        $lc_align = 'right';
        $lc_text = '<i>From  </i> ' .   $lc_price;

So when I have this modification applied, I no longer get the 'ex VAT' appended to prices on listing pages.

My question is simply; how can get both to work? As I do not know how :blush:

TIA

I am unable to answer any private messages for any of the add-on's I am associated with. I have migrated to other cart systems so sadly cannot offer any assistance, all the best and I hope you get your query fixed soon!

9 Feb 2013, 3:33 PM
#323
ray_the_otter avatar

ray_the_otter

Zen Follower

Join Date:
Jul 2010
Posts:
278
Plugin Contributions:
0

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

hmmm.. it also does not show on the product pages where qty discounts are used when adding the following to /includes/templates/CUSTOM/templates/tpl_product_info_display.php

//bof bof: display lowest quantity price
  //  echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
$discount_price = zen_get_products_discount_price_qty((int)$_GET['products_id'], 5000);
$discount_price = $currencies->display_price($discount_price, $products_tax_class_id);
  echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . ($products_discount_type ? ' Discounts from: ' . $discount_price : '' . get_products_display_price((int)$_GET['products_id']));
// eof bof: display lowest quantity price   

again, i don't know how to get both mods to work together:(

If anyone can help, I'd be very grateful!!

I am unable to answer any private messages for any of the add-on's I am associated with. I have migrated to other cart systems so sadly cannot offer any assistance, all the best and I hope you get your query fixed soon!

9 Feb 2013, 6:29 PM
#324
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

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

Looking at your first question, you'll have to change

 $lc_price = $currencies->display_price($lowest_price, zen_get_tax_rate($lowest_price_tax_class)); 

to something like

$tax_rate = zen_get_tax_rate($lowest_price_tax_class);
$lc_price = display_price_inc_ex_tax($lowest_price,$tax_rate); 

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

10 Feb 2013, 12:47 PM
#325
ray_the_otter avatar

ray_the_otter

Zen Follower

Join Date:
Jul 2010
Posts:
278
Plugin Contributions:
0

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

hi, sadly does not work. I have played a little with the code but nothing I write seems to work. :(

I am unable to answer any private messages for any of the add-on's I am associated with. I have migrated to other cart systems so sadly cannot offer any assistance, all the best and I hope you get your query fixed soon!

10 Feb 2013, 12:57 PM
#326
ray_the_otter avatar

ray_the_otter

Zen Follower

Join Date:
Jul 2010
Posts:
278
Plugin Contributions:
0

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

This is odd............. When I add your snippet its does not show the lowest qty discount, but returns a totally different price. For example.

I have product discounts of
£2.95
£2.70
£2.40
£2.10

With Ajeh's code £2.10 is returned in the listing page.

$lc_price = $currencies->display_price($lowest_price, zen_get_tax_rate($lowest_price_tax_class));

With your code £2.52 is returned on the listing page, which is not part of the qty discount offering; LOL and Ex Vat is not appended to the price

$tax_rate = zen_get_tax_rate($lowest_price_tax_class);
$lc_price = display_price_inc_ex_tax($lowest_price,$tax_rate);

Is is way out of my depth! any ideas? :ohmy:

I am unable to answer any private messages for any of the add-on's I am associated with. I have migrated to other cart systems so sadly cannot offer any assistance, all the best and I hope you get your query fixed soon!

13 May 2013, 10:11 AM
#327
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

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

Code fix

\includes\modules\sideboxes\YourTemplate\inc_ex_tax_sidebox.php

after

```

$title=BOX_HEADING_INC_EX_TAX_SIDEBOX;


insert

	```
$title_link = false;

otherwise the sidebox heading will adopt the sidebox heading link of the sidebox above it, that is if the latter is not also set to false.

cheers

30 May 2013, 12:10 AM
#328
purecarsound avatar

purecarsound

New Zenner

Join Date:
May 2006
Location:
Chester, UK
Posts:
99
Plugin Contributions:
0

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

Hi

I installed this module earlier today and have noticed that on 'Checkout' Page I'm having a few display issues re Tax. See Screenshot Below

Attachment 12578

The £8.90 is the shipping cost is displaying under the Inc / Ex Vat Pricing. Can anyone advise where/what I need to change to get the shipping costs to display next to the shipping option description on this page?

Many thanks

Mark

30 May 2013, 4:26 AM
#329
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

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

swguy:

The bug reported by @Locix has been fixed; users selecting Display Prices with Tax = Ex/inc no longer have to delete the template file ./includes/templates/YOUR_TEMPLATE/templates/tpl_modules_order_totals.php. The new version is available in the plugins area now.

I upgrade my clients website to zen cart 1.5.1 This bug still exits. I'm still getting odd rounding happening with the cart totals. I delete the /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_order_totals.php. and the problem went away.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

30 May 2013, 4:28 AM
#330
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

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

dealman876:

I was referring to the calculations; the subtotal including tax and the total are different

He is right....

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

7 Dec 2013, 3:01 PM
#331
maartenj avatar

maartenj

New Zenner

Join Date:
Apr 2013
Location:
Netherlands
Posts:
12
Plugin Contributions:
0

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

Hi Guys,

First let me see: what a great module! It should be incorporated in the standard zc source!

There is indeed an error in includes/templates/your_template/templates/tpl_modules_order_totals.php
For some reason the Excl and Incl price for an item are off. I guess it has to do with rounding, particular the zen_round() function on line 25 and 26. Also there is a problem that the shipping rate isn't shown including the taxes, but is always displayed excluding tax. For customers that's really a bummer since they can't see the real shipping costs.

I tried to solve it myself, but couldn't find (unfortunately) a solution. I hope someone will!

7 Dec 2013, 3:19 PM
#332
maartenj avatar

maartenj

New Zenner

Join Date:
Apr 2013
Location:
Netherlands
Posts:
12
Plugin Contributions:
0

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

Guys, I just uninstalled everything and don't have any time left right now, but I thought of something!

in the admin --> configuration--> my store-->tax decimal places

I think my value was at 0 when playing with the module, could you try to put it at 2? maybe that's the solution, since i'm sure it has to do with rounding!

30 Mar 2014, 12:55 PM
#333
gsb2007 avatar

gsb2007

New Zenner

Join Date:
Mar 2007
Posts:
8
Plugin Contributions:
0

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

Hi We have this module installed and it works well. However we also have Google Merchant Center Feed installed and when the site is set to show both with and without VAT the feed to Google then only feeds the net price. If you display the price in the metatag title it also shows the net price.

Any idea of how we can display the with VAT price in the meta title when the with and without prices are enabled. This may help us solve the Google Feed at the same time.

Has anyone else had this issue?

Thanks
George

30 Mar 2014, 2:36 PM
#334
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

gsb2007:

Hi We have this module installed and it works well. However we also have Google Merchant Center Feed installed and when the site is set to show both with and without VAT the feed to Google then only feeds the net price. If you display the price in the metatag title it also shows the net price.

Any idea of how we can display the with VAT price in the meta title when the with and without prices are enabled. This may help us solve the Google Feed at the same time.

Has anyone else had this issue?

Thanks
George

Let me ask this question, if the setting of include tax with price is set to 1 instead of 2 or 3 (to show incl/exc or exc/incl respectively) does everything work correctly? This would be a setting that under the recent version of this program doesn't display the two prices together, but does consider the price to include the tax.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

31 Mar 2014, 8:18 AM
#335
gsb2007 avatar

gsb2007

New Zenner

Join Date:
Mar 2007
Posts:
8
Plugin Contributions:
0

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

Hi

Thanks for getting back to me, yes we have ad to set it to 1 to only show price with tax. Once that is set the Google Feed sends the with Tax price to Google Shopping.

We want to show both with and without VAT pricing in the shop as the shop is a business to business site a customers want to see net pricing as well as gross. Google however bans sites that feed prices without Tax.

Best regards
George

31 Mar 2014, 11:43 AM
#336
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

gsb2007:

Hi

Thanks for getting back to me, yes we have ad to set it to 1 to only show price with tax. Once that is set the Google Feed sends the with Tax price to Google Shopping.

We want to show both with and without VAT pricing in the shop as the shop is a business to business site a customers want to see net pricing as well as gross. Google however bans sites that feed prices without Tax.

Best regards
George

Based on that, two things: there is a mod to ZC core files related to DISPLAY_PRICE_WITH_TAX. (I think is the constant) that must be changed from == true to !=false and at least one change of != true to == false.
Or could change the functions/extra_functions file and change some SQL to have two switches instead of the one to control display of the VAT inc/ex prices.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

8 May 2014, 12:05 PM
#337
ri_vier avatar

ri_vier

New Zenner

Join Date:
May 2010
Location:
The Netherlands, Waddinxveen
Posts:
5
Plugin Contributions:
0

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

Hello,

I have a problem and I think I am reading over the answer. Please tell me what to do.

I have installed the mod but in step 2 of 3 the price of the sub total is always .00 at the end.
So when an item is 1.10 it displays 1.00, or when an item is 3.95 it displays 3.00 and will calculat the VAT according the sub total what is wrong.

What am i doing wrong or how can I fix this.
Any help is welcome.

Richard.

8 May 2014, 12:11 PM
#338
ray_the_otter avatar

ray_the_otter

Zen Follower

Join Date:
Jul 2010
Posts:
278
Plugin Contributions:
0

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

delete the offending file and revert back to the stock file. This mod has a major flaw with rounding. It's only worth using the display ex & inc vat aspect on the products page and listing page...... when it comes to the checkout aspect of the system, it's fcuked.

I am unable to answer any private messages for any of the add-on's I am associated with. I have migrated to other cart systems so sadly cannot offer any assistance, all the best and I hope you get your query fixed soon!

8 May 2014, 12:39 PM
#339
ri_vier avatar

ri_vier

New Zenner

Join Date:
May 2010
Location:
The Netherlands, Waddinxveen
Posts:
5
Plugin Contributions:
0

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

I delete the /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_order_totals.php. and the problem went away.
I am glad with this mod, so thanks!

Richard.

8 May 2014, 2:11 PM
#340
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

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

ri-vier:

I delete the /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_order_totals.php. and the problem went away.
I am glad with this mod, so thanks!

Richard.

Try using this tpl_modules_order_totals.php here. I modified the code a little. Now it should work correctly.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation