Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

kewldude_3001

Archived
  • Posts

    365
  • Joined

  • Last visited

Everything posted by kewldude_3001

  1. i just installed featured products, and i didnt do these two steps because i didnt have the files at the specified place.... 15.1 Add the following lines to /catalog/includes/sts_template.html $featuredbox 15.2 Add the following lines to /catalog/includes/column_right.php or column_left.php require(DIR_WS_BOXES . 'featured.php'); // STS: ADD $sts_block_name = 'featuredbox'; require(STS_RESTART_CAPTURE); // STS: EOADD 15.3 Add the following lines to /catalog/includes/sts_display_output.php $template['featuredbox'] = strip_unwanted_tags($sts_block['featuredbox'], 'featuredbox'); and further down echo $sts_block['featured']; Im guessing thats why featured products isnt showing up on my template page???? (it is enabled in admin)
  2. <?php // optional Product List Filter if (PRODUCT_LIST_FILTER > 0) { if (isset($HTTP_GET_VARS['manufacturers_id'])) { $filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name"; } else { $filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name"; } $filterlist_query = tep_db_query($filterlist_sql); if (tep_db_num_rows($filterlist_query) > 1) { echo ' <td align="center" class="main">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . ' '; if (isset($HTTP_GET_VARS['manufacturers_id'])) { echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']); $options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)); } else { echo tep_draw_hidden_field('cPath', $cPath); $options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)); } echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']); while ($filterlist = tep_db_fetch_array($filterlist_query)) { $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']); } echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"'); echo '</form></td>' . "\n"; } } // Get the right image for the top-right $image = DIR_WS_IMAGES . 'table_background_list.gif'; 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']; } ?> I deleted this part and it took away the Show: and the Manufacturers drop down list, it doesnt affect anything else right, I got 1-4 done, what i have left is 5
  3. well i figured out i am supposed to edit the index.php file under catalog but can someone tell me who to make edit index.php so: 1) Remove "Show" and the Manufacturers box 2) Remove Let's See what we have here image 3) Basically delete that row 4) Change the column heading (Product Name+......) to the same style as the Categories Box 5) Also shorten the Product name column so everything fits. Thanks
  4. well i had it working where if you click on a category, it shows u the products inside and then you could go to that products page, but this (product displaying on its own page, instead of showing up in the $content tag on my index) started happening when i enabled the product_info.php.html for the STS template. I still have the question of what php file to edit so i can change the design of the column of the product listing, where it shows you the ProductName(able to sort), Price (able to sort), Buy Now.
  5. lol im still confused about the product_info, i have it enabled and everything so why is it showing by itself on a different page again??? and also what file would i edit if im trying to change the layout of what shows when you click on a category, for instance if you click on accounting, what page do i edit for the page that shows the items for that category?
  6. i have a product_info.php.html, i thought whatever was inside that product info would be shown on the $content on my index page???? i have product_info.php.html at the very top level (sts_templates/template_name/product_info.php.html) do i have to make a content folder under template name and then place the product info under that? Also, how can i make all the "header/top" parts on the right look like the one on the left??? So is it possible to make (remove products, qty) have the same header style as the categories?
  7. im trying to edit the product_info.php page, why does it look like this, instead of being part of the site and also not showing what the placeholders are supposed to show? http://newindex.kumarsbookstore.com/catalo...;products_id=37
  8. so you still need the featured products installed right?
  9. hey, can someone tell me how to make featured_products, look like this: http://newindex.kumarsbookstore.com/catalog/index.php
  10. EDIT: lol i got it all i did was add <div></div> to the code u gave me for the categories, now i just need to figure out how to align the text in the middle instead of the bottom and space the arrow over by like 1 or 2 :)
  11. lol it still didnt work, this thing is being stubborn!!!
  12. lol about the category font i have tried everything and it doesnt want to change, i even changed infoboxcontents tdcategory in the stylesheet sigh :( it just doesnt seem to want to work.
  13. nm about the category product count i found it and turned it off
  14. wow that worked for the arrow :), but the font thing didnt change even after i changed it in my index file, i did <div class="top11"> $categorybox<br> $manufacturerbox<br> $bestsellersbox</div> and in my categories infobox <div class="top11">$content</div> Also where in admin is the option to disable category product count
  15. i was wondering if anyone had a solution for my categories problem, if u go here it will show u what it should look like and below it, it shows what it actually does look like now newindex.kumarsbookstore.com
  16. im not sure if this is related, but when i was editing the sts_user_code.php file at the bottom of the page i saw a lot of code commented out that was for the footer, im not sure if that helps in any way but u might want to check it out
  17. im not too sure but i believe if it should be here /catalog/stylesheet.css and if place this link <link rel="stylesheet" type="text/css" href="stylesheet.css"> at the top of ur template file it should work
  18. well now im trying to fix the categories box, so how would i add the arrow in front of each category?? i got the ... btw categories fixed, i just need to get the spacing right and thats where a infobox for categories comes in???? Thanks
  19. lol fixed the shopping cart issue, still need help on the infoboxheading EDIT NM i figured it out :)
  20. Love STS, and i cannot thank you enough for the help you have given me!!!

  21. lol well your solution for the cart is great, but it just provides too much information for what im looking for and the contribution that u found does exactly what i need it to do and more (Total Price), i had it working and i tried to re-arrange the items to display the way i wanted and i screwed something up :(, im going to see if i can fix it and about the infoboxheading, it still doesnt work even after i added the extra things i had missing before
  22. EDIT: NM lol i figured it out, forgot about the else part got it :)
  23. well i knew about the rest, i have the style.css and i didnt think it mattered and i inserted it and it still looked the same :( well i was going to change it but thats way too much information for me anyways thats a great script by the way but all i really need is the item number and total, i cant have the header expanding on me :( THanks though!!!
  24. thanks for that contrib, it works only thing i would like to change is move Total Price: which i changed to Total to the next line instead :) THANKS AGAIN!!!!
×
×
  • Create New...