Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Admin Module


Guest

Recommended Posts

Posted

Someone must know which files generate the Shipping Modules listing page under the Admin>Modules>Shipping section.

 

It has disappeared from 3 of my online stores, leaving only:

 

Module Directory: .../catalog/includes/modules/shipping/

 

Please someone help; 3 stores unable to modify.

Posted
Someone must know which files generate the Shipping Modules listing page under the Admin>Modules>Shipping section.

 

It has disappeared from 3 of my online stores, leaving only:

 

Module Directory: .../catalog/includes/modules/shipping/

 

Please someone help; 3 stores unable to modify.

It is advised, for ie. if something like this happens, to keep a copy of the osCommerce download package at hand. If you look inside the archive you will easily see which files are meant to be underneath that directory with a fresh osC install and you can copy them from the archive to the correct location again (given you haven't done any changes to those files yet). Besides that keep an up to date copy/backup of all your shop files, and the database of course, somewhere safe.

Posted
It is advised, for ie. if something like this happens, to keep a copy of the osCommerce download package at hand. If you look inside the archive you will easily see which files are meant to be underneath that directory with a fresh osC install and you can copy them from the archive to the correct location again (given you haven't done any changes to those files yet). Besides that keep an up to date copy/backup of all your shop files, and the database of course, somewhere safe.

 

Actually, I do have a copy of osCommerce. I was hoping to avoid having to copy over the entire package and thereby risk overwriting something like my configure.php files. I tried doing a directory by directory comparison of the already installed files and the fresh copy, but could not see the difference. That is why I was hoping someone would know specifically which files relate to the shipping module.

 

Do you?

Posted
Actually, I do have a copy of osCommerce. I was hoping to avoid having to copy over the entire package and thereby risk overwriting something like my configure.php files. I tried doing a directory by directory comparison of the already installed files and the fresh copy, but could not see the difference. That is why I was hoping someone would know specifically which files relate to the shipping module.

 

Do you?

 

You can always copy only those files from the archive which you are missing and/or want to replace. So if you browse through the archive you will find a catalog/includes/modules/shipping directory with the stock osC shipping files. That gives you the exact information about which files should be there. If you still have those files in your shop directory something else is wrong.

Posted
You can always copy only those files from the archive which you are missing and/or want to replace. So if you browse through the archive you will find a catalog/includes/modules/shipping directory with the stock osC shipping files. That gives you the exact information about which files should be there. If you still have those files in your shop directory something else is wrong.

 

Yep, something else is wrong. That was the first thing I checked. And whatever it is, it is also wrong with the /module/payment directory.

 

Those two modules have some program in common which creates the admin interface. So the big question is, which file/program does that?

Posted
Yep, something else is wrong. That was the first thing I checked. And whatever it is, it is also wrong with the /module/payment directory.

 

Those two modules have some program in common which creates the admin interface. So the big question is, which file/program does that?

You can start with (catalog)/admin/modules.php but if you haven't changed anything in this area I doubt you will find your problem that way.

If you have not done that already you might try to delete those two directories (backup first) and recreate them with the underlying files by hand.

Posted
You can start with (catalog)/admin/modules.php but if you haven't changed anything in this area I doubt you will find your problem that way.

If you have not done that already you might try to delete those two directories (backup first) and recreate them with the underlying files by hand.

 

OK, tried that. No go. I looked at the code in modules.php. Even though I know some PHP, it was too much for me. However, maybe you can tell me, which database does the modules.php file use to set up the admin table for each of the modules?

 

Thanks for your patience and help with this.

Posted
OK, tried that. No go. I looked at the code in modules.php. Even though I know some PHP, it was too much for me. However, maybe you can tell me, which database does the modules.php file use to set up the admin table for each of the modules?

 

Thanks for your patience and help with this.

Meilech,

 

The payment, shipping and total order modules are, so to speak, self-containing modules. The install/de-install writes/removes the appropriate information for that specific module to the database by itself.

If you go to your phpmyadmin and browse through the configuration table you will see which modules are supposed to be installed and with which values.

If I understand correctly you still have the fysical files on your network space but the underlying modules just do not show up anymore when you go to your admin->modules ?!

I have had something like that when my host moved me to a different server. After deleting the files and copying them again the problem was solved. I still don't know exactly why this has happened but I suspect it was merely a problem with the owner settings for those files.

Posted
Meilech,

 

I have had something like that when my host moved me to a different server. After deleting the files and copying them again the problem was solved. I still don't know exactly why this has happened but I suspect it was merely a problem with the owner settings for those files.

 

Yes, I think that is exactly when the problem showed up. So once again for my feeble mind, which files did you delete and recopy.

 

BTW, I did look at the config databases with phpmyadmin. The more I get into this program, the more I am amazed at it. In any case, everything there looked OK.

 

Thanks again.

Posted
Yes, I think that is exactly when the problem showed up. So once again for my feeble mind, which files did you delete and recopy.

 

BTW, I did look at the config databases with phpmyadmin. The more I get into this program, the more I am amazed at it. In any case, everything there looked OK.

 

Thanks again.

You have (catalog)/includes/modules/payment and (catalog)/includes/modules/shipping which contain the source files and you will find the related language files in (catalog)/includes/languages/english/modules/payment and (catalog)/includes/languages/english/modules/shipping

If you do not see a single payment and shipping module anymore in your admin while all the files are still within those directories you should delete and replace them all, otherwise stick to those missing. As always backup !

Posted
You have (catalog)/includes/modules/payment and (catalog)/includes/modules/shipping which contain the source files and you will find the related language files in (catalog)/includes/languages/english/modules/payment and (catalog)/includes/languages/english/modules/shipping

If you do not see a single payment and shipping module anymore in your admin while all the files are still within those directories you should delete and replace them all, otherwise stick to those missing. As always backup !

 

I found all of the source files in includes/ & includes/languages/

 

But what exactly am I looking for in admin? PHP files or modules? Actually, I didn't either in the damaged carts, OR in the freshly downloaded osCommerce.

Posted
You have (catalog)/includes/modules/payment and (catalog)/includes/modules/shipping which contain the source files and you will find the related language files in (catalog)/includes/languages/english/modules/payment and (catalog)/includes/languages/english/modules/shipping

If you do not see a single payment and shipping module anymore in your admin while all the files are still within those directories you should delete and replace them all, otherwise stick to those missing. As always backup !

 

OK, I tried it. I deleted the payment and shipping modules in both subdirectories. Copied them over from a freshly unzipped osCommerce download. Nada. Same problem.

 

I still think that you are on to something. But I think the problem problem resides in the admin files. What should I be looking to replace there?

Posted
OK, I tried it. I deleted the payment and shipping modules in both subdirectories. Copied them over from a freshly unzipped osCommerce download. Nada. Same problem.

 

I still think that you are on to something. But I think the problem problem resides in the admin files. What should I be looking to replace there?

Strange thing ?! Ultimately you could copy every admin file freshly from the osCommerce zip package to your web directories. Most files you will not have changed so that wouldn't harm anyway. For those where you made changes you should be careful. It doesn't however make much sense to do this as it sounds that only your payment and shipping modules do not work anymore while the rest of your admin is functioning fine. If you have a second, for testing, database option with your hosting account I would try a fresh install and see if that works. If that works okay and the files are the same as with your not working shop I would talk to my host and ask what the heck they have done (unless you remember someone did a contrib chage to the files involved)

Posted
Strange thing ?! ...do not work anymore while the rest of your admin is functioning fine. If you have a second, for testing, database option with your hosting account I would try a fresh install and see if that works. If that works okay and the files are the same as with your not working shop I would talk to my host and ask what the heck they have done (unless you remember someone did a contrib chage to the files involved)

 

Strange thing indeed. I completely replaced all the files, not just admin, from a fresh install. Kept the old database (not trashing 4,000 products). And I still had the same problem - only the modules interface is busted.

 

Actually did talk to the host: they are familiar with osCommerce and spent a good part of a day going though the files. Nada. Couldn't find a problem.

 

So the database? Coul there be one field in one database that turns on the module interface?

Posted
Strange thing ?!

 

As noted in my other reply, even after a fresh install, I still can't get the modules interface to work. It's been over 2 weeks of non-functioning for these 3 accounts. Will keep trying to figure this out, but I need your help with an alternative:

 

AFIK, all the interfaces do is insert values in the databases, something I can do directly with phpmyadmin. Can you tell me which database(s), which fields and what values I need to alter to accomplish the following?

 

1) Flat rate shipping at $5.95 per order

 

2) Tax rate 8.25% for orders from within California.

 

