How can I reset the best_sell_list?

Author Message

Christopher Grondahl

Wednesday 04 January 2006 2:30:44 pm

I would like to have my best_sell_list just show top sales this month.

Any suggestions?

thx,

Chris

Chris

ez site: http://www.acem.no

Every day is Groundhog Day

Christopher Grondahl

Wednesday 13 September 2006 4:30:54 pm

to eZ crew: I would really appreciate some help on this issue - this question has been unanswered for more than halv a year now ... You seem to be somewhat quicker on the bugreport-side. Maybe I should try to introduce this thread there?

Chris

ez site: http://www.acem.no

Every day is Groundhog Day

Kristof Coomans

Thursday 14 September 2006 12:40:19 am

Hello Christopher

If you immediately want answers from eZ systems, then you should sign up for payed technical support (<i>http://ez.no/services/support</i>). Questions on the forum are mostly answered by community members.

The functionality you want is currently missing. You can however write your own template fetch function or add additional parameters for the time interval to the best_sell_list fetch function (in kernel/shop/ezshopfunctioncollection.php: eZShopFunctionCollection::fetchBestSellList).

You can also add an enhancement request in the bug tracker for this.

Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Claudia Kosny

Thursday 14 September 2006 11:54:32 am

Hello Christopher

As far as I can see this should not be to hard to achieve. Have a look at the function Kristof refered to and you can see that it is generally a pretty simple sql statement. As each row in the table ezorder has an attribute for the created timestamp just add an addition WHERE clause which should limit the counted objects to the timeframe you desire.

To create your own template operator that does this have a look at the example for an extension here
http://ez.no/products/ez_publish/documentation/development/extensions/template_operator

Just use a copy of the original EZ function for your operator and add the timeframe restriction.

Greetings from Luxembourg

Claudia

.

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

Main resources:

Total runtime0.6306 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.0156152.6250
Module start 'layout' 0.00650.0035 740.640639.4453
Module start 'content' 0.00990.6191 780.0859586.7813
Module end 'content' 0.62900.0015 1,366.867212.1563
Script end 0.6305  1,379.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5698160.0002
Check MTime0.00150.2447160.0001
Mysql Total
Database connection0.00110.177710.0011
Mysqli_queries0.574191.0416620.0093
Looping result0.00080.1320600.0000
Template Total0.598194.820.2990
Template load0.00230.364820.0012
Template processing0.595894.480020.2979
Template load and register function0.00010.017310.0001
states
state_id_array0.00130.199410.0013
state_identifier_array0.00110.181320.0006
Override
Cache load0.00200.3103270.0001
Sytem overhead
Fetch class attribute can translate value0.00050.081830.0002
Fetch class attribute name0.00080.126760.0001
XML
Image XML parsing0.00240.385330.0008
class_abstraction
Instantiating content class attribute0.00000.001870.0000
General
dbfile0.00230.3641220.0001
String conversion0.00000.001840.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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
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