topspin/topspin-wordpress — Issue #32: trouble with store lightbox popup
Author: ezmiller
Created: 2012-02-04 20:37:50+00:00
State: open

Hi, I'm just reporting an issue that we're having with the view-more light box popup in the store. This is a strange problem as it doesn't seem to happen predictably. At the moment, I am not experiencing it on one out of three basically identical installs of our site. Anyway, what's happening is that the lightbox popup does not seem to get triggered. I'm in the middle of trying to debug this, but here's what I've found so far. On the sites that are working, when I put console output lines int he following two functions in topspin.ready.js like so:

var viewProduct = function(productID) {
var href = '#topspin-view-more-' + productID;
console.log('href:'+href);
if($(href).length) {
$.colorbox({
inline : true,
href : href
});
}
};

$('a.topspin-view-item').live('click',function(e) {
var pid = $(this).attr('href').replace('#!/','');
console.log('pid:'+pid);
setTimeout(function() { viewProduct(pid); },10);
});

I get the following console output:

pid:87898
href:#topspin-view-more-87898

Where it is not working, this is the output that I get:

pid:http://okgo.net/special-things-store/92983
href:#topspin-view-more-http://okgo.net/special-things-store/92983

I'm not sure why I would get these very different behaviors on different systems. In the case listed above, both instances of the site are running on the same dreamhost VPS. The installation's are identicial, except for a few settings of plugins that are different.

Any ideas?