Forums / Setup & design / How can I reset the best_sell_list?

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

.