• The page you requested does not exist. A search for api function aggregator parse feed 1 0 resulted in this page.
  • The page you requested does not exist. A search for api function drupal set breadcrumb 1 0 resulted in this page.
4 replies [Last post]
digital sword's picture
Offline
Joined: 04/19/2008
Juice: 35

hook_order
Hello. I wish to add a field - an interval of dates (date_popup) on page of the order of the goods. I have created the module myorder. How correctly to use hook_order?

<? php
function myorder_order ($op, AND $arg1, $arg2) {
   ?????????????
  );

Many thanks!

univate@drupal.org's picture
Offline
Getting busy with the Ubercode.
Joined: 03/27/2009
Juice: 465
Re: hook_order. How to use?

Thats not the correct hook. What you want to do is use a checkout pane, the best method is probably to look at another module that adds panes to the checkout page like the coupon module.

digital sword's picture
Offline
Joined: 04/19/2008
Juice: 35
Re: Re: hook_order. How to use?

I have committed an error. It is necessary to add a field on page: /cart.
Look image: http://www.picamatic.com/show/2010/03/21/04/35/6455078_820x230.gif

univate@drupal.org's picture
Offline
Getting busy with the Ubercode.
Joined: 03/27/2009
Juice: 465
Re: hook_order. How to use?

hook_form_alter() and maybe a theme override would be required to make that change.

digital sword's picture
Offline
Joined: 04/19/2008
Juice: 35
Re: Re: hook_order. How to use?

In this case this field will not seem to the moderator on page of processing of the order (admin/store/orders/*)

theme_uc_cart_view_form?