<div dir="ltr">I'd have to look. This is a funny beast -- it is some of the first code in Interchange and indeed is brought from the very earliest <a href="http://vend.pl">vend.pl</a> code in 1995. My worry is that there is a tri-sense for $status. True, false, and undef. Have you looked at how it is used in the "submit" action in Vend::Dispatch?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 23, 2016 at 11:28 AM, Josh Lavin <span dir="ltr"><<a href="mailto:jlavin@endpoint.com" target="_blank">jlavin@endpoint.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It seems that the long-standing comment about the 'main' Route in<br>
catalog.cfg is wrong:<br>
<br>
    ## This route emails the order to you unless email is set to "", and<br>
    ## failsafe-logs the order report a couple of places<br>
<br>
If you follow those instructions, then you see an error:<br>
<br>
    > Empty order routing main_entry (and not explicitly empty).<br>
    > Either attach or email are required in the route setting.<br>
<br>
Kevin's docs are correct in this area:<br>
"Note that either attach, email or empty must be set for a route."<br>
<a href="http://interchange.rtfm.info/icdocs/Order_routing.html#email" rel="noreferrer" target="_blank">http://interchange.rtfm.info/<wbr>icdocs/Order_routing.html#<wbr>email</a><br>
<br>
If you blank out 'email', but also set either 'attach' or 'empty' to 1,<br>
then customer orders never show a receipt page, nor clear the cart, yet<br>
an order is accepted.<br>
<br>
I followed the rabbit, and this ocurrs as $status is returned by<br>
route_order() and is necessary to show the receipt and clear the cart.<br>
Yet, $status is only set if emails are sent.<br>
<br>
The following patch fixes it, and corrects the documentation:<br>
<br>
<a href="https://github.com/jdigory/interchange/commit/928a93b11c8862f38f201c0d1fdfb94d777cee69" rel="noreferrer" target="_blank">https://github.com/jdigory/<wbr>interchange/commit/<wbr>928a93b11c8862f38f201c0d1fdfb9<wbr>4d777cee69</a><br>
<br>
Does anyone know if setting $status to true when no emails are sent is a<br>
problem? Routing is an odd beast, but this seems to work fine in my<br>
tests.<br>
<br>
Thanks,<br>
Josh<br>
<span class="HOEnZb"><font color="#888888">--<br>
Josh Lavin<br>
End Point Corporation<br>
<br>
______________________________<wbr>_________________<br>
interchange-users mailing list<br>
<a href="mailto:interchange-users@icdevgroup.org">interchange-users@icdevgroup.<wbr>org</a><br>
<a href="http://www.icdevgroup.org/mailman/listinfo/interchange-users" rel="noreferrer" target="_blank">http://www.icdevgroup.org/<wbr>mailman/listinfo/interchange-<wbr>users</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">The problem with Internet quotations is that many of them<br>are not genuine. -- Abraham Lincoln<br></div>
</div>