• Resolved VersGemerkt

    (@stilld)


    I’m so close!!!

    I’m trying to add another form option for people to fill out (zipcode).

    I managed to let it appear in the form.
    I managed to show zipcode in the backend of the plugin, even in the excel. BUT it just doesn’t give a value! So in my excel it says: zipcode: ‘blank’

    I’ve added:

    to em-booking.php:

    if( !empty($_REQUEST['dbem_zipcode']) ){
    	    	$user_data['dbem_zipcode'] = wp_kses($_REQUEST['dbem_zipcode'], array());
    	    }

    to em-booking-table.php:

    'dbem_zipcode'=>__('Zipcode','dbem'),

    and:

    }elseif($col == 'dbem_zipcode'){
    				$cols[] = esc_html($EM_Booking->get_person()->zipcode);

    to em-person:

    <tr><th><?php _e('Zipcode','dbem'); ?> : </th><td><?php echo esc_html($this->zipcode); ?></td></tr>

    It just doesn’t show the value of Zipcode in my plugin and in the excel…

    I know the pro version will take care of this. But I need it in the free version because of low budget. AND I can learn new stuff:)

    Hope you can help!

    https://wordpress.org/plugins/events-manager/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding extra form option’ is closed to new replies.