The plugin ‘Bad Behavior’ breaks my add-to-cart forms

This plugin adds a hidden form input to every form. This breaks validation and adds junk to your FoxyCart checkout form. The easiest way around this is to add this piece of code to your functions.php file. This will keep the code from being added to any FoxyShop pages (product pages and category pages).

add_filter("wp_head", "foxyshop_bb_fix", 1);
function foxyshop_bb_fix() {
	if (!defined("IS_FOXYSHOP")) return;
	global $bb2_javascript;
	$bb2_javascript = "";

Posted in: Troubleshooting