Diferents options for the same product

Author Message

Albert Hornos

Wednesday 27 April 2005 10:47:35 am

Hi,
Could anyone explain me how can I define 2 diferent prices for the same product?
I want to create a new product (for example a t-shirt) and if the color of the t-shirt is red the price will be 5 else if t-shirt is white the price will be 3.

Thanks

Ɓukasz Serwatka

Friday 29 April 2005 5:34:46 am

Hi,

You will have to use option datatype or multioption datatype.

This datatype makes it possible to create a single group of options for each content object. Each option can be assigned a short text and an additional price. For example, it can be used to sell T-shirts in different colors where the price is different for some (or all) colors.

This is from upcoming docs which will be availabe soon ;)

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

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 19 2025 09:52:07
Script start
Timing: Jan 19 2025 09:52:07
Module start 'layout'
Timing: Jan 19 2025 09:52:07
Module start 'content'
Timing: Jan 19 2025 09:52:07
Module end 'content'
Timing: Jan 19 2025 09:52:07
Script end

Main resources:

Total runtime0.0142 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.0060 589.2734152.6406
Module start 'layout' 0.00600.0026 741.914139.4766
Module start 'content' 0.00860.0038 781.390689.3359
Module end 'content' 0.01250.0017 870.726630.3047
Script end 0.0142  901.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.9819140.0002
Check MTime0.00117.5499140.0001
Mysql Total
Database connection0.00139.332610.0013
Mysqli_queries0.002517.424130.0008
Looping result0.00000.062010.0000
Template Total0.001410.110.0014
Template load0.00075.148410.0007
Template processing0.00074.937110.0007
Override
Cache load0.00053.679410.0005
General
dbfile0.00021.640180.0000
String conversion0.00000.050340.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