arithmetic operation between attributes in a class

Author Message

esperion H

Wednesday 16 November 2005 2:14:06 pm

I am going to sell a product which is tax deductible.

I want to show two prices for my products: One before tax and one after. The price after tax is a function of the price before tax.

How can I set up ezpublish to show this relation automatically?

Can I do it through admin do you think?

Regards, Esperion

Ɓukasz Serwatka

Wednesday 16 November 2005 2:28:28 pm

This topic might be useful
http://ez.no/community/forum/setup_design/price_without_vat_in_user_interface__1

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 00:35:44
Script start
Timing: Jan 19 2025 00:35:44
Module start 'layout'
Timing: Jan 19 2025 00:35:44
Module start 'content'
Timing: Jan 19 2025 00:35:45
Module end 'content'
Timing: Jan 19 2025 00:35:45
Script end

Main resources:

Total runtime0.6853 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.1406152.6406
Module start 'layout' 0.00460.0021 740.781339.4766
Module start 'content' 0.00670.6772 780.2578523.6953
Module end 'content' 0.68390.0013 1,303.95318.1250
Script end 0.6853  1,312.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4343160.0002
Check MTime0.00140.1987160.0001
Mysql Total
Database connection0.00050.070810.0005
Mysqli_queries0.645494.1757540.0120
Looping result0.00050.0802520.0000
Template Total0.657395.920.3287
Template load0.00200.286320.0010
Template processing0.655395.622120.3277
Template load and register function0.00020.030210.0002
states
state_id_array0.00170.250810.0017
state_identifier_array0.00120.170020.0006
Override
Cache load0.00150.2252120.0001
Sytem overhead
Fetch class attribute can translate value0.00060.094420.0003
Fetch class attribute name0.00090.129130.0003
XML
Image XML parsing0.00070.105820.0004
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.1119180.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs