Datatype : Mix multioption & ObjectsRelation ?

Author Message

H-Works Agency

Sunday 03 December 2006 6:50:49 am

Hi all,

I am creating a webshop based on EZP.

My problem is that i don't know how to handle the complex product structure i am facing though it's a classical structure for products.

My products have this structure :

color 0 => (size list for color 0 -> quantity for this color into this size)
=> images list (for this color)

color 1 => (size list -> quantity)
=> images list

...etc

The first relation (color =>size list -> quantity) can be handeled by the multi-option datatype (though i have to use 'additional_price' as quantity.

But how can i assign to each color a list of pictures stored into the media/images ?

I am shure this problem has already been seen.

Do i have to create a new datatype ?

Do i have to use multioption + objects relation and use the name of the color in multioption as the name of the image in objects relations to link the two ?

Thanx for your help. Martin

EZP is Great

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 21 2025 21:06:08
Script start
Timing: Jan 21 2025 21:06:08
Module start 'layout'
Timing: Jan 21 2025 21:06:08
Module start 'content'
Timing: Jan 21 2025 21:06:08
Module end 'content'
Timing: Jan 21 2025 21:06:08
Script end

Main resources:

Total runtime0.0212 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.0469151.2266
Module start 'layout' 0.00770.0034 739.273436.6797
Module start 'content' 0.01110.0084 775.953190.1875
Module end 'content' 0.01950.0016 866.140629.9922
Script end 0.0211  896.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002913.4826140.0002
Check MTime0.00135.9985140.0001
Mysql Total
Database connection0.00104.698910.0010
Mysqli_queries0.003214.920830.0011
Looping result0.00000.080010.0000
Template Total0.00125.410.0012
Template load0.00094.349510.0009
Template processing0.00021.067410.0002
Override
Cache load0.00073.119910.0007
General
dbfile0.003014.379780.0004
String conversion0.00000.048540.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