I need both to show up when processing the order, which they do not currently.

 

Can you help me?

Posted
Strange thing indeed. I completely replaced all the files, not just admin, from a fresh install. Kept the old database (not trashing 4,000 products). And I still had the same problem - only the modules interface is busted.

 

Actually did talk to the host: they are familiar with osCommerce and spent a good part of a day going though the files. Nada. Couldn't find a problem.

 

So the database? Coul there be one field in one database that turns on the module interface?

the problem is likely with the database. If the old one comes from an earlier version of osc like ms1 it has to be converted.

Posted
the problem is likely with the database. If the old one comes from an earlier version of osc like ms1 it has to be converted.

 

It's from the current version of osc. Please see my other message in this thread about which tables/fields to change in order to get shipping/payments/taxes working the way I need to.

 

I'll have to do it with phpmyadmin until I can figure out the source of the original problem.

 

thanks

Posted
the problem is likely with the database. If the old one comes from an earlier version of osc like ms1 it has to be converted.

 

Does this make sense. I went into the database use phpmyadmin. I looked at the Configuration table, fields 67, 68, and 69, which are for the 3 modules: payment, shipping and order_total. the config_value was blank in each of them and the set_function was NULL. So, hacker that I used to be, I manually set the config_value to true for each of them. then I looked through the rest of the table. Just to check my work, I went back to those 3 fields and lo and behold, they were reset to blank and NULL.

 

That can't be right. Any ideas?

Posted
I have had something like that when my host moved me to a different server. After deleting the files and copying them again the problem was solved. I still don't know exactly why this has happened but I suspect it was merely a problem with the owner settings for those files.

 

Well, a really alert techie at the hosting service finally found the problem after 3 weeks of agony with 3 different accounts.

 

The error for each of the accounts was in the file catalog/admin/includes/configure.php which have the path for the catalog was /home2/.../public_html/catalog/ which was the path for my home directory at my old host and on my new server, the path for my home directory is /home/.../public_html/catalog/. Just one little character, that's all it took to trash the modules. What isn't clear is why more didn't go wrong.

 

The lines were

--------------------------------------------------------------------------------

define('DIR_FS_DOCUMENT_ROOT', '/home/.../public_html/catalog/');

define('DIR_FS_ADMIN', '/home/.../public_html/catalog/admin/'); // absolute path required

define('DIR_FS_CATALOG', '/.../mikvahsu/public_html/catalog/'); // absolute path required

--------------------------------------------------------------------------------

 

I am posting this reply, because you never know who might run into the same type of problem when transferring from one host to another. Also, you are more likely and I to see the next desperate call for help.

Archived

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

×
×
  • Create New...