Thread Starter
cruzk1
(@cruzk1)
i the < from the front to show you
Idk man, it doesn’t make sense that the javascript isn’t removing the attributes. Without more access then this , I’d just need to continue guessing which wouldn’t be much help.
I also just installed the plugin, added a product to my cart and hit checkout.
I’m not seeing a Continue Shopping button at all, where does it appear?
Thread Starter
cruzk1
(@cruzk1)
http://www.teamviewer.com/en/download/windows.aspx down load the first one. i can give you remote access?
Thread Starter
cruzk1
(@cruzk1)
when you add the product it should give you check or continue shopping access. I wonder if the future is and add on of gold cart part of wp ecommerce
I wonder….I’m taking a look hold on.
Thread Starter
cruzk1
(@cruzk1)
looks like there is quiet a bit of function script on it in the edit.
Ok, seems like I found it.
Give me a few seconds to cook up something for you.
Ok, it looks like this is functioning as intended. I didn’t realize that the button was not avaliable in the DOM on initial page load. The button is created and appended to the DOM ONLY when someone clicks ‘Add to cart’.
That I was not aware of.
Anyway, I digress. Here is the function:
function change_continue_shopping_link() {
?>
<script>
jQuery(function() {
setInterval(function() {
jQuery('.continue_shopping').removeAttr( 'href' ).removeAttr( 'onclick' ).attr( 'href' , 'http://www.google.com' );
}, 1200 );
});
</script>
<?php
}
add_action( 'wp_footer' , 'change_continue_shopping_link' );
Essentially it’s firing the function every second , and checking if the button exists. Once it finds the button, it strips the attributes and adds our new one.
Test it out and let me know if that works for you!
Thread Starter
cruzk1
(@cruzk1)
You did it! it works! thank you Evan!! you Rock Man!!
Whew, I’m glad we finally got that resolved!
Hopefully you learned a little bit along the way 🙂
Thread Starter
cruzk1
(@cruzk1)
I sure did. I will pass on the knowledge to the next guy who might be in distress 🙂 Thanks!