Sort by Price attribute

Author Message

Sergi A

Thursday 27 May 2010 1:30:08 am

Hello!

according to the documentation, it is not possible to sort by price attribute while fetching... but trying it, i see it works.. i was wondering if using it could cause trouble, if i can use it or not, because it is not documented... actually, i've seen there's a keySort function defined on the kernel/classes/datatypes/ezprice/ezpricetype.php and it seems to be OK (tough multiprice datatype has not sortKey).

i'm using ez4.2, is there any improvement on this on the 4.3 version? I will have to be able to search on price attribute, but couldn't find any extended attribute filter to do so..

thank you!

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

Main resources:

Total runtime0.0147 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.0059 588.1250151.2109
Module start 'layout' 0.00590.0028 739.335936.6484
Module start 'content' 0.00860.0049 775.984485.9219
Module end 'content' 0.01350.0011 861.906329.9922
Script end 0.0146  891.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.4770140.0002
Check MTime0.00106.8146140.0001
Mysql Total
Database connection0.00085.520910.0008
Mysqli_queries0.003121.220530.0010
Looping result0.00000.094310.0000
Template Total0.00085.810.0008
Template load0.00064.329610.0006
Template processing0.00021.431810.0002
Override
Cache load0.00043.013210.0004
General
dbfile0.00096.432680.0001
String conversion0.00000.055340.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