Best Sell list and related purchase

Author Message

Nicolas OTTAVI

Thursday 02 February 2006 2:27:44 am

Hi there,

I want to modify the best_sell_list and related_purchase fetch function.
I found them in the kernel/shop/ezshopfunctioncollection.php.

I could modify the code, but this is not update safe, so I was thinking about writting an extension. But can we extend or rewrite a kernel function for an existing module by creating an extension ? If yes, does someone can provide me an extension example that already do that kind of things ?

Thanks,
C.

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 11:40:48
Script start
Timing: Jan 18 2025 11:40:48
Module start 'layout'
Timing: Jan 18 2025 11:40:48
Module start 'content'
Timing: Jan 18 2025 11:40:49
Module end 'content'
Timing: Jan 18 2025 11:40:49
Script end

Main resources:

Total runtime0.8824 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.0547153.4609
Module start 'layout' 0.00650.0028 742.515639.3906
Module start 'content' 0.00930.8716 781.9063401.4531
Module end 'content' 0.88090.0014 1,183.35948.1563
Script end 0.8824  1,191.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4180160.0002
Check MTime0.00150.1677160.0001
Mysql Total
Database connection0.00070.076410.0007
Mysqli_queries0.840395.2220460.0183
Looping result0.00040.0494440.0000
Template Total0.850396.420.4251
Template load0.00220.244420.0011
Template processing0.848196.112120.4241
Template load and register function0.00080.087210.0008
states
state_id_array0.00090.104310.0009
state_identifier_array0.00140.162320.0007
Override
Cache load0.00170.196590.0002
Sytem overhead
Fetch class attribute can translate value0.00070.078710.0007
Fetch class attribute name0.00090.099310.0009
XML
Image XML parsing0.00010.015210.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00060.0735100.0001
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
1content/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs