Guest User

Untitled

a guest
Dec 18th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. $form->field($billing_address, 'zip',
  2. [
  3. 'selectors' => [
  4. 'input' => '#billing-zip',
  5. 'container' => '#billing-container',
  6. ],
  7. 'options' => ['id' => 'billing-container'],
  8. ])->textInput(['maxlength' => 11,
  9. 'name'=> 'Billing_Address[zip]',
  10. 'id'=>'billing-zip']);
  11.  
  12. //Shipping
  13. $form->field($shipping_address, 'zip',
  14. [
  15. 'selectors' => [
  16. 'input' => '#shipping-zip',
  17. 'container' => '#shipping-container',
  18. ],
  19. 'options' => ['id' => 'shipping-container'],
  20. ])->textInput(['maxlength' => 11,
  21. 'name'=> 'Shipping_Address[zip]',
  22. 'id'=>'shipping-zip']);
Add Comment
Please, Sign In to add comment