Guest Posted April 26, 2004 Posted April 26, 2004 Am am using cPath=0 to present all main categories on the front page of my shopping system, but I can't find out how to give it a picture (as each category & sub-category has). Admin section is not making this obvious at all. Any small help appreciated. Jim. :huh:
Chris Dunning Posted April 26, 2004 Posted April 26, 2004 Say man, you might want to allow more than an hour before you start begging for replies. Check this out: Howie Day Direct That's a temporary URL while I'm finishing it up, but it will be there for a few more days at least. All I did to make that happen was set cPath=0 in application_top.php. Or...are you having trouble assigning images to categories at all? There should be a file box for you to upload an image when you add or edit a category within the admin tool. Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.
Guest Posted April 26, 2004 Posted April 26, 2004 Yeah, well I'm dead impatient me, cos I have to have this up & running by the end of the week. :o I've had no trouble assigning images for categories, it's just that cPath=0 is not a category, and there's a space for a pic top right, as there is when entering all categories & sub-categories. Your tip re "set cPath=0 in application_top.php" will no coubt come in handy as well. J.
Guest Posted April 28, 2004 Posted April 28, 2004 I still don't have a solution to my problem here. It is that I have set my shopping system to show all categories on the front page using "cPath=0". No problem there, but I want to keep the OSC default of having category pics top right of page and there is no pic for "all categories" and I can't find a way to get one in there. Otherwise, is it possible to set up just that one page with no pic (& no empty space)? :unsure:
Chris Dunning Posted April 28, 2004 Posted April 28, 2004 ah, I see what you're asking. Here's some code from my index.php. It starts around line 251 in mine, YMMV. $image = DIR_WS_IMAGES . 'hdshirtlogo.jpg'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); $image = tep_db_fetch_array($image); $image = $image['manufacturers_image']; } elseif ($current_category_id) { $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $image = tep_db_fetch_array($image); $image = $image['categories_image']; Notice I set a default image at the top. I think that osCommerce by default has this: $image='' as the first line of that code snippet up there. That sets the image to nothing. Have you gone into your admin and set "force images" to false? Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.
Guest Posted April 30, 2004 Posted April 30, 2004 Thanx "BlueNote". I seem to have a million things to do at the moment, so will check this as soon as I can. Jim.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.