VTMIN_Parent_Definitions

VarkTech Minimum Purchase for WooCommerce Woo-specific functions Parent Plugin Integration.

Defined (1)

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

/woo-integration/vtmin-parent-definitions.php  
  1. class VTMIN_Parent_Definitions { 
  2.  
  3. public function __construct() { 
  4.  
  5. define('VTMIN_PARENT_PLUGIN_NAME', 'WooCommerce'); 
  6. define('VTMIN_EARLIEST_ALLOWED_PARENT_VERSION', '2.1.0'); //v1.0.9.5 plugin now uses WOO messaging to send messages to screen 
  7. define('VTMIN_TESTED_UP_TO_PARENT_VERSION', '1.6.6'); 
  8. define('VTMIN_DOCUMENTATION_PATH_PRO_BY_PARENT', 'http://www.varktech.com/woocommerce/minimum-purchase-pro-for-woocommerce/?active_tab=tutorial'); //*** 
  9. define('VTMIN_DOCUMENTATION_PATH_FREE_BY_PARENT', 'http://www.varktech.com/woocommerce/minimum-purchase-for-woocommerce/?active_tab=tutorial');  
  10. define('VTMIN_INSTALLATION_INSTRUCTIONS_BY_PARENT', 'http://www.varktech.com/woocommerce/minimum-purchase-for-woocommerce/?active_tab=instructions'); 
  11. define('VTMIN_PRO_INSTALLATION_INSTRUCTIONS_BY_PARENT', 'http://www.varktech.com/woocommerce/minimum-purchase-pro-for-woocommerce/?active_tab=instructions'); 
  12. define('VTMIN_PURCHASE_PRO_VERSION_BY_PARENT', 'http://www.varktech.com/woocommerce/minimum-purchase-pro-for-woocommerce/'); 
  13. define('VTMIN_DOWNLOAD_FREE_VERSION_BY_PARENT', 'http://wordpress.org/extend/plugins/minimum-purchase-for-woocommerce/'); 
  14.  
  15. //html default selector locations in checkout where error message will display before. 
  16. define('VTMIN_CHECKOUT_PRODUCTS_SELECTOR_BY_PARENT', '.shop_table'); // PRODUCTS TABLE on BOTH cart page and checkout page 
  17. define('VTMIN_CHECKOUT_ADDRESS_SELECTOR_BY_PARENT', '#customer_details'); // address area on checkout page default = on 
  18.  
  19. error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING ^ E_DEPRECATED ); // v1.0.9 
  20.  
  21. global $vtmin_info;  
  22. $default_full_msg = __('Enter Custom Message (optional)', 'vtmin'); //v1.08 fixed v1.09 
  23. $vtmin_info = array(  
  24. 'parent_plugin' => 'woo',  
  25. 'parent_plugin_taxonomy' => 'product_cat',  
  26. 'parent_plugin_taxonomy_name' => 'Product Categories',  
  27. 'parent_plugin_cpt' => 'product',  
  28. 'applies_to_post_types' => 'product', //rule cat only needs to be registered to product, not rule as well... 
  29. 'rulecat_taxonomy' => 'vtmin_rule_category',  
  30. 'rulecat_taxonomy_name' => 'Minimum Purchase Rules',  
  31.  
  32. //elements used in vtmin-apply-rules.php at the ruleset level 
  33. 'error_message_needed' => 'no',  
  34. 'cart_grp_info' => '',  
  35. /** cart_grp_info will contain the following: 
  36. array( 
  37. 'qty' => '',  
  38. 'price' => '' 
  39. */ 
  40. 'cart_color_cnt' => '',  
  41. 'rule_id_list' => '',  
  42. 'line_cnt' => 0,  
  43. 'action_cnt' => 0,  
  44. 'bold_the_error_amt_on_detail_line' => 'no',  
  45. 'currPageURL' => '',  
  46. 'woo_cart_url' => '',  
  47. 'woo_checkout_url' => '',  
  48. 'woo_pay_url' => '',  
  49. 'default_full_msg' => $default_full_msg //v1.08 
  50. ); 
  51.  
  52.  
  53. } //end class