<div dir="ltr">On Wed, Oct 16, 2013 at 12:43 PM, William Carr <span dir="ltr"><<a href="mailto:bill@bottlenose-wine.com" target="_blank">bill@bottlenose-wine.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div>I'm glad this came up. I was just working on this today.</div><div>
<br></div><div>What to we do when different carriers offer different services that will not fit into our predefined, generic services?</div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><div><br></div><div>I think in the example above we will have to assume each carrier offers essentially the same services which may not be the case.</div></div></div></blockquote><div>
<br></div><div>The idea here is not that each carrier offers the same service, but that the module would map the concept of a ground and express service to one of the carrier's modes to create sane defaults.<br><br></div>
<div>$shipment->all_services is used to expose all of the service options for a given carrier, from/to address, etc.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><div><br></div><div>In interchange we usually do something like:</div><div><br></div><div>UserTag ship_cost</div><div>blah, blah, bah</div><div><br></div><div>shipping.asc:</div><div>
f [ship_cost mode=GROUND_HOME_DELIVERY]</div><div><br></div><div>Today I messed around with an approach like so:</div><div><div>shipping.asc:</div><div>f [ship_cost carrier=FexEx service=ground]</div><div><br></div></div>
In my first example we have to assume each carrier's service (or mode) has a unique name of pass in a carrier parameter.</div></div></blockquote><div><br></div><div>I would recommend against doing this since you cannot guarantee uniqueness across carriers. Carrier + Service should always be used.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>In the later example we'd have to limit the generic services to the once provided by all the carriers used.</div>
<br></div></blockquote><div> <br></div><div>As stated above., I would envision that all carriers would have the generic services mapped to something by default.<br><br></div><div>Andrew<br></div></div></div></div>