Closed riannarcizo closed 4 months ago
Hello @riannarcizo,
You can utilize this hook dokan_checkout_update_order_meta
to add additional metadata to your order.
Thank you.
Hello @riannarcizo,
I hope you've found the solution you're looking for. I'm closing this issue now, but please don't hesitate to reopen it if you require further assistance.
All the best,
@riannarcizo how you solved your problem with cpf and cnpj?
Is your feature request related to a problem? Please describe.
Hello!
I'm trying to override the create_sub_order function to add information from 3 custom fields that we have at checkout so that sellers can invoice orders in Brazil.
Below is the code that I inserted into the functions.php of my child theme in an attempt to add the billing_cpf, billing_cnpj and billing_ie information to the subrequests, but unfortunately it is not working.
Dokan Version 3.10.2 Dokan Version Pro 3.10.2 Woocommerce Version 8.8.2
Can anyone help me with this?
// Sobrescreva a função create_sub_order do Dokan add_action( 'plugins_loaded', 'dokan_custom_override_functions', 15 ); function dokan_custom_override_functions() { if ( ! class_exists( 'Dokan_Pro' ) ) { require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); }
}
Describe the solution you'd like
I need to save these three pieces of information in suborders so that the seller can view them within the orders and bill the customer.
Describe alternatives you've considered
No response
Additional context
No response