Promotional code

Author Message

vincenzo dima

Wednesday 05 November 2008 10:48:47 am

Hi all,

I want implement in my e-shop a discount rule based on a promotional code: the customer should write in basket interface his promotional code; the system verify the code and apply the % discount requested.

Any hint to do this?
Thanks
Vince

Björn Dieding@xrow.de

Wednesday 05 November 2008 11:55:32 am

http://projects.ez.no/xrowcoupon

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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 16:16:34
Script start
Timing: Jan 18 2025 16:16:34
Module start 'layout'
Timing: Jan 18 2025 16:16:34
Module start 'content'
Timing: Jan 18 2025 16:16:36
Module end 'content'
Timing: Jan 18 2025 16:16:36
Script end

Main resources:

Total runtime1.2114 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.0072 587.7969152.6094
Module start 'layout' 0.00720.0029 740.406339.4063
Module start 'content' 0.01011.1998 779.8125519.7891
Module end 'content' 1.20980.0016 1,299.60168.3516
Script end 1.2114  1,307.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2717160.0002
Check MTime0.00120.1030160.0001
Mysql Total
Database connection0.00140.115610.0014
Mysqli_queries1.165596.2131540.0216
Looping result0.00050.0448520.0000
Template Total1.156095.420.5780
Template load0.00250.203520.0012
Template processing1.153595.223320.5768
Template load and register function0.00020.014610.0002
states
state_id_array0.00200.168410.0020
state_identifier_array0.00190.153120.0009
Override
Cache load0.00170.1434110.0002
Sytem overhead
Fetch class attribute can translate value0.00050.038920.0002
Fetch class attribute name0.00130.110630.0004
XML
Image XML parsing0.00060.053620.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00080.0637160.0000
String conversion0.00000.000740.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs