WordPress.org

Forums

WooCommerce - excelling eCommerce
Adding new fields on the same row (1 post)

  1. Dalibr
    Member
    Posted 1 year ago #

    Hello,

    How can I add 2 new fields on the same row? Now They are on 2.

    add_filter('woocommerce_checkout_fields','reorder_woo_fields');
    
        function reorder_woo_fields($fields) {
         $fields2['billing']['billing_ico'] = array(
            'label'     => __('ICO', 'woocommerce'),
        'placeholder'   => _x('ICO', 'placeholder', 'woocommerce'),
        'required'  => false,
        'class'     => array('form-row-first'),
        'clear'     => true
         );
            	$fields2['billing']['billing_dic'] = array(
            'label'     => __('DIC', 'woocommerce'),
        'placeholder'   => _x('DIC', 'placeholder', 'woocommerce'),
        'required'  => false,
        'class'     => array('form-row-last'),
        'clear'     => true
         );   
    
                return $fields2;
        }

    Cheers.

    https://wordpress.org/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags