Forums / General / undocumented shop fetch function "order"
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 eZ Publish 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,
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
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 eZ Publish kernel.
For example in the kernel/shop module there are also these undocumented fetch functions.
Just to name a few [0]
[0] From: kernel/shop/function_definition.php
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
Wednesday 06 April 2011 6:05:08 am
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!
Wednesday 06 April 2011 6:06:37 am
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.