Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Last weekend, I successfully installed the Header Tag Contribution.

 

Today, I resumed adding products to the store.

 

In the admin section, in the catalog area where you add products/categories.... as you add products .... their title isn't being listed anymore. Before I added the contribution, I had a place to type in the product's name, now I don't.

 

And in the store that the customer sees, when they are seeing the product listing, the names of the products are not showing in the Products column. EVERYTHING else is fine. It's just the Product name isn't showing because there is no longer any place in Admin to type in the product's name.

 

Strange thing is, there is now an extra product's description field at the top of the page, under product manufacturer drop down box and date available.

 

All products entered prior to loading the contribution are just fine as far as I can tell. It's just new products I'm adding are affected.

 

Any ideas?

Posted

I really need help with this guys - I am at a standstill where it comes to uploading more products until I know what is wrong and how to fix this.

Posted

It sounds like there was a mistake made when installing the categories.php changes. Try replacing yours with the one in the contribution to make sure that is the problem. If it is, then you will need to but yours back and find the part that is wrong.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Not sure what you mean by "replacing the one in the contribution".... I added/replaced all codes that the instructions in the contribution said to. I went extra slow as to not mess up anything. Double checked my work any everything. I have already gone back and checked all that again.

 

And if something was wrong with the categories.php AFTER installing the contribution, how come only NEW products being added now are affected and not those added PRIOR to installing the contribution?

Posted

Included with the contribution is a set of files that already have the code installed. They won't work for all shops if there have been other code changes made to a particualr file but they can be used to find problems like this. When you install the changes into the categories.php file, it is easy to put the change in the wrong area. So, while your change looks good, it is really not and will cause problems such as this. You need a way to isolate the problem down to a file, which is what I suggested.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Well, I re-did the catalog/includes/boxes/categories.php file and I am not seeing a change in my problem. Below is that file, perhaps you can see something I can't. This contribution is the ONLY one I've done.

 

Released under the GNU General Public License

*/

 

function tep_show_category($counter) {

global $tree, $categories_string, $cPath_array;

 

for ($i=0; $i<$tree[$counter]['level']; $i++) {

$categories_string .= "  ";

}

 

$categories_string .= '<a href="';

 

if ($tree[$counter]['parent'] == 0) {

$cPath_new = 'cPath=' . $counter;

} else {

$cPath_new = 'cPath=' . $tree[$counter]['path'];

}

 

$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';

 

if (isset($cPath_array) && in_array($counter, $cPath_array)) {

$categories_string .= '<b>';

}

 

// display category name

$categories_string .= $tree[$counter]['name'];

 

if (isset($cPath_array) && in_array($counter, $cPath_array)) {

$categories_string .= '</b>';

}

 

if (tep_has_category_subcategories($counter)) {

$categories_string .= '';

}

 

$categories_string .= '</a>';

 

if (SHOW_COUNTS == 'true') {

$products_in_category = tep_count_products_in_category($counter);

if ($products_in_category > 0) {

$categories_string .= ' (' . $products_in_category . ')';

}

}

 

$categories_string .= '<br>';

 

if ($tree[$counter]['next_id'] != false) {

tep_show_category($tree[$counter]['next_id']);

}

}

?>

<!-- categories //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);

 

new infoBoxHeading($info_box_contents, true, false);

 

$categories_string = '';

$tree = array();

 

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");

while ($categories = tep_db_fetch_array($categories_query)) {

$tree[$categories['categories_id']] = array('name' => $categories['categories_name'],

'parent' => $categories['parent_id'],

'level' => 0,

'path' => $categories['categories_id'],

'next_id' => false);

 

if (isset($parent_id)) {

$tree[$parent_id]['next_id'] = $categories['categories_id'];

}

 

$parent_id = $categories['categories_id'];

 

if (!isset($first_element)) {

$first_element = $categories['categories_id'];

}

}

 

//------------------------

if (tep_not_null($cPath)) {

$new_path = '';

reset($cPath_array);

while (list($key, $value) = each($cPath_array)) {

unset($parent_id);

unset($first_id);

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");

if (tep_db_num_rows($categories_query)) {

$new_path .= $value;

while ($row = tep_db_fetch_array($categories_query)) {

$tree[$row['categories_id']] = array('name' => $row['categories_name'],

'parent' => $row['parent_id'],

'level' => $key+1,

'path' => $new_path . '_' . $row['categories_id'],

'next_id' => false);

 

if (isset($parent_id)) {

$tree[$parent_id]['next_id'] = $row['categories_id'];

}

 

$parent_id = $row['categories_id'];

 

if (!isset($first_id)) {

$first_id = $row['categories_id'];

}

 

$last_id = $row['categories_id'];

}

$tree[$last_id]['next_id'] = $tree[$value]['next_id'];

$tree[$value]['next_id'] = $first_id;

$new_path .= '_';

} else {

break;

}

}

}

tep_show_category($first_element);

 

$info_box_contents = array();

$info_box_contents[] = array('text' => $categories_string);

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- categories_eof //-->

Posted

There is the page of new products I've added after installing the contribution. See there is no product name in the product column? When you click on the product, to it's individual page, there's no Product Name there either. Namely because there's no Product Name field when setting up a product to begin with.

 

http://www.moonlightdelights.com/catalog/i...2b82cde669d9439

Posted

You have your categories files confused. Header Tags changes the admin/categories.php file. It doesn't touch the includes/boxes/categories.php file, which is what you posted.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Jack,

 

If I knew where you were, I would kiss ya on the cheek!

 

Yes, I did misunderstand which categories.php you were talking about.

 

So, I went into the contribution files, found the ones you were talking about that came with the codes already done and just swapped it out with mine (admin/categories.php) and ... VIOLA!

 

I now have a "products name" field and the extra "products description" field is gone.

 

Life is good!

 

wait!!!!!!!!!!!!!!!! Now I have over 200 products to load!

 

D'OH!

 

LOL

 

Thanks for your patience, Jack - I truely appreciate it!

Posted

Alas! I'm married...and well, you know ;-) *chuckles*

 

I'm glad I got it going also. I was doing smooth sailing until that hiccup....

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...