简体   繁体   中英

custom magento extension help

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}$ ^[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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM