Jack_mcs, on 24 October 2011 - 10:01 PM, said:
When two contributions share the same code you have to eidt the code and merge the changes. This is true for any contribution. Instructions can't be given for how to do that since there are too many possibilities. Most people use a compare program, like WinMerege, to compare and merge the two pieces of code.
Hi Jack, I think I am dealing with the same situation. i was using Winmerge to do the install and for the instructions for 7) In admin/categories.php I ran into the Header Tags issue.
For a 2.3.1 shop....
Here's my existing categories.php code:
$dup_products_id = tep_db_insert_id();
/*** Begin Header Tags SEO ***/
$description_query = tep_db_query("select language_id, products_name, products_description, products_head_title_tag, products_head_desc_tag, products_head_keywords_tag, products_url from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_id . "'");
while ($description = tep_db_fetch_array($description_query)) {
tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " (products_id, language_id, products_name, products_description, products_head_title_tag, products_head_desc_tag, products_head_keywords_tag, products_url, products_viewed) values ('" . (int)$dup_products_id . "', '" . (int)$description['language_id'] . "', '" . tep_db_input($description['products_name']) . "', '" . tep_db_input($description['products_description']) . "', '" . tep_db_input($description['products_head_title_tag']) . "', '" . tep_db_input($description['products_head_desc_tag']) . "', '" . tep_db_input($description['products_head_keywords_tag']) . "', '" . tep_db_input($description['products_url']) . "', '0')");
}
/*** End Header Tags SEO ***/
and here's the part that it appears 'add more fields' calls for
$dup_products_id = tep_db_insert_id();
$description_query = tep_db_query("select * from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_id . "'");
while ($description = tep_db_fetch_array($description_query)) {
tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " (products_id, language_id, products_name, products_description, products_url, products_viewed " . $prodcutsDescStr . ") values ('" . (int)$dup_products_id . "', '" . (int)$description['language_id'] . "', '" . tep_db_input($description['products_name']) . "', '" . tep_db_input($description['products_description']) . "', '" . tep_db_input($description['products_url']) . "', '0'" . $prodcutsDescValues . ")");
}
/**** End Add More Fields ****/
I am guessing we need to leave the Header Tags code intact or it won't work?
Also, for the new code it looks like a typo for products vs prodcuts.
Thanks
I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.