Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jaxon theme - Function _load_textdomain_just_in_time was called incorrectly and addition checkout fields #74

Open
BSS-Baumgart opened this issue Feb 9, 2025 · 3 comments · May be fixed by #76
Assignees

Comments

@BSS-Baumgart
Copy link

Hi

  1. I would like to ask how to add tax field in checkout because any action like edit fuctions.php or use plugin to add any new checkoud filed not working.

  2. Another issue is with transaltion and load to early :
    [09-Feb-2025 21:34:00 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the tpay domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/zacharki/domains/icetiger.pl/public_html/wp-includes/functions.php on line 6114

Thank you for advicse

@girishpanchal30
Copy link

  1. I would like to ask how to add tax field in checkout because any action like edit fuctions.php or use plugin to add any new checkoud filed not working.

You can add a custom field to the checkout form using the following code snippet:

add_filter( 'woocommerce_checkout_fields', function ( $fields ) {  
    $fields['billing']['billing_custom_field'] = [  
        'type'        => 'text',  
        'label'       => __( 'Custom Field', 'textdomain' ),  
        'placeholder' => __( 'Enter your custom value', 'textdomain' ),  
        'required'    => true,  
        'class'       => [ 'form-row-wide' ],  
        'priority'    => 25,  
    ];  
    return $fields;  
});

I checked it, and it looks like this: https://tinyurl.com/284uvaoh

  1. Another issue is with transaltion and load to early :
    [09-Feb-2025 21:34:00 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the tpay domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/zacharki/domains/icetiger.pl/public_html/wp-includes/functions.php on line 6114

I believe the tpay text domain is registered in another plugin or theme. For the issue related to the Jaxon theme, I’ve fixed it with this PR #76.

Thanks

@BSS-Baumgart
Copy link
Author

Hi, Thank you for answer. To confirm, this function i need to add in jaxon/functions.php at the bottom file ?

Image

This field is not visible in checkout screen:

Image

@girishpanchal30
Copy link

Hi, Thank you for answer. To confirm, this function i need to add in jaxon/functions.php at the bottom file ?

No, create a child theme and add the code to its functions.php file to prevent loss during jaxon theme updates.

This field is not visible in checkout screen:

It may conflict with other plugins on your website. On my end, it seems to be working fine.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants