Basket translation problem

Author Message

Tiziano Zonta

Monday 28 November 2005 12:25:00 am

I'm building an ezshop in 3 languages.I have customized the class Product and also the files basket.tpl,confirmorder.tpl, overview.tpl and orderemail.tpl.
To display the product_code of a product I have write this line in all the files:


{section var=product_item loop=$basket.items}
    
[...]
      
<td class="{$product_item.sequence} product-details">
   {attribute_view_gui attribute=$product_item.item.item_object.contentobject.main_node.data_map.product_code}		
</td>

When I access at the site in Italian language (primary language) the site works fine.
If I access at the site in another language (i.e. en or ru) I can't see the value of the product_code in all the above-mentioned files (basket.tpl,confirmorder.tpl, overview.tpl and orderemail.tpl).

I have also tryed this line but with the same results:


{$product_item.item.item_object.contentobject.main_node.data_map.product_number.content|wash()}

Ɓukasz Serwatka

Monday 28 November 2005 1:03:55 am

Tiziano, which datatype is product code? Is "Disable translation" flag set?

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

Tiziano Zonta

Monday 28 November 2005 4:09:39 am

product code is a text line and translation flag is enable

Tiziano Zonta

Wednesday 30 November 2005 2:52:58 pm

Nobody can help me?
I'm stuck with this problem

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 04:42:12
Script start
Timing: Jan 19 2025 04:42:12
Module start 'layout'
Timing: Jan 19 2025 04:42:12
Module start 'content'
Timing: Jan 19 2025 04:42:13
Module end 'content'
Timing: Jan 19 2025 04:42:13
Script end

Main resources:

Total runtime0.8618 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.1484152.6250
Module start 'layout' 0.00640.0032 741.773439.4453
Module start 'content' 0.00960.8507 781.2188545.7656
Module end 'content' 0.86030.0014 1,326.984412.4766
Script end 0.8617  1,339.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3792160.0002
Check MTime0.00130.1507160.0001
Mysql Total
Database connection0.00080.093210.0008
Mysqli_queries0.805793.4934600.0134
Looping result0.00070.0769580.0000
Template Total0.826895.920.4134
Template load0.00250.291620.0013
Template processing0.824395.646520.4121
Template load and register function0.00020.028010.0002
states
state_id_array0.00120.144310.0012
state_identifier_array0.00130.146820.0006
Override
Cache load0.00190.2229180.0001
Sytem overhead
Fetch class attribute can translate value0.00130.151120.0007
Fetch class attribute name0.00140.165450.0003
XML
Image XML parsing0.00170.200120.0009
class_abstraction
Instantiating content class attribute0.00000.001650.0000
General
dbfile0.00120.1358180.0001
String conversion0.00000.001240.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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