Shop discounts

Author Message

Carlos Revillo

Monday 10 July 2006 7:33:57 am

Hi. Now i'm working with shop. I wonder if it is possible to define a rule like this.

If total amount is greater than 60 euros, i want apply a 10% discount to that amount.
If is not, there is no discount in the order.

Could it be possible?.

Nicolas Ottavi

Tuesday 11 July 2006 6:10:44 am

hi Carlos,

I figure you could do this with workflow triggering the confirmorder event.
depending the version of ezpublish you are using, you should find interesting examples concerning shipping fees that you could reuse or improve in order to implement your needs.

For instance, check http://ez.no/community/contribs/workflow/shippingcosts
Kind Regards,
Nicolas

Nebojsa Eric

Wednesday 09 August 2006 2:20:06 am

Hi Nicolas.

Can you, please, email me on nebojsa@outsys.co.uk.

Thanks.

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 03:38:52
Script start
Timing: Jan 31 2025 03:38:52
Module start 'layout'
Timing: Jan 31 2025 03:38:52
Module start 'content'
Timing: Jan 31 2025 03:38:53
Module end 'content'
Timing: Jan 31 2025 03:38:53
Script end

Main resources:

Total runtime1.0241 sec
Peak memory usage8,192.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.0000151.1953
Module start 'layout' 0.00720.0059 739.1953220.6406
Module start 'content' 0.01311.0100 959.83594,442.8984
Module end 'content' 1.02310.0010 5,402.73447.8906
Script end 1.0241  5,410.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3322160.0002
Check MTime0.00120.1190160.0001
Mysql Total
Database connection0.00060.061610.0006
Mysqli_queries0.939191.6951590.0159
Looping result0.00060.0572570.0000
Template Total0.951992.920.4760
Template load0.00200.196020.0010
Template processing0.949992.749720.4749
Template load and register function0.00140.133910.0014
states
state_id_array0.00190.188410.0019
state_identifier_array0.00170.165720.0008
Override
Cache load0.00170.1668190.0001
Sytem overhead
Fetch class attribute can translate value0.00170.170730.0006
Fetch class attribute name0.00180.172840.0004
XML
Image XML parsing0.00220.216130.0007
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00250.2468160.0002
String conversion0.00000.001240.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs