How to remove Price from Options in Magento

Place this script in view.phtml file


<script>
    jQuery(document).ready(function() {   
    checkoptions();
    jQuery("#product-options-wrapper select").change(function(){
        checkoptions();
    });
    function checkoptions(){
        jQuery("#product-options-wrapper select option").each(function(){
            var optiontext = jQuery(this).text();
            var addsignpos = optiontext.indexOf('+');
            var subtractsignpos = optiontext.indexOf('-');
            if(addsignpos>0){
                var result = optiontext.substring(0,addsignpos-1);
                jQuery(this).html(result);
            }

            if(subtractsignpos>0){
                var result = optiontext.substring(0,subtractsignpos-1);
                jQuery(this).html(result);
            }
        });
    }

});
</script>

Replace the id and class as you using in site.

Through code also you can  change but their you  need to do changes in many files, the best and easy way to use the jquery script ;)

Comments

Popular Posts

Magmi Single and Multiple Category Importer