| @@ -33,9 +33,9 @@ | ||
| 33 | 33 | * @var Freemius |
| 34 | 34 | */ |
| 35 | 35 | private $licence; |
| 36 | 36 | |
| 37 | - const VERSION = '2.1.2'; | |
| 37 | + const VERSION = '2.2.2'; | |
| 38 | 38 | |
| 39 | 39 | const DB_VERSION = '2.0'; |
| 40 | 40 | |
| 41 | 41 | /** |
| @@ -53,12 +53,8 @@ | ||
| 53 | 53 | add_action( 'admin_init', [ $this, 'checkRequirePlugins' ] ); |
| 54 | 54 | |
| 55 | 55 | add_filter( 'plugin_action_links_' . plugin_basename( $this->fileManager->getMainFile() ), |
| 56 | 56 | [ $this, 'addPluginAction' ], 10, 4 ); |
| 57 | - | |
| 58 | - add_action('init', function(){ | |
| 59 | - | |
| 60 | - }); | |
| 61 | 57 | } |
| 62 | 58 | |
| 63 | 59 | /** |
| 64 | 60 | * Add setting to plugin actions at plugins list |
| @@ -90,9 +86,8 @@ | ||
| 90 | 86 | |
| 91 | 87 | if ( $valid && ! $updater->checkForUpdates() ) { |
| 92 | 88 | |
| 93 | 89 | if ( is_admin() ) { |
| 94 | - | |
| 95 | 90 | new Admin( $this->fileManager, $this->licence, $this->settings ); |
| 96 | 91 | } else { |
| 97 | 92 | new Frontend( $this->fileManager, $this->licence, $this->settings ); |
| 98 | 93 | } |
| @@ -163,8 +158,9 @@ | ||
| 163 | 158 | delete_option( Settings::SETTINGS_PREFIX . 'table_title' ); |
| 164 | 159 | delete_option( Settings::SETTINGS_PREFIX . 'table_css_class' ); |
| 165 | 160 | delete_option( Settings::SETTINGS_PREFIX . 'tooltip_size' ); |
| 166 | 161 | |
| 162 | + // Premium | |
| 167 | 163 | delete_option( Settings::SETTINGS_PREFIX . 'show_discount_in_cart' ); |
| 168 | 164 | delete_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog' ); |
| 169 | 165 | delete_option( Settings::SETTINGS_PREFIX . 'show_discount_column' ); |
| 170 | 166 | delete_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog_type' ); |
| @@ -169,10 +165,12 @@ | ||
| 169 | 165 | delete_option( Settings::SETTINGS_PREFIX . 'show_discount_column' ); |
| 170 | 166 | delete_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog_type' ); |
| 171 | 167 | delete_option( Settings::SETTINGS_PREFIX . 'lowest_prefix' ); |
| 172 | 168 | 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' ); | |
| 173 | 171 | |
| 174 | - delete_option(Updater::DB_OPTION); | |
| 172 | + delete_option( Updater::DB_OPTION ); | |
| 175 | 173 | } |
| 176 | 174 | |
| 177 | 175 | /** |
| 178 | 176 | * Plugin activation |