eCommerce question

Author Message

Michele Toscan

Friday 22 December 2006 6:08:56 pm

I have a record distribution, but I also deal with some dvd movies as well and i'd like to add a few more titles in the future.
I was wondering if it's possible to attach a certain number of attributes to a certain item to make cross reference researches. In other words, I'd like to display format/year/label for my cds, format/year/label/conditions for my vinyl records, director/year/actors for my dvds etc. When I move to the detail of a DVD movie, I would like to just click the director name and have a list of all the DVDs from that certain director.
Is it possible?

Ulrich L.

Saturday 23 December 2006 1:29:04 pm

I am building a very similar application (CD catalogue) and I use object relations in order to achieve this. In your case: You create suitable classes. You create an object for the director. Then you can create an object relation to the director in your DVD objects. Using the "reverse related object" fetch command it is easy to show all DVDs related with a certain director. This will work similarly with other attributes as well, of course.

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 21:05:42
Script start
Timing: Jan 18 2025 21:05:42
Module start 'layout'
Timing: Jan 18 2025 21:05:42
Module start 'content'
Timing: Jan 18 2025 21:05:43
Module end 'content'
Timing: Jan 18 2025 21:05:43
Script end

Main resources:

Total runtime0.7555 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.0048 587.8906152.6094
Module start 'layout' 0.00480.0022 740.500039.4141
Module start 'content' 0.00700.7471 779.9141457.4453
Module end 'content' 0.75410.0013 1,237.35948.1875
Script end 0.7555  1,245.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4288160.0002
Check MTime0.00140.1852160.0001
Mysql Total
Database connection0.00070.090810.0007
Mysqli_queries0.720895.4024540.0133
Looping result0.00040.0575520.0000
Template Total0.728796.520.3644
Template load0.00200.264220.0010
Template processing0.726796.185120.3634
Template load and register function0.00020.027310.0002
states
state_id_array0.00080.102810.0008
state_identifier_array0.00100.126020.0005
Override
Cache load0.00160.217180.0002
Sytem overhead
Fetch class attribute can translate value0.00100.129220.0005
Fetch class attribute name0.00090.118620.0004
XML
Image XML parsing0.00020.027420.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00070.0914100.0001
String conversion0.00000.000640.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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs