Your checkout flow will be a pain for customers. For example, the shipping AND payment pages are pretty much useless now which the only thing that it is doing now is to say basically "Wait for a quote". Since your client has made it a priority to do this for ALL products in his store, why not just bypass those pages which takes them directly to the checkout_confirmation page?
To bypass the shipping page, just use the virtual products as a template. This is how virtual products are bypassed:
Now when I have done things like this in the past, I actually built in a admin side control so the store owner can turn it back to normal with a admin setting. So once you enter the admin side switch to the database and in the admin menu, you could use something like this:Code:if ($order->content_type == 'virtual') { $_SESSION['shipping'] = 'free_free'; $_SESSION['shipping']['title'] = 'free_free'; $_SESSION['sendto'] = false; zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); }
Change the shipping title to what you want displayed on the confirmation page. Also, do the same to bypass the payment page by passing the payment option of your choice. This would make it very easy for the site owner to have future flexibility if they want to revert back to a normal operating store by a flip of a switch from true to false.Code:if (REQUEST_QUOTE == 'true') { $_SESSION['shipping'] = 'request_quote'; $_SESSION['shipping']['title'] = 'request_quote'; $_SESSION['sendto'] = $_SESSION['customer_default_address_id']; zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); }


Reply With Quote

