Shop and rounding prices - problem

Author Message

Sebastian Gęsior

Friday 29 August 2008 4:22:18 am

Hello,
I'm trying to set up an online store based on eZ Publish 4.01 (updated from 4.0). Every product class uses multiprice and I also set up 4 currencies. Everything is ok, the prices are up to date thanks to eZECB, but they don’t round according to rules from shop.ini. I tried to set it on different ways, but with no luck. Now my shop.ini looks like this (MathSettings part):

[MathSettings]
RoundingPrecision=1
RoundingType=ceil
RoundingTarget=99
MathHandler=eZPHPMath

and the price is still for example: € 8.06. Oh, the cache is cleared after any change.

I checked it on two different machines and it doesn’t work for me.
Could you tell me, is there something that I’m still missing? I’m completely out of ideas how to make it work.

Sebastian Gęsior

Wednesday 17 September 2008 5:39:10 am

Oh come on, is it really THAT hard problem? ;)
Maybe it is something with templates - but I use standard overrides from ezwebin. I really don't know how to deal with this...

André R.

Wednesday 17 September 2008 8:34:08 am

Could it be VAT related?

ref:
http://issues.ez.no/IssueView.php?Id=12607&activeItem=62

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 18 2025 11:39:26
Script start
Timing: Jan 18 2025 11:39:26
Module start 'layout'
Timing: Jan 18 2025 11:39:26
Module start 'content'
Timing: Jan 18 2025 11:39:27
Module end 'content'
Timing: Jan 18 2025 11:39:27
Script end

Main resources:

Total runtime0.7662 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 594.3203152.6250
Module start 'layout' 0.00720.0038 746.945339.4453
Module start 'content' 0.01100.7538 786.3906536.7656
Module end 'content' 0.76480.0014 1,323.156312.4688
Script end 0.7662  1,335.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4651160.0002
Check MTime0.00150.2009160.0001
Mysql Total
Database connection0.00160.204210.0016
Mysqli_queries0.712893.0222570.0125
Looping result0.00070.0961550.0000
Template Total0.720294.020.3601
Template load0.00300.391420.0015
Template processing0.717293.597520.3586
Template load and register function0.00030.033010.0003
states
state_id_array0.00170.225410.0017
state_identifier_array0.00080.108720.0004
Override
Cache load0.00270.3459170.0002
Sytem overhead
Fetch class attribute can translate value0.00100.125820.0005
Fetch class attribute name0.00150.192740.0004
XML
Image XML parsing0.00070.088920.0003
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00090.1137170.0001
String conversion0.00000.001140.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs