/var/www/html_us/wp-content/plugins/checkout-for-woocommerce/includes/Action/UpdateSideCart.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

namespace Objectiv\Plugins\Checkout\Action;

/**
 * @link checkoutwc.com
 * @since 5.4.0
 * @package Objectiv\Plugins\Checkout\Action
 * @author Clifton Griffin <[email protected]>
 */
class UpdateSideCart extends CFWAction {

    public function 
__construct() {
        
parent::__construct'update_side_cart'false );
    }


    public function 
action() {
        
check_ajax_referer'cfw-update-side-cart''security' );

        
parse_strwp_unslash$_POST['cart_data'] ), $cart_data );

        
$this->out(
            array(
                
'result' => cfw_update_cart$cart_data['cart'] ?? array() ),
            )
        );
    }
}