mitke1990
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Cart PDF] PDF file with Checkout Field Manager
Oh man ?? I forgot about that! Everything works prefect now! Thanks again!Forum: Plugins
In reply to: [WooCommerce Cart PDF] PDF file with Checkout Field ManagerAnd in my case it is billing_wooccm14
https://generalprinting.tilda.in.rs/wp-content/uploads/2023/12/custom-field2.png
I tried this olso:
<?php echo esc_html( $customer->get_billing_first_name() . ' ' . $customer->get_billing_last_name() ); ?><br> <?php echo esc_html( $customer->get_billing_email() ); ?><br> <?php echo esc_html( $customer->get_billing_phone() ); ?><br> <?php echo esc_html( $customer->get_billing_city() ); ?><br> <?php printf( '%s: %s', esc_html__( 'My Custom Field' ), esc_html( WC()->checkout->get_value( 'billing_wooccm14' ) ) ); ?> <?php printf( '%s: %s', esc_html__( 'My Custom Field2' ), esc_html( WC()->checkout->get_value( 'billing_wooccm13' ) ) ); ?>
in cart-table.php
add_filter( 'wc_cart_pdf_capture_customer_fields', function( $capture_fields ) { $capture_fields[] = 'billing_wooccm14'; // Custom field name. $capture_fields[] = 'billing_wooccm13'; // Custom field name2. return $capture_fields; } );
in functions.php
I hope I haven’t made a mistake since I’m a beginner
Forum: Plugins
In reply to: [WooCommerce Cart PDF] PDF file with Checkout Field ManagerI did everything as you said but it doesn’t work. This is PDF file screenshot:
https://generalprinting.tilda.in.rs/wp-content/uploads/2023/12/custom-field.png
And this is the link to Checkout:
https://generalprinting.tilda.in.rs/checkout/
And thank you very much for everything!
Forum: Plugins
In reply to: [WooCommerce Cart PDF] PDF file with Checkout Field ManagerThank you for your prompt response.
Yes, I use child.
For each default field in the checkout, everything appears in the PDF file, but for any custom field created with the plugin Checkout Field Manager, it does not appear in pdf file… Can you help me to add this in pdf file?