scole Posted January 25, 2004 Share Posted January 25, 2004 I installed the credit class contribution (zip:ccgv-510b) and everything went well. No errors or anything, however did discover a problem. The Shipping Page (checkout_shipping.php) no longer loads. When accessed, it automatically forwards me to the Payment Page (checkout_payment.php). I've tried to debug the problem and can't seem to resolve it. I believe I have narrowed it down to the following code: // if the order contains only virtual products, forward the customer to the billing page as // a shipping address is not needed // ICW CREDIT CLASS GV AMENDE LINE BELOW //if ($order->content_type == 'virtual') { if (($order->content_type == 'virtual') || ($order->content_type == 'virtual_weight') ) { if (!tep_session_is_registered('shipping')) tep_session_register('shipping'); $shipping = false; $sendto = false; tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } If I comment out the tep_redirect line it no longer automatically forwards me to the payment page (blank page displays). I have no idea why this is happening. I suspect that the problem actually lies within another file before it reaches this script, however I cannot find it. Any Ideas? Thanks, S. Cole Quote Link to comment Share on other sites More sharing options...
scole Posted January 25, 2004 Author Share Posted January 25, 2004 My apologies, I meant to post this within the Credit Class topic... Sorry, S. Cole Quote Link to comment Share on other sites More sharing options...
scole Posted January 25, 2004 Author Share Posted January 25, 2004 // if the order contains only virtual products, forward the customer to the billing page as // a shipping address is not needed // ICW CREDIT CLASS GV AMENDE LINE BELOW //if ($order->content_type == 'virtual') { if (($order->content_type == 'virtual') || ($order->content_type == 'virtual_weight') ) { if (!tep_session_is_registered('shipping')) tep_session_register('shipping'); $shipping = false; $sendto = false; tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } I just discovered something else. If I comment out just the tep_redirect, I get a blank page, however if I comment out the entire code the shipping returns and works fine. Question, How is the content_type determined? Where is this set from? Thanks, S. Cole Quote Link to comment Share on other sites More sharing options...
scole Posted January 26, 2004 Author Share Posted January 26, 2004 Anyone? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.