Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping...


scole

Recommended Posts

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

Link to comment
Share on other sites

// 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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...