Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

askulte

Archived
  • Posts

    17
  • Joined

  • Last visited

Profile Information

  • Real Name
    Andris Skulte
  • Location
    CT
  • Interests
    racing the Z28tt, engineering, snowboarding, wakeboarding
  • Website

askulte's Achievements

  1. Thanks! I guess I shold be checking the contribs more often :) I made the changes suggested, and I must have missed something. When I add a category description, the header tag contrib no longer shows anything on the titlebar of the site, nor does a category description appear in the catalog. I can see the descriptions in the mysql tables however, so it is getting added to the db. I think I'll remove the HTC contrib for now, and see if I can get the category description working on its own. This php stuff is pretty challenging to understand. In any case, thanks for the help.
  2. Jack, Thats wonderful! I guess any day now? If I can help in any way, please let me know. I'd love to get this part of my OSC shop finished and behind me. Thanks again for all the contributions. Andris
  3. I just found this thread after posting about the same issue at http://www.oscommerce.com/forums/index.php?sho...34entry628834. I'd be thrilled to have both work not fully! :) Can I modify the index.php so I can display the page headings from the HTC and still show category descriptions? I'm slowly picking up knowledge on how PHP and MySQL work together, but it's still pretty intimidating and foreign to me. I don't expect to be spoon fed, so what do I need to learn (other than finding a chance to read 1000's of pages of PHP/MySQL books from O'Reilly in the 2 hours of of disposable time every day? Gratefully yours, Andris
  4. I'm attempting to add this contrib on top of the Header Tags V2.4.7. HTC replaced the line in 8.2 "<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>" with "<td><h1><?php echo $category['category_head_title_tag']; ?></h1></td>" How do I add the following lines without breaking the header tags title? <td class="pageHeading"> <?php if ( (ALLOW_CATEGORY_DESCRIPTIONS == 'true') && (tep_not_null($category['categories_heading_title'])) ) { echo $category['categories_heading_title']; } else { echo HEADING_TITLE; } ?> </td> Another conflict is the header tags contrib adding 5 lines below "case 'PRODUCT_LIST_PRICE':" $category_query = tep_db_query("select c.category_head_title_tag from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); $category = tep_db_fetch_array($category_query); while the category description needs // Get the category name and description $category_query = tep_db_query("select cd.categories_name, cd.categories_heading_title, cd.categories_description, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'"); $category = tep_db_fetch_array($category_query); Instruction 8.5 also conflicts as it modifies "<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>" which was changed to "<td><h1><?php echo $category['category_head_title_tag']; ?></h1></td>" from the header tag contrib. Unfortunately, I'm not a php wizard, so I really don't understand the changes being made, and how to work around them. Is it possible to get both contribs to work together? Has someone already done this and could post their index.php files so we can capture the differences? I know I'm not supposed to cross-post, but can I put a link to this on the header tags controller contrib discussion at http://www.oscommerce.com/forums/index.php?showtopic=51815? To my non-coder eye, it seems like the conflicts happen where the contribs set the page titles. Can I modify it so I can display the page headings from the HTC and still show category descriptions? Thanks for any help! Andris
×
×
  • Create New...