Attribute filtering by Multi-price attribute

Author Message

César Camelo

Tuesday 26 June 2007 3:58:42 pm

Hi !!
How can I make a fetch content filtering by Multi-price attribute :

For example :

Fetch all products with prices between 100 and 1000.

fetch('content', 'tree', hash('parent_node_id', 114,
'attribute_filter', array( array( 'product/price', 'between', array( 100, 1000 ) ) ) ))

Is there something I'm forgetting?

Frédéric DAVID

Wednesday 27 June 2007 12:56:46 am

the attribute filtering by multi-price datatype doesn't work. You can find the available datatypes on this page :

http://ez.no/doc/ez_publish/technical_manual/3_9/reference/modules/content/fetch_functions/list

For the moment,the multiprice datatype and the price datatype aren't available.

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

Łukasz Serwatka

Wednesday 27 June 2007 1:35:31 am

You can write your extended attribute filter to solve your problem. Example is in documentation.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 31 2025 04:15:31
Script start
Timing: Jan 31 2025 04:15:31
Module start 'layout'
Timing: Jan 31 2025 04:15:31
Module start 'content'
Timing: Jan 31 2025 04:15:31
Module end 'content'
Timing: Jan 31 2025 04:15:31
Script end

Main resources:

Total runtime0.0218 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.0104 588.2578151.2266
Module start 'layout' 0.01040.0033 739.484436.6797
Module start 'content' 0.01370.0067 776.164190.2813
Module end 'content' 0.02030.0014 866.445333.9922
Script end 0.0218  900.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002511.3784140.0002
Check MTime0.00114.8729140.0001
Mysql Total
Database connection0.00219.602510.0021
Mysqli_queries0.004620.860730.0015
Looping result0.00000.113710.0000
Template Total0.00115.210.0011
Template load0.00093.956010.0009
Template processing0.00031.201010.0003
Override
Cache load0.00062.740810.0006
General
dbfile0.00229.951280.0003
String conversion0.00000.045940.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