wcbulkorder

The WooCommerce Bulk Order Form wcbulkorder shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[wcbulkorder]'); 
  1. // variable usage 
  2. $result = do_shortcode('[wcbulkorder]'); 
  3. echo $result;  

Defined (2)

The shortcode is defined in the following location(s).

/includes/templates/standard_template/standard_template.php  
  1. register_activation_hook( __FILE__, array( 'WCBulkOrderForm_Settings_Standard_Template', 'default_settings' ) ); 
  2. $this->options = get_option(wcbulkorderform_standard_template); 
  3. $standard_template_settings = new WCBulkOrderForm_Settings_Standard_Template(); 
  4.  
  5. add_shortcode('wcbulkorder', array( &$this, 'wc_bulk_order_form' ) ); 
  6.  
  7. // Functions to deal with the AJAX request - one for logged in users, the other for non-logged in users. 
  8. add_action( 'wp_ajax_bulk_order_product_search', array( &$this, 'bulk_order_product_search' )); 
  9. add_action( 'wp_ajax_nopriv_bulk_order_product_search', array( &$this, 'bulk_order_product_search' )); 
  10. add_action( 'wp_print_styles', array( &$this, 'load_styles' ), 0 ); 
/includes/templates/variation_template/variation_search_template.php  
  1. register_activation_hook( __FILE__, array( 'WCBulkOrderForm_Settings_Variation_Template', 'default_settings' ) ); 
  2. $this->options = get_option(wcbulkorderform_variation_template); 
  3. $variation_template_settings = new WCBulkOrderForm_Settings_Variation_Template(); 
  4.  
  5. add_shortcode('wcbulkorder', array( &$this, 'wc_bulk_order_form' ) ); 
  6.  
  7. // Functions to deal with the AJAX request - one for logged in users, the other for non-logged in users. 
  8. add_action( 'wp_ajax_bulk_order_product_search', array( &$this, 'bulk_order_product_search' )); 
  9. add_action( 'wp_ajax_nopriv_bulk_order_product_search', array( &$this, 'bulk_order_product_search' )); 
  10. add_action( 'wp_ajax_bulk_order_variation_search', array( &$this, 'bulk_order_variation_search' ));