discount_coupon_auto Class Reference

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Definition at line 15 of file discount_coupon_auto.php.


Member Function Documentation

discount_coupon_auto::discount_coupon ( code,
delivery 
)

Definition at line 19 of file discount_coupon_auto.php.

00019                                                  {
00020       $this->messages = array();
00021       $this->coupon = array();
00022       $this->applied_discount = array();
00023       $this->cart_info = array( 'valid_products' => array( 'count' => 0, 'line_items' => 0, 'total' => 0 ),
00024                                 'total_products' => array( 'count' => 0, 'line_items' => 0, 'total' => 0 ),
00025                                 'exclusions' => array() );
00026       $this->get_coupon( $code, $delivery );
00027       //get the module configuration values for debugging
00028           if( _cst_bool('MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DEBUG')) {
00029         $check_values_query = tep_db_query( $sql = "SELECT configuration_key, configuration_value
00030                                                     FROM " . TABLE_CONFIGURATION . "
00031                                                     WHERE configuration_key LIKE 'MODULE_ORDER_TOTAL_DISCOUNT_COUPON%'
00032                                                       OR configuration_key = 'DISPLAY_PRICE_WITH_TAX'
00033                                                       OR configuration_key = 'MODULE_SHIPPING_TABLE_STATUS'
00034                                                       OR configuration_key = 'MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING'" );
00035         while( $row = tep_db_fetch_array( $check_values_query ) ) {
00036           $this->message( 'INFO: '.$row['configuration_key'].' = '.$row['configuration_value'], 'debug' );
00037         }
00038       }
00039     }


Member Data Documentation

discount_coupon_auto::$applied_discount

Definition at line 17 of file discount_coupon_auto.php.

discount_coupon_auto::$cart_info

Definition at line 17 of file discount_coupon_auto.php.

discount_coupon_auto::$coupon

Definition at line 17 of file discount_coupon_auto.php.

discount_coupon_auto::$messages

Definition at line 17 of file discount_coupon_auto.php.


The documentation for this class was generated from the following file: