Butazi
Forum Replies Created
-
Forum: Plugins
In reply to: [WP eCommerce] WP Commerce Not Processing TaxesHi again,
I’ve been unable to find a solution and if anyone can help me that would be greatly appreciated. Thanks!
Forum: Fixing WordPress
In reply to: WP Commerce Not Processing TaxAny help would be great, thanks
Forum: Fixing WordPress
In reply to: Adding jquery to head sectionDone and Done!
Forum: Fixing WordPress
In reply to: Adding jquery to head sectionOk! 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!
Forum: Fixing WordPress
In reply to: Adding jquery to head sectionI’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.
Forum: Fixing WordPress
In reply to: Adding jquery to head sectionWe 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.
Forum: Fixing WordPress
In reply to: Adding jquery to head sectionThanks 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;
});
});