Eticheta de camp in factura
-
Salutare!
Multumesc pentru munca depusa si pentru intretinerea acestui plugin util.
Folosesc “WooCommerce PDF Invoices & Packing Slips” pentru factura si am observat ca singurele campuri ale caror etichete (Label) nu le pot chema in factura sunt cele din “Facturare Woocommerce”.
Aceasta este functia:
add_filter( 'woocommerce_order_formatted_billing_address', function( $billing_address, $order ) { foreach ( $billing_address as $prop_key => $prop_value ){ if ( ! empty( $prop_value ) ) { switch ( $prop_key ) { case 'company': $billing_address[$prop_key] = 'Firma: ' . $prop_value; break; case 'first_name': $billing_address[$prop_key] = 'Nume: ' . $prop_value; break; case 'address_1': $billing_address[$prop_key] = 'Adresa: ' . $prop_value; break; } } } return $billing_address; }, 10, 2 );
Noile campuri nu sunt parte din “woocommerce_order_formatted_billing_address”?
Multumesc anticipat!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Eticheta de camp in factura’ is closed to new replies.