1 | <?php |
||
9 | class WCSATT_STT_Display extends WCS_ATT_Display { |
||
10 | |||
11 | /** |
||
12 | * Initialize the display. |
||
13 | * |
||
14 | * @access public |
||
15 | * @static |
||
16 | */ |
||
17 | public static function init() { |
||
36 | |||
37 | /** |
||
38 | * Adds the additional subscription scheme data for products with attached subscription schemes. |
||
39 | * |
||
40 | * @access public |
||
41 | * @static |
||
42 | * @param object $_product |
||
43 | * @param array $subscription_scheme |
||
44 | * @param WC_Product $product |
||
45 | * @return string |
||
46 | */ |
||
47 | public static function add_sub_scheme_data_price_html( $_product, $subscription_scheme, $product ) { |
||
62 | |||
63 | /** |
||
64 | * Adds the extra subscription scheme data to the product object. |
||
65 | * This allows the subscription price to change the initial and |
||
66 | * recurring subscriptions. |
||
67 | * |
||
68 | * @access public |
||
69 | * @static |
||
70 | * @param object $_cloned |
||
71 | * @param array $subscription_scheme |
||
72 | * @return object |
||
73 | */ |
||
74 | public static function sub_product_scheme_option( $_cloned, $subscription_scheme ) { |
||
86 | |||
87 | /** |
||
88 | * Filters the price string to include the sign up fee and/or trial |
||
89 | * to pass per subscription scheme option. |
||
90 | * |
||
91 | * @access public |
||
92 | * @static |
||
93 | * @param array $prices |
||
94 | * @param array $subscription_scheme |
||
95 | * @return array |
||
96 | */ |
||
97 | public static function get_price_string( $prices, $subscription_scheme ) { |
||
108 | |||
109 | /** |
||
110 | * Filters the price string to include the sign up |
||
111 | * fee on the lowest subscription scheme. |
||
112 | * |
||
113 | * @access public |
||
114 | * @static |
||
115 | * @param array $prices |
||
116 | * @param array $lowest_subscription_scheme |
||
117 | * @return array |
||
118 | */ |
||
119 | public static function get_lowest_price_string( $prices, $lowest_subscription_scheme ) { |
||
126 | |||
127 | /** |
||
128 | * Adds the sign-up fee to the lowest subscription scheme option. |
||
129 | * |
||
130 | * @access public |
||
131 | * @static |
||
132 | * @param array $data |
||
133 | * @param array $lowest_scheme |
||
134 | * @return array |
||
135 | */ |
||
136 | public static function get_lowest_price_sub_scheme_data( $data, $lowest_scheme ) { |
||
143 | |||
144 | /** |
||
145 | * Adds the sign-up and/or trial data to the subscription scheme prices. |
||
146 | * |
||
147 | * @access public |
||
148 | * @static |
||
149 | * @param array $prices |
||
150 | * @param array $subscription_scheme |
||
151 | * @return array |
||
152 | */ |
||
153 | public static function add_subscription_scheme_prices( $prices, $subscription_scheme ) { |
||
168 | |||
169 | } |
||
170 | |||
172 |