Forums / Developer / Webshop / Product Category / Product Specification

Webshop / Product Category / Product Specification

Author Message

Nicolas Ottavi

Monday 15 May 2006 5:02:30 am

Hi there,

For a future webshop I have to implement a kind of matrix for each product. This matrix will contain product features/specifications. Each product is member of a product category (ie TV > LCD TV). All the products within this category will have the same kind of specifications (with different values).

The specificity is that:
- Each product in a given category have the same specifications
- The category page will display a kind of comparative table which will display products as rows, and as columns we will have product prices, and 3 or 4 specifications selected by the client. (This can be changed). You can see an example of what is expected here:
http://www.darty.com/webapp/wcs/stores/servlet/DartyVerticalComparatorView?storeId=10001&u=2&r=12458&f=1115&drct=1&fsel=1

At the beginning of the project I was planning to use the matrix datatype. But this will need to be customized to fit the following needs:
- Some specifications can be added to a product category/family.
- Some could be deleted
- Some products can have an empty value for a given specifications
- The specifications can be reordered.
- The specifications that will be used on the category page can be selected by the site admin and can be changed.
- The specifications list should be managed on the category level, and in case of change should update all products of this category.

In a perfect world, the product specifications should be managed while creating/editing a product. So object relation is not the best solution.

As we will have a lot of product categories (about 50), having one class per product family is not, to my point of view, a good solution, as It could be hard to manage (even if we could group this into a class group).

If you have any idea on how to implement this the best and effortless way, your help is highly welcome !

Thanks for your time and your help,

Nicolas
Internethic.com

eZ debug

Timing: Jan 31 2025 01:13:42
Script start
Timing: Jan 31 2025 01:13:42
Module start 'content'
Timing: Jan 31 2025 01:13:42
Module end 'content'
Timing: Jan 31 2025 01:13:43
Script end

Main resources:

Total runtime0.2035 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.0625370.2734
Module start 'content' 0.00720.0133 958.33591,001.4688
Module end 'content' 0.02040.1830 1,959.80473,893.0391
Script end 0.2034  5,852.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00422.0771200.0002
Check MTime0.00120.6105200.0001
Mysql Total
Database connection0.00090.462910.0009
Mysqli_queries0.110754.38931410.0008
Looping result0.00140.69941390.0000
Template Total0.182689.710.1826
Template load0.00080.369010.0008
Template processing0.181989.358310.1819
Override
Cache load0.00050.234410.0005
Sytem overhead
Fetch class attribute can translate value0.00190.943010.0019
XML
Image XML parsing0.00020.103210.0002
General
dbfile0.00783.8124200.0004
String conversion0.00000.008030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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