how are ProductCollectionItems ordered?

Author Message

Pascal Specht

Wednesday 28 November 2007 6:52:35 am

Hello

I noticed that the shop/basket page shows the products in a strange order. At least it looks random to me... It doesn't look like a FIFO or LIFO ordering, and it is also not alphabetical... Is there a way to easily change the order of the products shown?

Would it be better to modify the insertion order in the eZShopOperationCollection::addToBasket method or change the way the template iterates over it?

Thanks for any comments!

</Pascal>

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 00:11:30
Script start
Timing: Jan 19 2025 00:11:30
Module start 'layout'
Timing: Jan 19 2025 00:11:30
Module start 'content'
Timing: Jan 19 2025 00:11:32
Module end 'content'
Timing: Jan 19 2025 00:11:32
Script end

Main resources:

Total runtime1.8475 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.0072 589.1641152.6406
Module start 'layout' 0.00720.0031 741.804739.4766
Module start 'content' 0.01041.8356 781.2813432.7188
Module end 'content' 1.84590.0015 1,214.00008.1406
Script end 1.8475  1,222.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.1982160.0002
Check MTime0.00150.0830160.0001
Mysql Total
Database connection0.00160.085110.0016
Mysqli_queries1.798997.3707460.0391
Looping result0.00060.0303440.0000
Template Total1.794397.120.8972
Template load0.00220.118420.0011
Template processing1.792197.000320.8960
Template load and register function0.00020.012710.0002
states
state_id_array0.00590.320210.0059
state_identifier_array0.00370.199820.0018
Override
Cache load0.00180.094990.0002
Sytem overhead
Fetch class attribute can translate value0.00090.049210.0009
Fetch class attribute name0.00080.042520.0004
XML
Image XML parsing0.00300.160510.0030
class_abstraction
Instantiating content class attribute0.00000.000220.0000
General
dbfile0.00440.2361160.0003
String conversion0.00000.000540.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0003 secs