• Resolved behroozjanfada

    (@behroozjanfada)


    Hi

    With latest versions of your plugin (1.5.0) and woocommerce, product input fields would not appear on emails. To fix that you should add this line:

    add_action( 'woocommerce_order_item_meta_end', array( $this, 'output_custom_input_fields_in_admin_order' ), 10, 3 );
    

    at line 70 of includes/class-alg-wc-pif-main.php

    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support oluisrael

    (@oluisrael)

    @behroozjanfada Thank you for bringing this to our attention. We will look into this asap and make relevant code changes where necessary in the next update.

    Thread Starter behroozjanfada

    (@behroozjanfada)

    Hi Oluisrael

    Thank you. Looking forward to that.

    Regards

    Plugin Support oluisrael

    (@oluisrael)

    @behroozjanfada I couldn’t recreate this issue on my end. All the tests performed with v1.5.0 had the input field data added to the emails. Image reference here – https://imgur.com/bLl7fbk.

    I think this might actually be an issue that is occurring as a result of a conflict on your site. ?If you don’t mind, I’ll need you to create a ticket on our?support tool?so that we can debug this further and get to the root of it.

    Plugin Support oluisrael

    (@oluisrael)

    @behroozjanfada you can also use the code below to patch this issue:

    add_action( 'woocommerce_before_order_itemmeta', array( $this, 'output_custom_input_fields_in_admin_order' ), 10, 3 );
                //add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'update_order_meta_fields' ), 10, 2 );
                //Line over commented out vk:4.9.2023, line under inserted
                add_action( 'woocommerce_order_item_meta_end', array( $this, 'output_custom_input_fields_in_admin_order' ), 10, 3 );
    Thread Starter behroozjanfada

    (@behroozjanfada)

    Hi @oluisrael

    Thanks a lot.

    With latest update, issue appears again and I patch it again with my solution. But for the next update if it appears again, I’ll use your solution.

    Cheers

    Plugin Support oluisrael

    (@oluisrael)

    @behroozjanfada the solution will work. You can add it from line number 69.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fixing the issue with emails not showing input fields’ is closed to new replies.