php - Magento Custom Shipping Module multiple rates not working -


edit

it looks called rate code returning same thing of shipping options. looks need find way define reate code each shipping option.

end edit

i created custom shipping module in magento ups freight shipping. needed options freight + lift gate, freight + residential, , freight + lift gate & residential. per response on board, instead of having checkbox each of these options create separate methods.

shipping options

as can see image, magento calculating prices correctly. issue have when select 1 of options , hit "update total", reverts first option lowest price. after inspecting inputs on radio buttons, found have same value.

<ul> <li>     <input name="estimate_method[2]" type="radio" value="excellence_excellence" id="s_method_excellence_excellence_2" class="radio">     <label for="s_method_excellence_excellence_2">freight<span class="price">$678.88</span></label> </li> <li>     <input name="estimate_method[2]" type="radio" value="excellence_excellence" id="s_method_excellence_excellence_2" class="radio">     <label for="s_method_excellence_excellence_2">freight (residential)<span class="price">$744.66</span></label> </li> . . , on. . </ul> 

since of inputs have same value "excellence_excellence", makes sense price default first one. unfortunately, have no idea how fix this.

below links model class, config.xml, , system.xml files. help, thoughts, or resources provided appreciated.

model config system

i looked @ model file, , has this:

$method->setcarrier($this->_code); $method->setmethod($this->_code); 

and $this->_code "excellence" might consider change method adding name of allowed method :

$method->setmethod($this->_code.$allowedmethod_code); //where allowedmethod_code have set based on custom method names 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -