Skip to content

Instantly share code, notes, and snippets.

@leewillis77
Created June 25, 2012 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leewillis77/2990546 to your computer and use it in GitHub Desktop.
Save leewillis77/2990546 to your computer and use it in GitHub Desktop.
Patch to resolve image swap issues with SP themes and Simple Product Options plugin
--- old/theme.js 2012-06-25 20:00:45.389783955 +0100
+++ new/theme.js 2012-06-25 19:59:43.805786530 +0100
@@ -667,7 +667,7 @@
var i = 0; //counter
// loops through all selections and check if all has been selected to proceed (also captures all variation ids)
- jQuery("select", parent_form).each(function() {
+ jQuery("select.wpsc_select_variation_ajax", parent_form).each(function() {
if (jQuery("option:selected",this).val() == 0) {
allSelected = false;
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment