Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ollybach

    (@ollybach)

    something like this in your themes functions.php i would have thought

    add_action('wppizza_order_form_before_profile_update', 'my_checkbox');
    function my_checkbox(){
    echo"<label><input type='checkbox' required />some text <a href='link/to/t_and_cs'>some link</a></label>";
    }

    or use any of the other action hooks provided in the wppizza-order.php template if you want that checkbox elsewehere

    i might add an option one day to add checkboxes there too as opposed to just select/text/email but until such time you should be able to use the above codesnippet

    Thread Starter oraculo1

    (@oraculo1)

    Hi ollybach, thanks for your reply, but i don’t understand how implement it. I added this code in functions.php template but i don’t see anywhere the checkbox.

    Can you put an example of how put it into form?

    Thanks a lot,

    Plugin Author ollybach

    (@ollybach)

    the above *IS* the example ?

    are you sure you put it into the right functions.php ?
    i.e the functions.php of the theme you are using ?

    Thread Starter oraculo1

    (@oraculo1)

    Hi,

    I’ve added this code

    add_action('wppizza_order_form_before_profile_update', 'my_checkbox');
    function my_checkbox(){
    echo"<label><input type='checkbox' required />some text <a href='link/to/t_and_cs'>some link</a></label>";

    in functions.php of my tempplate, but i don’t know where is the correct place. I’ve tried some places but nothing.

    Any idea? I’m not programmer… :C

    Thanks,

    Plugin Author ollybach

    (@ollybach)

    >but i don’t know where is the correct place

    anywhere at the bottom of that functions.php before the closing ?> (if any)

    if you want me to have a look, you’ll have to send me your admin login details for your site to dev[at]wp-pizza.com

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Question about Legal Advice’ is closed to new replies.