I have a mini-cart section which, along with displaying the global cart quantity, acts as a view cart button, opening the cart in colourbox. This mini-cart section is part of the global header and is viewable form every page of the site (if fc_quantity != 0). I have no problems with the quantity update, nor the visibility toggle.
I am initializing the button on document.ready with the following ::
$("#global_cart_button").attr("href", CART_URL + "?cart=view").colorbox();
which works just fine for every page that is not the shop page. The difference is that on the shop page (that contains the product browser and actual submit form,) I am adding a preprocess event with ::
The preprocess event works as well, correctly validating the form before attempting to push the product variables to foxycart.
So, here's the problem :: on the shop page (and only on the shop page,) a click event on the mini-cart button triggers the preprocess event. i.e.: you have to choose a size and quantity in order to view the cart. This must mean that, in the foxycart.js (1.0) file, the preprocess event is triggered before the requested function variable is read (?view).
Is there a way to call the view function before the preprocess function? What about temporarily disabling (similar to $.unbind()) the preprocess event?