Title: WooCommerce checkout exposing code
Last modified: September 1, 2016

---

# WooCommerce checkout exposing code

 *  [craftspeed](https://wordpress.org/support/users/craftspeed/)
 * (@craftspeed)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/woocommerce-checkout-exposing-code/)
 * Woocommerce checkout page is exposing a load of code, as below, appearing just
   below the order forms
 * anyone an idea what is causing this or where to look to stop it?
 *     ```
       "); if ( jQuery($this).attr("minvalue") ) { jQuery($this).attr("min", jQuery($this).attr("minvalue") ); } if ( jQuery($this).attr("rangemax") ) { jQuery($this).attr("max", jQuery($this).attr("rangemax") ); } if ( jQuery($this).attr("maxvalue") ) { jQuery($this).attr("max", jQuery($this).attr("maxvalue") ); } if ( jQuery(this).attr("numstep") ) { jQuery($this).attr("step", jQuery($this).attr("numstep") ); } if (jQuery($this).attr("numpres") == "true") { jQuery("#slider_" + jQuery($this).attr("id")).slider({ range: true, min: parseInt(jQuery($this).attr("minvalue")), max: parseInt(jQuery($this).attr("maxvalue")), step: parseInt(jQuery($this).attr("numstep")), values: [ parseInt(jQuery($this).val()), parseInt(jQuery($this).attr("rangemax")) ], slide: function( event, ui ) { jQuery( $this ).val( ui.values[0] + " - " + ui.values[1]); } }); } else { jQuery($this).attr("type", "number"); jQuery("#slider_" + jQuery($this).attr("id")).slider({ range: jQuery($this).attr("numpres"), min: parseInt(jQuery($this).attr("minvalue")), max: parseInt(jQuery($this).attr("maxvalue")), step: parseInt(jQuery($this).attr("numstep")), value: parseInt(jQuery($this).val()), slide: function( event, ui ) { jQuery( $this ).val( ui.value ); } }).sliderAccess({ touchonly : true }); } }); jQuery("select[presentation='radio']").each(function(i, select){ var $select = jQuery(select); $select.find("option").each(function(j, option){ var $option = jQuery(option); // Create a radio: if ($option.val() != null && $option.val() != "") { var $radio = jQuery(""); // Set name and value: $radio.attr("name", $select.attr("name")).attr("value", $option.val()).attr("class", "radio").attr("style","width:10%"); // Set checked if the option was selected if ($option.attr("selected") != null && $option.attr("selected") == "selected" && $select.attr("hasselected") != null && $select.attr("hasselected") == "true" ) $radio.attr("checked", "checked"); //$radio.text($option.text()); // Insert radio before select box: $select.before($radio); // Insert a label: $select.before( jQuery("").attr("for", $select.attr("name")).text($option.text()) ); // Insert a
       : $select.before("
       "); } }); $select.remove(); }); jQuery("select[presentation='checkbox']").each(function(i, select){ var $select = jQuery(select); $select.find("option").each(function(j, option){ var $option = jQuery(option); // Create a radio: if ($option.val() != null && $option.val() != "") { var $radio = jQuery(""); // Set name and value: $radio.attr("name", $select.attr("name") + "[" + j + "]").attr("value", $option.val()).attr("class", "checkbox").attr("style","width:10%"); // Set checked if the option was selected if ($option.attr("selected") != null && $option.attr("selected") == "selected" && $select.attr("hasselected") != null && $select.attr("hasselected") == "true" ) $radio.attr("checked", "checked"); //$radio.text($option.text()); // Insert radio before select box: $select.before($radio); // Insert a label: $select.before( jQuery("").attr("for", $select.attr("name")).text($option.text()) ); $select.before("
       "); } }); $select.remove(); }); jQuery("select[multiple='multiple']").each(function(i, select){ var $select = jQuery(select); $select.attr("name", $select.attr("name") + "[]"); }); });
       ```
   

The topic ‘WooCommerce checkout exposing code’ is closed to new replies.

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 0 replies
 * 1 participant
 * Last reply from: [craftspeed](https://wordpress.org/support/users/craftspeed/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/woocommerce-checkout-exposing-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
