[closed] ezorder api in php

Author Message

scrieler _

Friday 03 July 2009 3:38:35 am

heya,

how to use the ezorder api in php?
I want to count and return order info of current product.
To do this, I use the wrap_operator to use my own php.
But don't know how to start..

Rainer Krauss

Friday 03 July 2009 5:21:33 am

Sorry, no idea. I've been developing with the API for the past few days, but only using content and users.
Did you had a browse of http://pubsvn.ez.no/doxygen/4.1/html/ yet?
If you need basic information to get started at all: There are two ways to run the PHP you make yourself: either as module of an extension, or using the Command Line Interface using bin/php/ezexec.php
Please ask should you need any more information.
Best wishes,
Rainer

Heath

Friday 03 July 2009 5:41:33 am

Hello,

You might want to take a look at eZ's PHP API Documentation,

<i>http://pubsvn.ez.no/doxygen/4.0/html/classeZOrder.html</i>

<i>http://pubsvn.ez.no/doxygen/4.0/html/classeZOrderItem.html</i>

<i>http://pubsvn.ez.no/doxygen/4.0/html/classeZProductCollection.html</i>

<i>http://ez.no/doc/ez_publish/technical_manual/4_0/reference/objects/ezorder</i>

<i>http://ezpedia.org/ez/wrap_operator</i>

Hope this helps ...

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

scrieler _

Monday 06 July 2009 12:53:13 am

thanks!

I got it! I copy the code of orderstatistic php file in my wrap operator script. After loading my wrap function I got my $quantity_text =)

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 19:28:15
Script start
Timing: Jan 18 2025 19:28:15
Module start 'layout'
Timing: Jan 18 2025 19:28:15
Module start 'content'
Timing: Jan 18 2025 19:28:16
Module end 'content'
Timing: Jan 18 2025 19:28:16
Script end

Main resources:

Total runtime0.8527 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.0049 587.9141152.6250
Module start 'layout' 0.00490.0031 740.539139.4453
Module start 'content' 0.00810.8430 779.9844576.3750
Module end 'content' 0.85110.0016 1,356.359412.1641
Script end 0.8527  1,368.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3855160.0002
Check MTime0.00120.1451160.0001
Mysql Total
Database connection0.00070.078310.0007
Mysqli_queries0.799793.7856620.0129
Looping result0.00100.1165600.0000
Template Total0.821696.320.4108
Template load0.00200.234920.0010
Template processing0.819596.109120.4098
Template load and register function0.00020.028910.0002
states
state_id_array0.00170.196410.0017
state_identifier_array0.00200.229620.0010
Override
Cache load0.00160.1931300.0001
Sytem overhead
Fetch class attribute can translate value0.00100.111830.0003
Fetch class attribute name0.00140.166050.0003
XML
Image XML parsing0.00080.093230.0003
class_abstraction
Instantiating content class attribute0.00000.002150.0000
General
dbfile0.00070.0866170.0000
String conversion0.00000.001140.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs