javascript - Magento setAttribute error on checkout page -


ok when "proceed checkout", gives list of :

  1. checkout method
  2. billing information
  3. shipping information
  4. shipping method
  5. payment information
  6. order review

by default, checkout method suppose dropped down , when hit "continue", billing information drop down similar : http://www.plazathemes.com/demo/ma_musicgear/index.php/checkout/onepage/

however, when go page, checkout method isn't dropped down , whenever click on it, nothing happens. these js errors:

uncaught typeerror: object [object object] has no method 'attachevent' prototype.js:5644 2 uncaught typeerror: object [object object] has no method 'attachevent' prototype.js:5653 uncaught typeerror: object [object object] has no method 'setattribute' clearchannel.halfoffdeals.com/index.php/checkout/onepage/:349 uncaught typeerror: object [object object] has no method 'attachevent' prototype.js:5644 uncaught typeerror: object [object object] has no method 'observe' opcheckout.js:236 uncaught typeerror: object [object object] has no method 'setattribute' clearchannel.halfoffdeals.com/index.php/checkout/onepage/:544 uncaught typeerror: object [object object] has no method 'observe' opcheckout.js:374 uncaught typeerror: object [object object] has no method 'observe' opcheckout.js:537 uncaught typeerror: object [object object] has no method 'getelementsbytagname' prototype.js:5010 uncaught typeerror: object [object object] has no method 'attachevent' prototype.js:5653 uncaught typeerror: object [object object] has no method 'attachevent' prototype.js:828 uncaught typeerror: object [object object] has no method 'dispatchevent' 

do of have this? i'm getting attachevent , blah blah prototype because of bootstrap. don't know how resolve i'm putting on hold. i'm guessing setattribute causing problem?

thanks help..

i don't know if of help, on shopping cart page before hit proceed checkout, lists label "state/province" under estimate shipping , tax, not select/input box.. it's coming invalid region_id on checkout page:

so setattribute error coming section:

                        <div class="field">                             <label for="shipping:region" class="required"><em>*</em>state/province</label>                             <div class="input-box">                                 <select id="shipping:region_id" name="shipping[region_id]" title="state/province" class="validate-select" style="display:none;">                                     <option value="">please select region, state or province</option>                                 </select>                                 <script type="text/javascript">                                 //<![cdata[                                     $('shipping:region_id').setattribute('defaultvalue',  ""); uncaught typeerror: object [object object] has no method 'setattribute'                                 //]]>                                 </script>                                 <input type="text" id="shipping:region" name="shipping[region]" value="" title="state/province" class="input-text " style="display:none;" />                             </div>                         </div> 

it's saying $('shipping:region_id') has no method setattribute..

@rommel has helped answer. these steps took solve issue:

  • put in jquery-noconflict.js file : jquery.noconflict();
  • add in right after jquery.js file in

done! =) makes lot of errors people said bootstrap , prototype interfering each other. errors disappear after issuing noconflict()!


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -