Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Butazi

    (@butazi)

    Hi again,

    I’ve been unable to find a solution and if anyone can help me that would be greatly appreciated. Thanks!

    Thread Starter Butazi

    (@butazi)

    Any help would be great, thanks

    Thread Starter Butazi

    (@butazi)

    Done and Done!

    Thread Starter Butazi

    (@butazi)

    Ok! Update!

    It worked!

    I clicked add-to-cart and the fancy notification popped up but the page did go to checkout. Then I disabled fancy notifications and boom! It work works perfectly!

    Thank you so much Andrew!

    Edit: reading your previous post. It all is making a lot of sense now!

    You are the man!

    Thread Starter Butazi

    (@butazi)

    I’m having a bit of trouble digesting what you said, my apologies.

    jQuery(document).ready(function() {
    
      jQuery(document).on('wpsc_fancy_notification',function() {
        window.location = 'my checkout url';
      });
    });

    So what am I doing with the code above? I’m creating that code and putting it in a folder.

    This is what I have

    jQuery(document).ready(function() {
    
      jQuery(document).on('wpsc_fancy_notification',function() {
        window.location = '/checkout';
      });
    });

    Is the function.php code correct? I noticed a closed bracket with no open bracket to go along with it. Would would the open bracket be inserted (if needed)

    Currently this is what the code looks like on my end

    add_action( 'wp_enqueue_scripts', 'enqueue_my_listener' );
    function enqueue_my_listener()
      wp_register_script('my-listener','/wp-content/plugins/wp-e-commerce/wpsc-theme/listener.js',array('wp-e-commerce') );
      wp_enqueue_script('my-listener');
    }

    Sorry for my lack of skill. Let me know if I’m on the right track.

    Thread Starter Butazi

    (@butazi)

    We currently are on version 3.8.12.1

    Much appreciated Andrew. We also are using a premium theme that allows for custom js if that helps.

    Thread Starter Butazi

    (@butazi)

    Thanks for responding Andrew,

    Fancy notifications are already enabled. However we are only selling 1 product. So there is no reason to add that notification for them to keep browsing. It would be more ideal for them to go straight to checkout for a shorter sales funnel as well.

    That, and it’s also what the client is requesting.

    I guess the more correct code is

    jQuery(function($) {
    $(“form.product_form, .wpsc-add-to-cart-button-form”).die(‘submit’).live(‘submit’, function() {
    return true;
    });
    });

Viewing 7 replies - 1 through 7 (of 7 total)