WooCommerce customise checkout billing form [closed]

woocommerce_form_field in the foreach loop https://github.com/woocommerce/woocommerce/blob/master/templates/checkout/form-billing.php#L39 refers to https://github.com/woocommerce/woocommerce/blob/master/includes/wc-template-functions.php#L2607 So you can adapt the following code to your needs function change_woocommerce_field_markup( $field, $key, $args, $value ) { // Remove the .form-row class from the current field wrapper $field = str_replace(‘form-row’, ”, $field); // Wrap the field (and its wrapper) in a new custom div, adding … Read more

WooCommerce comments_template Filter Not Firing

Okay, for anyone looking to include the WooCommerce review tab not on an actual single-product page here’s the secret sauce: In your template file, you need: global $withcomments; $withcomments = true; Then add a filter for the comments template: //add filter to use our custom review template add_filter(‘comments_template’,'{{YOUR_HELPER_FUNCTION}}’); /** * Hook function for using custom … Read more

WooCommerce – Complete Order when an action occurs

Remove return; from your code, which is prematurely exiting the function before the following two lines can be executed; that is why the status is not changed. function my_change_status_function () { global $post; $ordernumber = get_post_meta( $post->ID, ‘order_number’, true ); $audit_status = get_post_meta( $post->ID, ‘audit_status’, true ); if ( $audit_status == ‘Complete’ ) { $order … Read more

woocommerce how in checkout to add my custom field check box, and when i check it hide the shipping adress and add tax 19% [closed]

CLARIFICATION FOR ALL : You use virtual products on your shop. On checkout page, you have created and set an additional checkbox for european VAT purpose. There is 3 cases related to this checkbox. Checkbox is hidden (default) Checkbox is visible when selected country is an european country: Checkbox disabled (default) => set the VAT … Read more

Ajax Load More or View More functionality for woocommerce category layout by template overriding

You can achieve this by create a template override for woocommerce category layout. How to Create Template override Go to wp-content/theme/{your_theme} Create a folder named woocommerce if already not exist Then create a file titled archive-product.php Now, paste the below code as instructed and modify any parameters per your need Add this code right after … Read more