[SOLVED] ezwebin and currency translation

Author Message

Christophe Bourcier

Tuesday 21 July 2009 12:24:45 am

Hi,

I'm using ezwebin to build an e-commerce solution.

All my prices are in euros, but when I switch the language to English, the currency symbol changes to pound sterling, with the same price number. See an example here:
http://now.ezpublish.no/fre/Products

In the admin interface, I have inactivated all currencies but euros.

Is there a way to tell ezpublish to not translate prices or do I have to hack lib/eztemplate/classes/eztemplatelocaleoperator.php ?

Thanks

Christophe

Max Keil

Tuesday 21 July 2009 4:08:23 pm

Hi Christophe,

replace your "price"-attribute in the product class with "multiprice". I've tested it on our ezwebin - and it works.

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Christophe Bourcier

Wednesday 22 July 2009 1:45:06 am

Hi Max,

Thanks for your reply.

In the administration interface, to change the attribute type, I have to delete the old attribute and create a new one, so I will lose all the prices I have already entered.

How can I change the attribute type without losing all the prices I have already entered?

Christophe

Christophe Bourcier

Monday 03 August 2009 6:28:07 am

Hi,

the solution was rather simple. I just had to change the locale of the english site access to eng-GB@euro.

Christophe

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 31 2025 00:40:53
Script start
Timing: Jan 31 2025 00:40:53
Module start 'layout'
Timing: Jan 31 2025 00:40:53
Module start 'content'
Timing: Jan 31 2025 00:40:53
Module end 'content'
Timing: Jan 31 2025 00:40:53
Script end

Main resources:

Total runtime0.0240 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.2500151.2266
Module start 'layout' 0.00500.0042 739.4766220.7188
Module start 'content' 0.00920.0129 960.1953997.8359
Module end 'content' 0.02210.0018 1,958.031333.9922
Script end 0.0239  1,992.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.8350140.0002
Check MTime0.00114.7437140.0001
Mysql Total
Database connection0.00083.443810.0008
Mysqli_queries0.002711.059830.0009
Looping result0.00000.053710.0000
Template Total0.00135.610.0013
Template load0.00103.964510.0010
Template processing0.00041.605110.0004
Override
Cache load0.00062.705310.0006
General
dbfile0.00083.510380.0001
String conversion0.00000.034840.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