• Resolved zoologos

    (@zoologos)


    Hi.. very nice plugin! and usefull.. Is it possible, please, to integrate a text field where customers that make an order, will be able to leave particular instructions (ex about delivery) or comments …. ? thank you !! kindly, Federico

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Rupinder Kaur

    (@coolcoders)

    Hi Federico,

    you are facing this issue because we have removed this section from our plugin. To do so please go to file
    plugins/custom-checkout-layouts-for-woocommerce\WooCommerce\checkout\layouts\two-column-layout.php

    You have to add the below code at line no 7.

    <div class=”woocommerce-additional-fields”>
    <?php do_action( ‘woocommerce_before_order_notes’, $checkout ); ?>

    <?php if ( apply_filters( ‘woocommerce_enable_order_notes_field’, ‘yes’ === get_option( ‘woocommerce_enable_order_comments’, ‘yes’ ) ) ) : ?>

    <?php if ( ! WC()->cart->needs_shipping() || wc_ship_to_billing_address_only() ) : ?>

    <h3><?php esc_html_e( ‘Additional information’, ‘woocommerce’ ); ?></h3>

    <?php endif; ?>

    <div class=”woocommerce-additional-fields__field-wrapper”>
    <?php foreach ( $checkout->get_checkout_fields( ‘order’ ) as $key => $field ) : ?>
    <?php woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); ?>
    <?php endforeach; ?>
    </div>

    <?php endif; ?>

    <?php do_action( ‘woocommerce_after_order_notes’, $checkout ); ?>
    </div>

    That’s it. You just need to copy and paste this code in the given file. I will re-add this section in the new version. So you will not face it as an issue again.
    Do let me know if you are still facing any issues.

    Thanks

    Thread Starter zoologos

    (@zoologos)

    Hi .. thank you very much for the answer

    I put the code al line 7

    but dreamweaver reports an error at line 14
    <h3><?php esc_html_e( ‘additional information’, ‘woocommerce’ ); ?></h3>

    and even the checkout page say: A critical error has occurred on your website.

    I tried to modifiy
    additional-information
    additional_information
    no errors but also no text field

    what else can I try?
    thanks
    Federico

    Plugin Author Rupinder Kaur

    (@coolcoders)

    Hi

    it may be possible you have missed any closing tags or something . For this, i have the whole file at
    https://drive.google.com/file/d/159S3KcrQAQdmikgtJM-7q-B5uABoyurr/view?usp=sharing&#8221;
    So please copy and replace the whole file.

    In case you still face any issue you can share your site details at “rupinder.php@gmail.com”.i will be happy to help.

    Thanks

    Thread Starter zoologos

    (@zoologos)

    YESSSS! Fine! thank you
    I left a review 😉

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Text Field for customers’ is closed to new replies.