PluginProbe
Tiered Pricing Table for WooCommerce / 2.0
Tiered Pricing Table for WooCommerce v2.0
7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 All 90 releases
← All changes | src/TierPricingTablePlugin.php +22 -9 2.2.32.0 View file →
@@ -33,12 +33,10 @@
33 33 * @var Freemius
34 34 */
35 35 private $licence;
36 36
37 - const VERSION = '2.2.3';
37 + const VERSION = '2.0';
38 38
39 - const DB_VERSION = '2.0';
40 -
41 39 /**
42 40 * TierPricingTablePlugin constructor.
43 41 *
44 42 * @param string $mainFile
@@ -65,9 +63,9 @@
65 63 */
66 64 public function addPluginAction( $actions ) {
67 65 $actions[] = '<a href="' . $this->settings->getLink() . '">' . __( 'Settings', 'tier-pricing-table' ) . '</a>';
68 66
69 - if ( ! tpt_fs()->is_anonymous() && tpt_fs()->is_installed_on_site() ) {
67 + if ( ! tpt_fs()->is_anonymous() ) {
70 68 $actions[] = '<a href="' . $this->licence->getAccountPageUrl() . '"><b style="color: green">' . __( 'Account',
71 69 'tier-pricing-table' ) . '</b></a>';
72 70 }
73 71
@@ -158,9 +156,8 @@
158 156 delete_option( Settings::SETTINGS_PREFIX . 'table_title' );
159 157 delete_option( Settings::SETTINGS_PREFIX . 'table_css_class' );
160 158 delete_option( Settings::SETTINGS_PREFIX . 'tooltip_size' );
161 159
162 - // Premium
163 160 delete_option( Settings::SETTINGS_PREFIX . 'show_discount_in_cart' );
164 161 delete_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog' );
165 162 delete_option( Settings::SETTINGS_PREFIX . 'show_discount_column' );
166 163 delete_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog_type' );
@@ -165,13 +162,10 @@
165 162 delete_option( Settings::SETTINGS_PREFIX . 'show_discount_column' );
166 163 delete_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog_type' );
167 164 delete_option( Settings::SETTINGS_PREFIX . 'lowest_prefix' );
168 165 delete_option( Settings::SETTINGS_PREFIX . 'head_discount_text' );
169 - delete_option( Settings::SETTINGS_PREFIX . 'clickable_table_rows' );
170 - delete_option( Settings::SETTINGS_PREFIX . 'show_total_price' );
171 - delete_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_product_page' );
172 166
173 - delete_option( Updater::DB_OPTION );
167 + delete_option(Updater::DB_OPTION);
174 168 }
175 169
176 170 /**
177 171 * Plugin activation
@@ -177,8 +171,27 @@
177 171 * Plugin activation
178 172 */
179 173 public function activate() {
180 174 set_transient( 'tiered_pricing_table_activated', true, 100 );
175 +
176 + add_option( Settings::SETTINGS_PREFIX . 'display', 'yes' );
177 + add_option( Settings::SETTINGS_PREFIX . 'position_hook', 'woocommerce_after_add_to_cart_button' );
178 + add_option( Settings::SETTINGS_PREFIX . 'head_quantity_text', __( 'Quantity', 'tier-pricing-table' ) );
179 + add_option( Settings::SETTINGS_PREFIX . 'head_price_text', __( 'Price', 'tier-pricing-table' ) );
180 + add_option( Settings::SETTINGS_PREFIX . 'display_type', 'table' );
181 + add_option( Settings::SETTINGS_PREFIX . 'selected_quantity_color', '#cc99c2' );
182 + add_option( Settings::SETTINGS_PREFIX . 'table_title', '' );
183 + add_option( Settings::SETTINGS_PREFIX . 'table_css_class', '' );
184 + add_option( Settings::SETTINGS_PREFIX . 'tooltip_size', 15 );
185 + add_option( Settings::SETTINGS_PREFIX . 'tooltip_border', 'yes' );
186 +
187 + // Premium
188 + add_option( Settings::SETTINGS_PREFIX . 'show_discount_in_cart', 'yes' );
189 + add_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog', 'yes' );
190 + add_option( Settings::SETTINGS_PREFIX . 'show_discount_column', 'yes' );
191 + add_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog_type', 'lowest' );
192 + add_option( Settings::SETTINGS_PREFIX . 'lowest_prefix', __( 'From', 'tier-pricing-table' ) );
193 + add_option( Settings::SETTINGS_PREFIX . 'head_discount_text', __( 'Discount (%)', 'tier-pricing-table' ) );
181 194 }
182 195
183 196 public function deactivate() {
184 197