Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multiple subcategory


cczernia

Recommended Posts

I was wondering if anyone knew an easy way to copy a subcategory so that it appears under two categories.

 

Example:

 

I currently have: clothing hangers/apparel sizing

I want to create: clothing display/apparel sizing

 

The only way I know to do this is to create the subcategory under both categories and then link each individual item.

Shade and Sweet Water

Chris Czerniak

Link to comment
Share on other sites

This contribution seems to be what you are asking for.

 

http://www.oscommerce.com/community/contributions,2215

 

Thanks a ton. I tried uploading the files and got this error:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/triodisp/public_html/ecommerce/os/catalog/admin/includes/languages/english/categories.php on line 101

 

I checked the permissions and they seemed ok. Any suggestions. Thanks again.

Shade and Sweet Water

Chris Czerniak

Link to comment
Share on other sites

Looks like the "edits" you did on /home/triodisp/public_html/ecommerce/os/catalog/admin/includes/languages/english/categories.php did not work to well.

 

Post a few line before and after line 101.

 

Also, do not use the osCommerce file manager editor to edit files...it has a bug that can cause parse errors. It strips backslashes from words like What\'s (escaping single quote). Use a local editor on your PC then ftp to the site.

 

HTH

Tom

Link to comment
Share on other sites

Looks like the "edits" you did on /home/triodisp/public_html/ecommerce/os/catalog/admin/includes/languages/english/categories.php did not work to well.

 

Post a few line before and after line 101.

 

Also, do not use the osCommerce file manager editor to edit files...it has a bug that can cause parse errors. It strips backslashes from words like What\'s (escaping single quote). Use a local editor on your PC then ftp to the site.

 

Ok, I didn't use osC for editing. I tried just uploading the files, I uploaded them with changes from "install.txt" and I tried adding a line before and after line 101 but I keep getting the same error.

 

You said something about my edits on ..english/categories.php but I'm not sure which edits you are talking about.

 

Thanks again.

Shade and Sweet Water

Chris Czerniak

Link to comment
Share on other sites

Your original error message

********************

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/triodisp/public_html/ecommerce/os/catalog/admin/includes/languages/english/categories.php on line 101

********************

 

Ok, please post a few lines before and after line 101 INCLUDING line 101 for someone to look at and help.

 

HTH

Tom

Link to comment
Share on other sites

Ok, please post a few lines before and after line 101 INCLUDING line 101 for someone to look at and help.

 

Ah, got it. Here is line 101

 

define('TEXT_COPY', 'Copy <b>%s</b> to:');

 

It appears just before the comment on the bottom. It is worth noting that I brought the code up in Dreamweaver MX and most of the code that appeared between the parenthesis would the in all red but on line 101 the text was black so I can see that even Dreamweaver is detecting a syntax error I'm just not sure how to fix it. Thanks again.

 

define('EMPTY_CATEGORY', 'Empty Category');

define('TEXT_HOW_TO_COPY', 'Copy Method:');
define('TEXT_COPY_AS_LINK', 'Link product');
define('TEXT_COPY_AS_DUPLICATE', 'Duplicate product');

define('ERROR_CANNOT_LINK_TO_SAME_CATEGORY', 'Error: Can not link products in the same category.');
define('ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE', 'Error: Catalog images directory is not writeable: ' . DIR_FS_CATALOG_IMAGES);
define('ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST', 'Error: Catalog images directory does not exist: ' . DIR_FS_CATALOG_IMAGES);
define('ERROR_CANNOT_MOVE_CATEGORY_TO_PARENT', 'Error: Category cannot be moved into child category.');

// DDB - 040613 - Copy Category - BOF
define('TEXT_INFO_HEADING_COPY_CATEGORY', 'Copy category');	
define('TEXT_COPY_CATEGORIES_INTRO', 'Please select which category you wish <b>%s</b> to copy to'');
define('TEXT_COPY', 'Copy <b>%s</b> to:'); 



// DDB - 040613 - Copy Category - EOF
?>

Shade and Sweet Water

Chris Czerniak

Link to comment
Share on other sites

Change

 

define('TEXT_COPY_CATEGORIES_INTRO', 'Please select which category you wish <b>%s</b> to copy to'');

 

to

 

define('TEXT_COPY_CATEGORIES_INTRO', 'Please select which category you wish <b>%s</b> to copy to');

 

HTH

Tom

Link to comment
Share on other sites

Thanks. It worked perfectly. Just out of curiosity do you know how to update the "contributions" so it no longer has the error.

Shade and Sweet Water

Chris Czerniak

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...