Dynamic properties in shop?

Author Message

Claus Jensen

Wednesday 21 May 2003 4:48:21 am

Is it possible to get dynamic properties for the shop? Example: If you buy the book "Lord of the Rings" for £ 9.90 you also get a discount on "Harry Potter". So that the value of properties may change for different user choices... if you see the picture?

best,
claÜs

Bård Farstad

Wednesday 21 May 2003 5:13:20 am

You can do this at the checkout. Where you can add a workflow which gives a discount if you've bought the two products.

See the shipping cost workflow for an simple example. ( Needs PHP programming )

--bård

Documentation: http://ez.no/doc

Claus Jensen

Wednesday 21 May 2003 5:53:55 am

Hmm, I think that it would have to be before the checkout, or else the user would not be tempted to buy it, because the user dont get to see the choice where its most natural. The most natural thing would be if he gets to see it when he's choosing the first book. Would the workflow-system support this kind of function?

And by the way... where do I find the "Simple shipping workflow"?

br,
claÜs

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

Main resources:

Total runtime0.8347 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.0050 587.9063152.6250
Module start 'layout' 0.00500.0026 740.531339.4453
Module start 'content' 0.00760.8252 779.9766531.5703
Module end 'content' 0.83280.0018 1,311.54698.1641
Script end 0.8346  1,319.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4165160.0002
Check MTime0.00130.1610160.0001
Mysql Total
Database connection0.00070.083910.0007
Mysqli_queries0.782093.6841570.0137
Looping result0.00060.0722550.0000
Template Total0.796395.420.3981
Template load0.00220.267820.0011
Template processing0.794095.128120.3970
Template load and register function0.00020.029210.0002
states
state_id_array0.00180.216610.0018
state_identifier_array0.00190.223520.0009
Override
Cache load0.00180.2177160.0001
Sytem overhead
Fetch class attribute can translate value0.00100.120520.0005
Fetch class attribute name0.00270.318640.0007
XML
Image XML parsing0.00590.703420.0029
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00080.0928170.0000
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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs