Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

accidentally erased shopping_cart.php HTML!!!!


Guest

Recommended Posts

Posted

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.

Posted

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!

Posted

got it! Thanks! I didn't know I could do that!!

Posted

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?

Posted

real quick I know I have the latest build because its only a few days old but how do I see what version I am running? for example if I didnt know how do I check? thx

Posted

As far as fiding out which version you are running, I was able to see in mysql_catalog.sql

Posted

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!

Posted

You are too too cool!!! Thank you!!! I thought I wold NEVER get it back! :P

Posted

That's your database. Access it with phpmyadmin through the control panel that your host provides for you.

Posted

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.

Posted
Access it with phpmyadmin through the control panel that your host provides for you.

that would be nice, I had to install phpmyadmin myself. pretty simple

Archived

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

×
×
  • Create New...