VTMIN_Cart_Item

The VarkTech Minimum Purchase for WooCommerce VTMIN Cart Item class.

Defined (1)

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

/core/vtmin-cart-classes.php  
  1. class VTMIN_Cart_Item { 
  2.  
  3. public $product_id;  
  4. public $product_name; 
  5. public $quantity; 
  6. public $unit_price; 
  7. public $total_price; 
  8. public $prod_cat_list; 
  9. public $rule_cat_list;  
  10.  
  11. //used during rule process logic 
  12. public $product_participates_in_rule;  
  13.  
  14. public function __construct() { 
  15. $this->product_id;  
  16. $this->product_name; 
  17. $this->quantity = 0.00; 
  18. $this->unit_price = 0.00; 
  19. $this->total_price = 0.00; 
  20. $this->prod_cat_list= array(); 
  21. $this->rule_cat_list= array(); 
  22. $this->product_participates_in_rule = array( 
  23. /** **The following array structure is created on-the-fly during the apply process** 
  24. array( 
  25. 'post_id' => '',  
  26. 'inpop_selection' => $vtmin_rules_set[$i]->inpop_selection, //needed to test for 'vargroup' 
  27. 'ruleset_occurrence', => $i, //saves having to look for this later 
  28. 'inpop_occurrence' => $k //saves having to look for this later 
  29. */  
  30. ); 
  31.  
  32.  
  33. } //end class