Home Forums WoodMart support forum how to insert textbox in checkout page

how to insert textbox in checkout page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #326499

    sufcreate
    Participant

    how to insert textbox in checkout page right my design please tell me code <filter / action>

    #326624

    Luke Nielsen
    Keymaster

    Hello,

    In order to create the textbox on the checkout page, try to add this code to the functions.php file in your child theme.

    if ( ! function_exists('wd_add_field_to_order_page') ) {
        function wd_add_field_to_order_page(){
            echo '<p class="woocommerce-billing-fields">';
            echo '<a href="#" class="btn btn-color-primary btn-style-link btn-shape-rectangle btn-size-default">Get code from link</a>';
            echo '</p>';
        }
    
        add_action( 'woocommerce_review_order_before_payment', 'wd_add_field_to_order_page', 10 );
    }

    https://gyazo.com/7ad183fd15f11f4d7d8281a7a9baefc1

    Kind Regards

    #326708

    sufcreate
    Participant

    I want to get the value(affiliate name in that textbox)

    or can you help me I bought sumo affiliate plugin but he reply very slow.
    This plugin has select affiliate(textbox that I want)
    When I come to the checkout page, there is a select affiliate as shown in the first picture.

    But if pressed from this affiliate link
    https://natnae.com/ref/chet4mk
    select affiliate will hide

    I already request support that I want it to stay and be famous. hold chet4mk(affilaite name) and send it with billing information

    I would like to ask you to check that custom field why it hide when clicking on affiliate link.
    pleaseeeeeee

    tell me how to custom woocommerce like above help me please

    best regard

    #326728

    Luke Nielsen
    Keymaster

    Hello,

    Unfortunately, such customization is not included in our support.

    You can get acquainted with Envato Support Policy here:

    https://themeforest.net/page/item_support_policy

    Kind Regards

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