So habe ich HTML-Eingabefelder in functions.php
hinzugefügt Jetzt, wenn ich die Bestellung aufgeben, diese Echo-Felder nicht in Woocommerce Bestellungen angezeigt werden. Ich möchte Werte und Beschriftungen dieses Felds in der Ansicht Bestellungen in woocommerce hinzufügen.Wie Echo-HTML-Feld in Woocommerce Auftrag anzeigen hinzufügen?
add_action('woocommerce_after_checkout_billing_form' , 'self_added_checkout_fieldsPk1');
function self_added_checkout_fieldsPk1($fields)
{
echo '<div class="row" style="text-aign:center">
<div class="col m4 offset-m4" align="center">
<ul class="collapsible" data-collapsible="expandable">
<li class="">
<div class="collapsible-header"><b>Instagram Account No.1 Details</b></div>
<div class="collapsible-body" style="display: none; padding-top: 0px; margin-top: 0px; padding-bottom: 0px; margin-bottom: 0px;">
<div class="input-field col s12">
Username: <input id="acc1user" name="acc1user" type="text" class="validate">
Password: <input id="acc1pass" name="acc1pass" type="text" class="validate">
*Note: Your Login Credentials will be safe with us do not worry.
</div>
</div>
</li>
</ul>
</div>
</div></h1>';
}
Ich möchte meine Checkout-Felder in der Reihenfolge anzeigen. –
https://docs.woothemes.com/document/tutorial-customing-checkout-fields-using-actions-and-filters/ – LoicTheAztec