Forums

Events Manager
Strange behavior of booking - phone is not stored (7 posts)

  1. eWolf
    Member
    Posted 9 months ago #

    I have tested booking form and process and got a strange result. As standart fields are filled correctly I get all the correct data except the phone number which is never stored. May be there should be a specific format to get the phone number stored?
    Please advise.

  2. zyrq
    Member
    Posted 9 months ago #

    (imho) I would say this is a bug:
    in bookingform.php the field is called user_phone,
    in the db table the field is called dbem_phone.
    When I changed user_phone in dbem_phone the phone was saved ok and displayed in the admin sction.

    Also, there is a rogue " in the id of the user_phone:
    id="user_phone"" instead of id="user_phone"

    HTH

  3. Marcus
    Member
    Posted 9 months ago #

    i will change that to dbem_phone

  4. whitson
    Member
    Posted 9 months ago #

    I have the same problem with the phone number not being stored and subsequently not appearing on email.

    I don't quite follow what has to change, I have already tried these three options but can't get any success. Please can you tell me what to do.

    <label for='dbem_phone'><?php _e('Phone','dbem') ?></label>
    <input type="text" name="user_phone" id="user_phone" class="input" />
    
    <label for='user_phone'><?php _e('Phone','dbem') ?></label>
    <input type="text" name="user_phone" id="dbem_phone" class="input" />
    
    <label for='dbem_phone'><?php _e('Phone','dbem') ?></label>
    <input type="text" name="user_phone" id="dbem_phone" class="input" />

    [Please post code snippets between backticks or use the code button.]

  5. zyrq
    Member
    Posted 9 months ago #

    close, but not close enough:

    label for, id and name should all be the same, like this:

    <label for='dbem_phone'><?php _e('Phone','dbem') ?></label>
    <input type="text" name="dbem_phone" id="dbem_phone" class="input" />

    hth

  6. whitson
    Member
    Posted 9 months ago #

    Yay, it works!

    Thanks for the help.

  7. agelonwl
    Member
    Posted 9 months ago #

    great.

Reply

You must log in to post.

About this Plugin

About this Topic