how to make discount rule for one usergroup in one section

Author Message

Vytautas Germanavičius

Tuesday 26 April 2005 1:15:37 am

I have shop with two sections: software and harware.
There is in my shop: two usergroups: software partners and hardware partners.

How to make discount for software partners in software section.

{set-block scope=root variable=cache_ttl}0{/set-block}

Łukasz Serwatka

Tuesday 26 April 2005 3:21:31 am

1. Go to Webshop->Discounts
2. Click "New discount group" button
3. Add new name for this group
4. Click on the name of new discount group
5. Add new discount rule, choose Discount percent, Product, Sections

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

Vytautas Germanavičius

Tuesday 26 April 2005 6:14:35 am

But in this case i get:
- or discout for all users in one section
- or for one group in all sections

{set-block scope=root variable=cache_ttl}0{/set-block}

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 15:56:02
Script start
Timing: Jan 18 2025 15:56:02
Module start 'layout'
Timing: Jan 18 2025 15:56:02
Module start 'content'
Timing: Jan 18 2025 15:56:02
Module end 'content'
Timing: Jan 18 2025 15:56:02
Script end

Main resources:

Total runtime0.0178 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.0050 588.1719152.6563
Module start 'layout' 0.00500.0034 740.828139.5078
Module start 'content' 0.00830.0075 780.335989.3984
Module end 'content' 0.01590.0019 869.734434.3047
Script end 0.0177  904.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002413.6364140.0002
Check MTime0.00105.8357140.0001
Mysql Total
Database connection0.00074.011610.0007
Mysqli_queries0.002112.032230.0007
Looping result0.00000.118010.0000
Template Total0.00158.510.0015
Template load0.00074.089410.0007
Template processing0.00084.415410.0008
Override
Cache load0.00052.830010.0005
General
dbfile0.003117.357080.0004
String conversion0.00000.038940.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