Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

catalog folder?


Guest

Recommended Posts

Hi, I'm a bit confused. re a catalog folder. I don't have one. Any idea why? I have looked on the server and local system. But no catalog folder on either.

Folder I have from root down:-

admin

download

ext

images

includes

pub

 

Just found this out, while following the 'Facebook like/send buttons on products

 

updated Feb 2013 to include instruction on adding this contribution if you have STS or HTSEO installed.' Procedure.

 

Is my OSC installed correctly?

 

Thanks for reading. Andy

Link to comment
Share on other sites

Your catalog folder is probably the same as your root folder in this case.

osCommerce 2.3.1 - QTPro 4.6.1 - Ultimate SEO URL's 5 Pro r205 - Discount Code 3.1 - Column listing with smart columns - Products Sort and some more

Link to comment
Share on other sites

Okay, I see where your coming form. But. this line. 'In Catalog > Product_info.php make the following changes' Product_info.php is not there.

Confused....

 

It seems to be sitting here

 

..................................\includes\languages\english\product_info.php

Link to comment
Share on other sites

You need to understand how osCommerce hangs together...

 

Each page consists of (usually) two separate files:

 

product_info.php <- this is the main filie

/includes/languages/english/product_info.php <- this contains (most of) the language stuff used in the main file

 

On some addons, reference is made to a "catalog" folder. If you have no catalog folder, for example:

 

1. your oscommerce is installed at /shop/

2. your oscommerce is installed at /

3. your oscommerce is installed at /catalogue/

4. your oscommerce is installed at /shop/catalog/

 

then you simply exchange the word "catalog" for where-ever your shop is really installed.

 

1. catalog > shop

2. catalog > "" (nothing)

3. catalog > catalogue

4. catalog > shop/catalog

Link to comment
Share on other sites

Hi, Yes, I fully understand that now. but, 'your oscommerce is installed at / (this being the root, or catalog folder)' which means that 'Product_info.php' is not where it should be. and that's the confusing part.

 

In Catalog > Product_info.php make the following changes

 

 

1) To get the image name............

 

AFTER

$product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_check = tep_db_fetch_array($product_check_query);

ADD

$product_image_query = tep_db_query("select products_image from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_images = tep_db_fetch_array($product_image_query);

 

 

If you get my drift?

Link to comment
Share on other sites

Well, it's product_info.php, if somehow you're looking in a case-sensitive manner (are you on a Linux box?). If your shop is installed at /, there should be a /product_info.php file. If there isn't, it sounds like your installation is damaged in some way. Do you know how to list all the files on your entire site, to see if product_info.php got moved somewhere else? (Windows: dir /s, Linux: ls -laR) The one you spotted under languages/english/ should have only text string definitions.

Link to comment
Share on other sites

the site is on a Linux box. My system is a Windows 7/64. I think you are right in that something is damaged.

Do you know how to list all the files on your entire site
NO. I use FZ 3.5.3 as the FTP client.

There is no way of reinstalling without over writing all I have done?

Andy

Link to comment
Share on other sites

Hi Andy,

 

Sometimes when installing/setting up ftp client the path may be wrong so worthwhile going to your control panel in hosting account and checking if you are actually uploading to correct place as the files should be there somewhere,.

 

No need to overwrite or delete would think more just getting the correct path set up (and if wrong copying the files to correct place.)

 

public_html/

 

possibly

 

public_html/shop/

 

or

public_html/whatever/

 

 

Not sure if that helps

 

Regards

Joli

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...