Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

checkout_shipping.php


starfox221

Recommended Posts

So what happens is, when I use the checkout function of my Store it gets to checkout_shipping.php, where it askes you to ship the product, etc.

I get to the page where it says "Delivery Information" and as soon as I click continue after setting my shipping options, it goes to a blank page. Curiously enough, in Firefox only it displays  on it. I have tried replacing it with a Vanilla version and that did not work.

 

I haven't really modified anything else that would do anything with shipping except enable Per Item Shipping and I disabled that and deleted it.

 

I haven't tried reloading the Shipping Module but I don't see how that could have anything to do with it as it seems to be just an error when calling checkout_shipping.php

 

Shipping.php was modified but I replaced it with the original copy.

 

I really need help and any said help would be MUCH appreciated. Thanks!

Link to comment
Share on other sites

I just forced an order through and it worked OK.

Sent you a message with the order

Nic

 

Mm, thanks for the speedy message. Thing is I have "Flat Rate" option set up and installed with Sort Order 1.

I'm really quite lost as to what to do next.

Link to comment
Share on other sites

any shipping module must be ENABLED ie set to true before it shows on the shipping page, which has not been mentioned in your posts? sort order is normaly iirelevant especially when you only has one option.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

i may be stating the obvious in my post above, if you indeed had enabled the shipping module then there is deeper problems that prevent the page be redirected to the checkout_payment page. take a look at the logic of your chkout shipping page, which may be diff from a stock one, to see in what condition it would redirect or otherwise to the next page.

 

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

OR in English has anyone messed with or worked on the file?

 

It might be easier to add this code rather than spend loads of time on something they are going to have any way (if you only have the one shipping method

 

checkout_shipping.php:

 

just before:

 

// process the selected shipping method

 

add:

 

// bypass if only 1 shipping method available or free shipping

if ( (tep_count_shipping_modules() == 1) || ($free_shipping == true) ) {

if (!tep_session_is_registered('shipping')) tep_session_register('shipping');

if ($free_shipping) {

$quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;

$quote[0]['methods'][0]['cost'] = '0';

} else {

$quote = $shipping_modules->quote($method, $module);

}

$shipping = array('id' => $shipping,

'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),

'cost' => $quote[0]['methods'][0]['cost']);

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

}

 

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

OR in English has anyone messed with or worked on the file?

 

It might be easier to add this code rather than spend loads of time on something they are going to have any way (if you only have the one shipping method

 

checkout_shipping.php:

 

just before:

 

// process the selected shipping method

 

add:

 

// bypass if only 1 shipping method available or free shipping

if ( (tep_count_shipping_modules() == 1) || ($free_shipping == true) ) {

if (!tep_session_is_registered('shipping')) tep_session_register('shipping');

if ($free_shipping) {

$quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;

$quote[0]['methods'][0]['cost'] = '0';

} else {

$quote = $shipping_modules->quote($method, $module);

}

$shipping = array('id' => $shipping,

'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),

'cost' => $quote[0]['methods'][0]['cost']);

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

}

 

 

Nic

 

I beleive I already tried that code. What happens is that it will no longer get to the delivery information page, and just displays a white screen.

 

Ken, yes, the module is enabled and like I've said before I even inserted a default version of checkout_shipping.php

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...