Price without VAT in user interface

Author Message

Esteban Eugenio

Thursday 24 February 2005 10:50:00 am

I'm building a webshop using eZ, using a VAT of 15% and let's say I edit a product and give it a price of 100.00. When the product is displayed in the user interface, it appears with a price of 115.00. However, I want it to <i>display the price WITHOUT VAT</i> until the user select the product to buy it.

How can I do that?

bisk

Friday 25 February 2005 1:34:19 am

create an override for the ezprice template, content/datatype/view/ezprice.tpl

and in the override template change the inc_vat_price to ex_vat_price

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 02:34:34
Script start
Timing: Jan 19 2025 02:34:34
Module start 'layout'
Timing: Jan 19 2025 02:34:34
Module start 'content'
Timing: Jan 19 2025 02:34:34
Module end 'content'
Timing: Jan 19 2025 02:34:34
Script end

Main resources:

Total runtime0.0134 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.2734152.6406
Module start 'layout' 0.00520.0027 741.914139.4609
Module start 'content' 0.00800.0036 781.375089.1172
Module end 'content' 0.01150.0019 870.492230.3047
Script end 0.0134  900.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002518.4753140.0002
Check MTime0.00118.1303140.0001
Mysql Total
Database connection0.00075.183210.0007
Mysqli_queries0.002518.340230.0008
Looping result0.00000.088910.0000
Template Total0.001611.810.0016
Template load0.00096.395410.0009
Template processing0.00075.321810.0007
Override
Cache load0.00053.890910.0005
General
dbfile0.00021.667380.0000
String conversion0.00000.053340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs