Multiple price types.

Author Message

Allan Davies

Monday 18 February 2008 12:37:07 am

Hello

I need to have a dealer price and a retail price which is a certain percentage higher then the price stored in the product object.

Does anyone have a better or simpler way of doing this then the way I am doing it?

Currently I am thinking of making a custom action handler and then copying the object and changing the price during the copy depending on what group the current logged in user is in and then adding this new object (product) with the changed price to the basket, then cleaning up these temporary objects after the basket is destroyed.

This does seem like a slow process to me, but i dont really want to edit the kernel and i cant change the price of the product.

Anyone have any suggestions?

Any help really appreciated :)

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 01:20:39
Script start
Timing: Jan 19 2025 01:20:39
Module start 'layout'
Timing: Jan 19 2025 01:20:39
Module start 'content'
Timing: Jan 19 2025 01:20:39
Module end 'content'
Timing: Jan 19 2025 01:20:39
Script end

Main resources:

Total runtime0.0174 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.0065 590.1875152.6094
Module start 'layout' 0.00650.0032 742.796939.4141
Module start 'content' 0.00970.0054 782.210985.2109
Module end 'content' 0.01510.0022 867.421930.3047
Script end 0.0173  897.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002815.8723140.0002
Check MTime0.00126.6314140.0001
Mysql Total
Database connection0.00073.921810.0007
Mysqli_queries0.003117.868830.0010
Looping result0.00000.075410.0000
Template Total0.001810.410.0018
Template load0.00116.159710.0011
Template processing0.00074.233110.0007
Override
Cache load0.00073.779210.0007
General
dbfile0.00031.703180.0000
String conversion0.00000.045340.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