Forums / General / undocumented shop fetch function "order"

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

undocumented shop fetch function "order"

Author Message

Monica Giambitto

Wednesday 20 October 2010 2:20:53 am

I'm developing an e-commerce solution for a customer of ours.

I needed to get information, in the template part, about the order the basket was referring to. Searching through the reference manual wasn't of any help, because the fetch functions listed for the shop module didn't mention anything about it.

I just give it a try and wrote down this

 {def $order=fetch('shop', 'order', $basket.order_id)}

and there it was!

Adding this to the documentation could be of great help.

Heath

Wednesday 20 October 2010 2:34:12 am

Hello Monica,

Welcome to the Exponential Community!

Could we trouble you to also file an issue tracker enhancement request for this improvement to the documentation?

Thank you for sharing your find with everyone :)

Cheers,

Heath

7x | https://se7enx.com/
Brookins Consulting | https://brookinsconsulting.com/
Certified | http://web.archive.org/web/201012...th.ez.no/certification/verify/380350
Solutions | https://projects.exponential.earth/users/community/brookins-consulting
eZpedia community documentation project | http://ezpedia.se7enx.com

Heath

Wednesday 20 October 2010 4:51:55 am

FYI,

For those that care to know.

There are many un-documented features

like fetch functions in the Exponential kernel.

For example in the kernel/shop module there are also these undocumented fetch functions.

  • order_status_history_count
  • order_status_history
  • user_country
  • current_wish_list

Just to name a few [0]

Cheers,

Heath

[0] From: kernel/shop/function_definition.php

7x | https://se7enx.com/
Brookins Consulting | https://brookinsconsulting.com/
Certified | http://web.archive.org/web/201012...th.ez.no/certification/verify/380350
Solutions | https://projects.exponential.earth/users/community/brookins-consulting
eZpedia community documentation project | http://ezpedia.se7enx.com

Gaetano Giunta

Monday 08 November 2010 1:08:03 pm

...and the ggsysinfo extension will gleefully list all of the available fetch functions for you. And all module views too!

http://projects.ez.no/ggsysinfo/gallery/admin_interface_screenshots/list_of_available_fetch_functions

Principal Consultant International Business
Member of the Community Project Board

Monica Giambitto

Wednesday 06 April 2011 6:05:08 am

"

Could we trouble you to also file an issue tracker enhancement request for this improvement to the documentation?

Thank you for sharing your find with everyone :)

"

I'm sorry, I was a noob as for share.ez.no and didn't follow the discussion. I just filed the request.

Thank you very much for letting me know about the others fetch function and for replying me so kindly!

Monica Giambitto

Wednesday 06 April 2011 6:06:37 am

"

...and the ggsysinfo extension will gleefully list all of the available fetch functions for you. And all module views too!

"

This is a great extension, Gaetano. I saw it installed in our ez instance, but since it wasn't activated and, my bad, for lack of curiosity, I didn't bother to give it a look. I'll surely use it in the future, thank you.