I have a custom partial called payment:custom (for some reason this name just show it automatically on the pay page. Probably, other name could work if you add the partial manually):
<h4>COD is for local orders only that have been prearranged. Payment may be made at time of pickup</h4>
<?= open_form() ?>
<?= flash_message() ?>
<ul class="form">
<li><a href="#" class="link-button" onclick="return $(this).getForm().sendRequest('redirect_to_receipt')" class="link-button" href="#">See Your Receipt</a></li>
</ul>
</form>
On the Ajax tab, under Pay page I have:
function redirect_to_receipt ($controller, $page, $params)
{
Phpr::$response->redirect(root_url('shop/receipt/'.$params[0], true));
}
What would I need to do on the receipt page so the order can be transitioned automatically for COD orders?

Help













