adding html to order , thank you and/or history pages(s)

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #4058
    Olly
    Admin & Mod

      there are a bunch of action hooks in the order page (wppizza-order.php) , thank you page (wppizza-show-order.php) and order history page (wppizza-orderhistory.php) starting with

      
      do_action('some_action',$some_variable(s)) 
      

      for example, if you would like to add a print button at the top of the thank you page, you could add the following to your theme’s function.php

      
      add_action('wppizza_show_order_before','my_print_button');
      function my_print_button($cart){
      print"<input type='button' value='print' onclick='window.print();return false;' />";
      }
      
    Viewing 1 post (of 1 total)
    • The topic ‘adding html to order , thank you and/or history pages(s)’ is closed to new replies.