BTM Enhancement - Example Product Script
<script>
$(window).load(function(){
//creates enhancements for BTM box with data-product-id 6670963649
e1 = new BTME();//read more on this object in support article
e1
.changePricingUnit('Per Cubic Foot', 12, 'price-preview')//changes the price displayed from $X Per Cubic Inch to $X Per Cubic Foot
.setGlobalMaximum(50)//applies a maximum to all fields
.setGlobalMinimum(5)//applies a minimum to all fields
.setFieldMaximum(2, 100, 'Please enter a value less than 100 inches.')//overrides global maximum for a specific field
.setFieldMinimum(2, 20, 'Please enter a value of at least 20 inches.')//overrides global minimum for a specific field
.commit();//performs all changes requested
});
</script>