Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Yes, it is possible. Please use following code snippet:

    add_action( 'wp_enqueue_scripts', 'aws_wp_enqueue_scripts', 999 );
    function aws_wp_enqueue_scripts() {
        $script = ' 
            jQuery(document.body).on( "added_to_cart", function() {
                location.reload();
            } );
        ';
        wp_add_inline_script( 'aws-script', $script);
        wp_add_inline_script( 'aws-pro-script', $script);
    }

    You need to add it somewhere outside the plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets.

    Regards

    Thread Starter curillo

    (@curillo)

    Thanks, it worked perfect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The page refresh’ is closed to new replies.