Custom Product

Author Message

Steve Brown

Thursday 30 June 2005 8:10:18 pm

I have created a custom product class called <b>my_image</b>. Then I created a section <b>art section</b>. I created a folder for the <b>art section</b> and set up a policy so anonymous users can access an <b>Art</b> folder. I assigned the <b>art section</b> to the <b>Art</b> folder. I created an instance of my_image in the <b>Art</b> folder, but when I browse to that folder, all I can see is an icon and the product name. If I added a standard product, I would be able to see all the attributes. How can I make the attributes of my custom product visible? I can only see it if I click on the icon or the name (using a template similar to the one in the 'Build an eCommerce Website...' article). The answer to this question should be added to the article.

ludo thomas

Wednesday 06 July 2005 7:49:44 am

hi steve.
You just see the name of your product because your are in the line mode (template/line/product.tlp(e;g)).
when you clik the name, you see the product in full mode.

so your solution is to hack th full mode template and paste it in override/template/line/product.tpl.

that's all

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:00:24
Script start
Timing: Jan 18 2025 21:00:24
Module start 'layout'
Timing: Jan 18 2025 21:00:24
Module start 'content'
Timing: Jan 18 2025 21:00:25
Module end 'content'
Timing: Jan 18 2025 21:00:25
Script end

Main resources:

Total runtime0.9139 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.0063 587.7891152.6094
Module start 'layout' 0.00630.0040 740.398439.4297
Module start 'content' 0.01030.9022 779.8281490.8438
Module end 'content' 0.91250.0014 1,270.67198.1953
Script end 0.9139  1,278.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4048160.0002
Check MTime0.00130.1448160.0001
Mysql Total
Database connection0.00070.081910.0007
Mysqli_queries0.864394.5688540.0160
Looping result0.00060.0686520.0000
Template Total0.872395.420.4362
Template load0.00260.283520.0013
Template processing0.869795.161420.4349
Template load and register function0.00020.025310.0002
states
state_id_array0.00200.221310.0020
state_identifier_array0.00190.208420.0010
Override
Cache load0.00210.2303110.0002
Sytem overhead
Fetch class attribute can translate value0.00100.105020.0005
Fetch class attribute name0.00150.163430.0005
XML
Image XML parsing0.00050.060120.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00160.1719160.0001
String conversion0.00000.001140.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs