• ale152

    (@ale152)


    Hi,
    I’m using Wp Event Manager 4.301, and I love this plugin.
    Unfortunately I’m using it on a server that can’t be updated, so this is the latest version I can use with my PHP version.
    I need that user could registrate to an event as guest, but I need they insert some information in a form (name, surname, association, other info…).
    How can I edit the registration/booking form for the event?

    http://ww.wp.xz.cn/extend/plugins/events-manager/

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

    (@angelonwl)

    hi,

    you can edit that using the template file at /templates/forms/bookingform/booking-fields.php

    http://wp-events-plugin.com/documentation/using-template-files/

    Thread Starter ale152

    (@ale152)

    Great! That is what I was looking for!
    But now… If I edit the input form, how do I insert these data into the DB?

    agelonwl

    (@angelonwl)

    Thread Starter ale152

    (@ale152)

    Mhhh, I’m having some problems editing custom fields.
    I edited booking-fields.php with my custom fields, then I edited classes/em-booking.php with the same values:

    /**
    	 * Contains an array of custom fields for a booking. This is loaded from em_meta, where the booking_custom name contains arrays of data.
    	 * @var array
    	 */
    	var $custom = array(
    		'name' => array('name'=>'name','type'=>'%s'),
    		'family_name' => array('name'=>'family_name','type'=>'%s'),
    		'ASWG' => array('name'=>'ASWG','type'=>'%s'),
    		'date_place_arr' => array('name'=>'date_place_arr','type'=>'%s'),
    		'date_place_dep' => array('name'=>'date_place_dep','type'=>'%s'),
    		'tshirt' => array('name'=>'tshirt','type'=>'%s')
    	);
    	/**

    What should I do now to make it work?

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

The topic ‘[Plugin: Events Manager] Edit booking form’ is closed to new replies.