views:

19

answers:

1

I need help with a couple of problems in my magento sales module.

  1. I have a mobile number text field in my magento extension back-end. I want to get it validated using this regular expression ^[a-z0-9\. _\'-]{1,11}$.Also want to show a help text for each fields.

  2. I want my extension to do some operations when the Admin ships the order.Please give a sample code of identify the event.

  3. I want to add a mobile number field to the magento customer registration page.

Any help is highly appreciated.

A: 

Ad. 2)

I am running v1.3.2 and it does not seem like there are any events dispatched when shipment is created. Your best bet is to override the default adminhtml shipment controller and add an event dispatch with an event name of your choice. You can handle this event with an event observer in your module.

If your client is using the API to ship orders, you should also take care of raising an event in the api code responsible for creating shipments.

silvo