Details
This Plugin enables visitors to your WP e-Commerce store to make connections to Product pages and share content back to their friends on Google+ with a single click.
Google +1 Button uses hooks within the WP e-Commerce template engine to remove the need for template changes making it Plugin update safe and painless to configure.
WP e-Commerce Compatibility
- WP e-Commerce 3.7 ready (up to 3.7.8)
- WP e-Commerce 3.8 ready (up to 3.13.*)
Hi Michael, not 100% sure I did this the best way but added this to line 181 of google-plus-one-button.php to only load the google script if you’re on a product page.
function wpsc_gp_load_script() {
if (is_singular( 'wpsc-product' )) {
wp_enqueue_script( 'wpsc_gp', 'http://apis.google.com/js/plusone.js', false, '1.0.0' );
}
}
Cheers, Paul.
It seams that you use an undefined method in your uninstall script. You should use delete_option instead of remove_option :D.
Nice work btw!
Hi Moss, thanks for the heads up. I’ll get that fixed up now! 😀
I am trying to use the plugin with manual placement; however I’m getting the following error:
Fatal error: Call to undefined function wpsc_the_google_plus_one_button()
Hi Billy B, I’ll look into this now 🙂
Spotted it, thanks Billy B. 😀
Perfect thanks!