Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

textbook

Pioneers
  • Posts

    132
  • Joined

  • Last visited

Profile Information

  • Real Name
    Alex

textbook's Achievements

  1. Please ignore my post above! I went back to the install files and fixed a mistake I made in includes/application_top.php. Thanks
  2. Hey, I was wondering if I could get help with an issue. Whenever a customer logs in, it goes to an error page with the following: Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in /home/ajadd2/public_html/includes/functions/sessions.php on line 179 Warning: Cannot modify header information - headers already sent by (output started at /home/ajadd2/public_html/includes/application_top.php:579) in /home/ajadd2/public_html/includes/functions/general.php on line 51 When I run the test in admin, the only error I have is: The manufacturers_htc_title_tag field cannot be found in the manufacturers_info table. But I installed Header Tags SEO on two websites and the first website doesnt have this problem even though it has that same admin test error. If a customer goes back to the homepage by reentering the url, they are logged in perfectly fine. If you could help me, I would really appreciate it! Thanks!
  3. Thanks so much for the help! It works great!
  4. Thanks for the help, I figured it out. I just ended up using the exact code provided in the install file and then edited my css files to fix the spacing issue. I installed everything correctly, but I just have one last question. I'm trying to remove the google+ social bookmark, but whenever I disable it, it still shows up. I even deleted everything from its url description, and deleted the image files from images/socialbookmark. It doesn't show up in admin->Header Tags SEO->Social anymore, but it still shows up on my website. Any help would be appreciated. Thanks!
  5. Hi, sorry for asking again, I'm just completely confused on one thing. I've finished all catalog instructions, except for #8. FIND: <div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></div> REPLACE with: <?php /*** Begin Header Tags SEO ***/ ?> <div><div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a></div>'; if (HEADER_TAGS_DISPLAY_PAGE_TOP_TITLE == 'true') { ?> <div style="position:absolute; top:0; left:40%; color:#aaa; font-size:10px; text-align:center"><?php echo $header_tags_array['title']; ?></div> <?php } ?> </div> <?php /*** End Header Tags SEO ***/ ?> My file does not have the code that has to be replaced, but rather this: <a class="logo" href="<?php echo tep_href_link(FILENAME_DEFAULT);?>"><?php echo tep_image(DIR_WS_IMAGES.'store_logo.png', STORE_NAME, '', '', '')?></a> Everytime I just replace the code, it adds a lot of empty space between my menu header and the start of the rest of the page. The store logo is also pushed up. I've tried many times but I don't know enough to edit my code with the code required. If anyone is able to help me, I would really appreciate it. Thanks
  6. Sorry, please ignore my reply before this. I didnt see the reply before I posted it. Thank you very much for the help!
  7. This is my index.php: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $categories_products = tep_db_fetch_array($categories_products_query); if ($categories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> <?php if ($category_depth == 'nested') { $current_page = FILENAME_CATEGORIES_NESTED; require(DIR_WS_INCLUDES . 'template_top.php'); include(FILENAME_CATEGORIES_NESTED); ?> <?php } elseif ($category_depth == 'products' || (isset($HTTP_GET_VARS['manufacturers_id']) && !empty($HTTP_GET_VARS['manufacturers_id']))) { $current_page = FILENAME_CATEGORIES_LISTING; require(DIR_WS_INCLUDES . 'template_top.php'); include(FILENAME_CATEGORIES_LISTING); ?> <?php } else { // default page $current_page = FILENAME_DEFAULT; require(DIR_WS_INCLUDES . 'template_top.php'); ?> <?php if ( (NEW_PRODUCTS_MODULE_DISPLAY_FIRST_PAGE == 'true') || (NEW_PRODUCTS_MODULE_DISPLAY_FIRST_PAGE == 'true')) { ?> <?php ?> <?php } ?> <div class="none"> <?php echo tep_draw_title_top();?> <h1><?php echo HEADING_TITLE; ?></h1> <?php echo tep_draw_title_bottom();?><br /> </div> <?php if (NEW_PRODUCTS_MODULE_DISPLAY_FIRST_PAGE == 'true') { echo tep_draw_content_top(); include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); echo tep_draw_content_bottom(); } if (FEATURED_MODUL_DISPLAY_FIRST_PAGE == 'true') { echo tep_draw_content_top(); include(DIR_WS_MODULES . FILENAME_FEATURED); echo tep_draw_content_bottom(); } include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> <?php if ( (NEW_PRODUCTS_MODULE_DISPLAY_FIRST_PAGE == 'true') || (NEW_PRODUCTS_MODULE_DISPLAY_FIRST_PAGE == 'true')) { ?> <?php ?> <?php } ?> <?php } require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  8. This is my current index.php: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $categories_products = tep_db_fetch_array($categories_products_query); if ($categories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> <?php if ($category_depth == 'nested') { $current_page = FILENAME_CATEGORIES_NESTED; require(DIR_WS_INCLUDES . 'template_top.php'); include(FILENAME_CATEGORIES_NESTED); ?> <?php } elseif ($category_depth == 'products' || (isset($HTTP_GET_VARS['manufacturers_id']) && !empty($HTTP_GET_VARS['manufacturers_id']))) { $current_page = FILENAME_CATEGORIES_LISTING; require(DIR_WS_INCLUDES . 'template_top.php'); include(FILENAME_CATEGORIES_LISTING); ?> <?php } else { // default page $current_page = FILENAME_DEFAULT; require(DIR_WS_INCLUDES . 'template_top.php'); ?> <?php if ( (NEW_PRODUCTS_MODULE_DISPLAY_FIRST_PAGE == 'true') || (NEW_PRODUCTS_MODULE_DISPLAY_FIRST_PAGE == 'true')) { ?> <?php ?> <?php } ?> <div class="none"> <?php echo tep_draw_title_top();?> <h1><?php echo HEADING_TITLE; ?></h1> <?php echo tep_draw_title_bottom();?><br /> </div> <?php if (NEW_PRODUCTS_MODULE_DISPLAY_FIRST_PAGE == 'true') { echo tep_draw_content_top(); include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); echo tep_draw_content_bottom(); } if (FEATURED_MODUL_DISPLAY_FIRST_PAGE == 'true') { echo tep_draw_content_top(); include(DIR_WS_MODULES . FILENAME_FEATURED); echo tep_draw_content_bottom(); } include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> <?php if ( (NEW_PRODUCTS_MODULE_DISPLAY_FIRST_PAGE == 'true') || (NEW_PRODUCTS_MODULE_DISPLAY_FIRST_PAGE == 'true')) { ?> <?php ?> <?php } ?> <?php } require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  9. Hi, I am having a problem with Step 2 in Install_Catalog.txt ( I have Oscommerce 2.3.3): 2) In index.php FIND (Around line 38) if ($category_depth == 'nested') { $category_query = tep_db_query("select cd.categories_name, c.categories_image 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); ?> <h1><?php echo $category['categories_name']; ?></h1> REPLACE with if ($category_depth == 'nested') { /*** Begin Header Tags SEO ***/ $category_query = tep_db_query("select cd.categories_name, c.categories_image, IF(cd.categories_htc_title_tag_alt != '',cd.categories_htc_title_tag_alt,cd.categories_htc_title_tag) as categories_htc_title_tag, cd.categories_htc_description 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 . "'"); /*** end Header Tags SEO ***/ $category = tep_db_fetch_array($category_query); ?> <h1><?php echo $category['categories_htc_title_tag']; ?></h1> <?php /*** Begin Header Tags SEO ***/ if (tep_not_null($category['categories_htc_description'])) { echo '<h2 style="text-decoration:none;">' . $category['categories_htc_description'] . '</h2>'; } /*** End Header Tags SEO ***/ ?> My index.php does't have: if ($category_depth == 'nested') { $category_query = tep_db_query("select cd.categories_name, c.categories_image 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); ?> <h1><?php echo $category['categories_name']; ?></h1> Any help would be really appreciated!
  10. Hello, Has anyone found out a solution to get this to work for 2.3.3? I installed it and configured it exactly as described but my banner does not get displayed. The only that is displayed the banner title and english title. Any help would be much appreciated! Thanks!
  11. Hello everyone, I was wondering if anyone knows of a contribution that allows the customer to receive a dollar discount if they buy 2 or more items. I have been searching the contributions but I cant seem to find one that matches this. Thanks.
  12. Hi, I was wondering if anyone else is having this problem or knows how to fix it. When I go to "Customers Points" and delete points, I check the box next to "Queue customers points table?" and "Notify Customer". However, once I confirm that I want to delete points, it does not update the customers points table or send an email out even though it says it is successful at the top left of the screen when I am done. When I check the "Queue customers points table?" box when I am adding points to a customer's account, it works fine. Does anyone possibly know how to fix this? Thank you very much.
  13. Hey. Yes I will read the previous posts to see if anyone has this problem. Also, please disregard question #1 in my previous post. I fixed it. As for question #2, I understand now that its not a problem with this contribution. For some reason, it says for most of my products that ""This product was added to our catalog on Wednesday 31 December, 1969". If I can fix this to show the real date, then Im sure that everything should be fine. I've looked into "sitemapproducts.xml" and it shows "<lastmod>1969-12-31</lastmod>" for most products. Do you know of a way that I can fix this error? Thanks.
×
×
  • Create New...