fetching product options

Author Message

Daniela Moreno

Tuesday 29 March 2005 9:46:25 am

hi, i created a product class with an option datatype for colors. And it does work, but i cant fetch the option selected when buyers choose the color they want, i cant get it on the basket.
what can i do to get it?

Ɓukasz Serwatka

Wednesday 30 March 2005 12:56:28 am

Hi Daniela,

What exactly you want to do? Could you paste part of your code?

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

Daniela Moreno

Thursday 31 March 2005 12:53:38 pm

i have a class for a certain type of products. For example, buttons, and i want to sell them in 5 different colors.
I created my class just like the "product" one and add the attribute for color. And on the templates i added:

   <div class="attribute-color">
        <p>
           {attribute_view_gui attribute=$node.object.data_map.color}
          </p>
</div>

I do get the options in the product and can choose a color, but when the costumer selects an option and buys the product there's no way for me to see which option (color) the costumer chose. It doesnt appear on the basket or order view. :S

thanx

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 31 2025 06:28:46
Script start
Timing: Jan 31 2025 06:28:46
Module start 'layout'
Timing: Jan 31 2025 06:28:46
Module start 'content'
Timing: Jan 31 2025 06:28:47
Module end 'content'
Timing: Jan 31 2025 06:28:47
Script end

Main resources:

Total runtime1.0703 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.1328151.2109
Module start 'layout' 0.00430.0018 739.343836.6484
Module start 'content' 0.00611.0633 775.9922938.8125
Module end 'content' 1.06940.0008 1,714.804711.8516
Script end 1.0702  1,726.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00260.2415160.0002
Check MTime0.00110.1043160.0001
Mysql Total
Database connection0.00070.064910.0007
Mysqli_queries1.021195.4102570.0179
Looping result0.00060.0519550.0000
Template Total1.044297.620.5221
Template load0.00160.153720.0008
Template processing1.042597.406820.5213
Template load and register function0.00160.150710.0016
states
state_id_array0.00130.125810.0013
state_identifier_array0.00210.198420.0011
Override
Cache load0.00140.1272170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.048420.0003
Fetch class attribute name0.00200.186150.0004
XML
Image XML parsing0.00130.117720.0006
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00110.1024240.0000
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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs