Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

accidentally erased shopping_cart.php HTML!!!!


Guest

Recommended Posts

HELP!!! Somehow I erased all of the HTML code that is supposd to go with shopping_cart.php so it is completely blank!! I am using the newest version. Can someone help me with this?? thank you.

Link to comment
Share on other sites

When building a site, it is best to always keep a second copy of osC handy for situations like this.

In the mean time, why not just download another copy of osC to your local machine, and upload the messed up file to your site, or wherever you need it, and be done? If you've made extensive changes, then you may have to use it as a template to re-make the changes.

Good Luck!

Link to comment
Share on other sites

Okay, I reinstalled shopping_cart.php in version 2.2 but I have version 2.0. The error I keep getting says "Fatal error: Call to a member function on a non-object in /home/atozrent/public_html/ecommerce/os/catalog/shopping_cart.php on line 17" and line 17 is "$breadcrumb->add(NAVBAR_TITLE," breadcrumb does not exist in version 2.0. What do I do???? Is there a simple solution to this?

Link to comment
Share on other sites

If you look at the site you'll see a drop-down menu at the bottom. Select the branch (PR2.1, PR2.1a, MS2.2, etc, etc) you are using.

I saw a tep_pr2_1 version of the shopping_cart.php there.

 

And in the near future, back up your whole site!

Link to comment
Share on other sites

For the version check catalog/includes/application_top.php

 

// define the project version

  define('PROJECT_VERSION', 'osCommerce 2.2-MS3-CVS');

 

If you deleted your install directory without making a backup first then you wont have a .sql file anymmore.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...