Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

shipping options missing


majik

Recommended Posts

Posted

Okay, first a little background on what I did. I had an older snapshot that didn't support the SIM method with Authorize.net so I used the module from a newer snapshot. After replacing/fixing several of the checkout related files, I noticed that my shipping options are gone. They show in the admin side, but not during checkout. (It just goes through like you have none.) I have tried to find the function that calls them, but so far, no luck. Does anyone know where this is? Or if ithe data moved in the database? I can probably fix it once I know where to look. Thanks.

 

PS: An idea of what I am talking about:

http://www.nve.com/~majik/shipping.jpg (there should be six options there)

 

~Jon.

Posted

Kay. Nevermind. I got that working. I had a little trouble getting the billing address to display on the checkout_confirmation.php page, but was able to steal a line of code from another file to do it. My last major barrier is that, even though I have shipping showing up, it's not being added into the total. All that I have are Sub-Total and Total. (It's turned on in the admin section and everything.)

 

If anyone has run into that one before, I'd love to know how to fix it.

 

Thanks.

 

~Jon

Posted

Alright... I am getting closer. In my checkout_confirmation.php file I have the following line:

if ($order->info['shipping_method']) {

 

For some reason this is always working out to be false which is why I never see this shipping method on the confirmation or the shipping included with the total.

 

Can someone give me a solid definition of what this line is doing? I am trying to figure out what I am missing.

 

Thanks.

  • 2 weeks later...
Posted

Okay, one more time with feeling:

 

I am starting to suspect that I might be missing fields in the orders table. Mine looks like this:

 

 

mysql> describe orders

-> ;

+---------------------------

| Field

+---------------------------

| orders_id

| customers_id

| customers_name

| customers_street_address

| customers_suburb

| customers_city

| customers_postcode

| customers_state

| customers_country

| customers_telephone

| customers_email_address

| customers_address_format_id

| delivery_name

| delivery_street_address

| delivery_suburb

| delivery_city

| delivery_postcode

| delivery_state

| delivery_country

| delivery_address_format_id

| payment_method

| cc_type

| cc_owner

| cc_number

| cc_expires

| last_modified

| date_purchased

| orders_status

| orders_date_finished

| comments

| currency

| currency_value

I left of the types and defaults crap becuase it didn't paste in right.

Can someone tell me if I am missing something in here? Does shipping_method belong in this table?

Posted

Check your configure.php file and see if you are using $DOCUMENT_ROOT in the define statement rather than the actual value of DOCUMENT_ROOT.

 

You can look up that value in the Admin ... Tools ... Server Info ...

 

Do a search on DOCUMENT_ROOT to find it.

 

Example:

define('DIR_FS_DOCUMENT_ROOT', '/home/octave/public_html');

Posted

Linda, you rule. It wasn't the document root, but you made me go back and look at the whole process again to try and redescribe what was going on, and I noticed a call to a class file that I hadn't seen in the first 157 times I looked at it. Once I made some updates to that file to work with the new checkout method, it worked.

 

Once again, YOU RULE!

Thanks.

Posted

Glad I could give you a poke in the right direction ... sometimes that is all it takes to get the little grey cells functioning again ... 8)

  • 2 months later...
Posted
Linda, you rule. It wasn't the document root, but you made me go back and look at the whole process again to try and redescribe what was going on, and I noticed a call to a class file that I hadn't seen in the first 157 times I looked at it. Once I made some updates to that file to work with the new checkout method, it worked.

 

Once again, YOU RULE!

Thanks.

 

Hey Majik.

 

Could you explain further. I am having the same problem and would love to know how to fix it.

 

Thanks!

 

Mark

Dayton, OH

Posted

As I stated, I had replaced nearly every file related to checkout with newer versions of them. I just hunted down and fixed errors as they came. (and there were many) I didn't get a file error with shipping options though, and it turned out that there was a file in the catalog/includes/classes folder that was getting called by another file, but it didn't exist.

If your problem is the same as mine, your best bet is to go over each file in the checkout process with a fine tooth comb and pay special attention to the include commands. Make sure that all of the called files exist and contain the information that is expected. I usually tar'd up the original file and copied in a more recent one to see if it fixed the problem. It usually did. (Of course it may also cause you *more* problems, but that's how I ended up replacing so many files.)

 

Good Luck

Archived

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

×
×
  • Create New...