You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="title-number">8.5</span>How can I add the value of a <strong>Date Of Birth</strong> of <strong>Gender</strong> input field from my checkout form to the PostFinance Checkout addresses? </h2>
<spanclass="title-number">8.5.1</span>Billing Address Date of Birth </h3>
440
+
</div>
441
+
<divclass="section-body">
442
+
<divclass="paragraph">
443
+
<p>For a custom billing date of birth input fiel to be used in the address the following conditions must be fulfilled:</p>
444
+
</div><divclass="olist arabic">
445
+
<olclass="arabic">
446
+
<li>
447
+
<p>The form field name has to be 'billing_date_of_birth' or '_billing_date_of_birth' or an action has to be registered for the filter 'wc_postfinancecheckout_billing_date_of_birth_field_name' which returns the field name.</p>
448
+
</li>
449
+
<li>
450
+
<p>The field must be submitted in the 'post_data' parameter in the <code>update_order_review</code> request.</p>
451
+
</li>
452
+
<li>
453
+
<p>The date must be saved on the order meta data with the key 'billing_date_of_birth' or '_billing_date_of_birth' or an action has to be registered for the filter 'wc_postfinancecheckout_billing_date_of_birth_order_meta_name' which returns the meta key.</p>
454
+
</li>
455
+
<li>
456
+
<p>The value must be in one of the following formats 'd.m.Y', 'd-m-Y', 'm/d/Y', 'Y-m-d', 'Y/m/d', or an action has to be registered for the filter 'wc_postfinancecheckout_custom_date_of_birth_format' which returns a custom date format. (For more information on the date format check the following link: <ahref="https://secure.php.net/manual/en/datetime.createfromformat.php">PHP DateTime Format</a>)</p>
<p>For a custom billing gender input fiel to be used in the address the following conditions must be fulfilled:</p>
468
+
</div><divclass="olist arabic">
469
+
<olclass="arabic">
470
+
<li>
471
+
<p>The form field name has to be 'billing_gender' or '_billing_gender' or an action has to be registered for the filter 'wc_postfinancecheckout_billing_gender_field_name' which returns the field name.</p>
472
+
</li>
473
+
<li>
474
+
<p>The field must be submitted in the 'post_data' parameter in the <code>update_order_review</code> request.</p>
475
+
</li>
476
+
<li>
477
+
<p>The date must be saved on the order meta data with the key 'billing_gender' or '_billing_gender' or an action has to be registered for the filter 'wc_postfinancecheckout_billing_gender_order_meta_name' which returns the meta key.</p>
478
+
</li>
479
+
<li>
480
+
<p>The value must be either 'm' or 'male' for male and 'f' or 'female' for female.</p>
<spanclass="title-number">8.5.3</span>Shipping Address Date of Birth </h3>
488
+
</div>
489
+
<divclass="section-body">
490
+
<divclass="paragraph">
491
+
<p>For a custom shipping date of birth input fiel to be used in the address the following conditions must be fulfilled:</p>
492
+
</div><divclass="olist arabic">
493
+
<olclass="arabic">
494
+
<li>
495
+
<p>The form field name has to be <strong>shipping_date_of_birth</strong> or <strong>_shipping_date_of_birth</strong> or an action has to be registered for the filter <strong>wc_postfinancecheckout_shipping_date_of_birth_field_name</strong> which returns the field name.</p>
496
+
</li>
497
+
<li>
498
+
<p>The field must be submitted in the <strong>post_data</strong> parameter in the <strong>update_order_review</strong> request.</p>
499
+
</li>
500
+
<li>
501
+
<p>The date must be saved on the order meta data with the key <strong>shipping_date_of_birth</strong> or <strong>_shipping_date_of_birth</strong> or an action has to be registered for the filter <strong>wc_postfinancecheckout_shipping_date_of_birth_order_meta_name</strong> which returns the meta key.</p>
502
+
</li>
503
+
<li>
504
+
<p>The value must be in one of the following formats <strong>d.m.Y</strong>, <strong>d-m-Y</strong>, <strong>m/d/Y</strong>, <strong>Y-m-d</strong>, <strong>Y/m/d</strong>, or an action has to be registered for the filter <strong>wc_postfinancecheckout_custom_date_of_birth_format</strong> which returns a custom date format. (For more information on the date format check the following link: <ahref="https://secure.php.net/manual/en/datetime.createfromformat.php">PHP DateTime Format</a>)</p>
<p>For a custom shipping gender input fiel to be used in the address the following conditions must be fulfilled:</p>
516
+
</div><divclass="olist arabic">
517
+
<olclass="arabic">
518
+
<li>
519
+
<p>The form field name has to be 'shipping_gender' or '_shipping_gender' or an action has to be registered for the filter 'wc_postfinancecheckout_shipping_gender_field_name' which returns the field name.</p>
520
+
</li>
521
+
<li>
522
+
<p>The field must be submitted in the 'post_data' parameter in the <code>update_order_review</code> request.</p>
523
+
</li>
524
+
<li>
525
+
<p>The date must be saved on the order meta data with the key 'shipping_gender' or '_shipping_gender' or an action has to be registered for the filter 'wc_postfinancecheckout_shipping_gender_order_meta_name' which returns the meta key.</p>
526
+
</li>
527
+
<li>
528
+
<p>The value must be either 'm' or 'male' for male and 'f' or 'female' for female.</p>
529
+
</li>
530
+
</ol>
531
+
</div></div>
532
+
</div></div>
430
533
</div></div>
431
534
</div><divclass="chapter" id="_support">
432
535
<divclass="chapter-title">
@@ -554,6 +657,33 @@ <h1>
554
657
<spanclass="item-number">8.4</span>
555
658
<spanclass="item-title">How can I translate the plugin?</span>
<spanclass="item-title">How can I add the value of a <strong>Date Of Birth</strong> of <strong>Gender</strong> input field from my checkout form to the PostFinance Checkout addresses?</span>
664
+
</a>
665
+
<ulclass="nav">
666
+
<liclass="nav-level-3">
667
+
<ahref="#_billing_address_date_of_birth">
668
+
<spanclass="item-number">8.5.1</span>
669
+
<spanclass="item-title">Billing Address Date of Birth</span>
0 commit comments