Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TracyS

Pioneers
  • Posts

    1,222
  • Joined

  • Last visited

About TracyS

  • Birthday 09/15/1971

Profile Information

  • Real Name
    Tracy
  • Gender
    Female
  • Location
    U.S.

TracyS's Achievements

  1. Woohoo - found a fix :-) I had moved my review and add to cart buttons to be in a certain div for design purposes, and they were only functioning for the slaves with where I put them. So - underneath the javascript for piGal is where the description is that goes at the top of the page. I added code under that description to check and see if a product was a master or not and only display the review and buy now buttons for those that were not masters (slaves won't show as a product without being in the slave table so this seems to be working so far) <?php echo stripslashes($product_info['products_description']); ?> <?php if (($product_info['products_master'] == 0 ) && ($product_info['products_master_status'] != 0)) { ?> <br> <?php } else { ?> <span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span> <?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?> <?php } ?>
  2. I'm sure I'm probably missing something very simple - however, after installing the Master Products v2.3 on an osC v2.3.4 site I cannot find how to have a button to add a product to the shopping cart when the product is neither a master or a slave but just a product. Am I missing something? It does exist on index.php with the product listing for the specified category. The slave products also have their add to cart buttons on product_info.php. But products that are not masters or slaves on product_info.php are missing the button to add to cart currently. You can see here on the test site: tcdataweb DOT com/KKTestSite The kits are just products - not masters or slaves. If you select a kit the resulting product_info.php page has no way to buy it. I do not want the masters to be purchaseable, they are just information holders basically to give the info on the product and then the slaves are the various product sizes. But some products do not need masters and do not need to be slaves, I still need to be able to add those to the cart. I see others have had this issue, so maybe it isn't that I've done something wrong on install - LOL! Any thoughts are greatly appreciated :-)
  3. THANK YOU!!! Beautiful!! :-) ~ Tracy
  4. Hi guys - not sure what thread to post this in, but since it's along the same lines as my other discussion here I figured I'd add it here as well. I have got quite a bit accomplished on changing the look/feel of a stock osC site and adding modules and such, but I am not finding two bits of coding info that would really help me. 1. In header.php I have a slideshow that I only want to show on index.php - no other pages need to have this. How do I tell it to only show on index.php? Currently I borrowed this bit of code - but I have found the slideshow still shows up on product pages in product_info.php - anyone have the right code to only show if the current page is index.php? <?php if ($category_depth != 'nested' && $category_depth != 'products') { require(DIR_WS_INCLUDES . 'slideshow.php'); ?> 2. Underneath of the slideshow I have created links - 3 of these links go to products on product_info.php. I have tried modifying code from product_listing.php <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '"> To something like <a href="<?php ' . tep_href_link(FILENAME_PRODUCT_INFO, ('cPath=26' . '&' . 'products_id=42') . ' ?>"> But I get the following error: Parse error: syntax error, unexpected 'cPath' (T_STRING) in ....catalog/includes/header.php on line 80 I have tried putting a dollar sign in front of cPath and products_id and I get this error: Parse error: syntax error, unexpected '$cPath' (T_VARIABLE) in .....catalog/includes/header.php on line 80 Does anyone know what I am doing wrong here? I haven't had to create a link this way in over 4 years and then it was in STS which was different as well. PS - I have also tried using <a href="<?php ' . tep_href_link(FILENAME_CONTACT_US) . '?>"> for a contact us link on the index page outside of the information box, and it doesn't load anything - the source code shows <a href=" "> ? If anybody has answers to either of these two issues it would be greatly appreciated :-)
  5. Got it by tweaking another module - see post here: http://www.oscommerce.com/forums/topic/395130-open-discussion-on-better-navigation-and-categories/#entry1703912
  6. I am setting up an osC 2.3.4 shop for a client and they need a report that shows sales revenue, sales tax and shipping separately. I am not finding a lot in the way of reports for v2.3.4 - does anyone know of a module that will accomplish this? I have found a list of modules that work with 2.3.3.4, but can't seem to find a similar thread for 2.3.4.
  7. I can have it as $output .= ' <li class="sf-menu22">' . PHP_EOL; or $output .= ' <li class="sf-menu22 sf-vertical">' . PHP_EOL; and it doesn't make any difference :-( Hmmm.
  8. Hmm - I'm thinking I should be able to get away with something like this: if( $category['parent_id'] == 0 && $category['categories_id'] == 22 ) { $output .= ' <li class="sf-menu22 sf-vertical ui-state-default ui-corner-all" onmouseover="$(\'a#categories\').removeClass(\'ui-state-default\').addClass(\'ui-state-hover ui-state-focus\');" onmouseout="$(\'a#categories\').addClass(\'ui-state-default\').removeClass(\'ui-state-hover ui-state-focus\');">' . PHP_EOL; } elseif ( $category['parent_id'] == 0 ) { $output .= ' <li class="sf-menu sf-vertical ui-state-default ui-corner-all" onmouseover="$(\'a#categories\').removeClass(\'ui-state-default\').addClass(\'ui-state-hover ui-state-focus\');" onmouseout="$(\'a#categories\').addClass(\'ui-state-default\').removeClass(\'ui-state-hover ui-state-focus\');">' . PHP_EOL; } else { $output .= ' <li class="subcat">' . PHP_EOL; } I then copied all of the sf-menu class and renamed it sf-menu22 and set a new background color. But I'm not sure I'm writing it correctly as it doesn't appear to be doing anything. Is this due to my rustiness in writing php or is it due to the JQuery UI overrides?
  9. Ewww. :x Well - I'll do a little more searching to see if there is a way to do this with the base category module that comes with osC and go from there. That might be easier? Maybe? LOL!
  10. Oops - I just found my original reply to this did post. My browser had a glitch and I didn't see my reply -sorry.
  11. Hi Joli, I am asking here because I am using the superfish contribution for the category menu. I believe this can be set in the stylesheet somehow? I need a different background color for each unique category id - instead of a different image. Here is a graphic example: http://tcdataweb.com/KKTestSite/images/superfish_example.jpg
  12. Thank you Jim- but this would only change the sub-categories wouldn't it? I need a different color for each <li> based on the category id in the superfish menu box :-)
  13. Well - I'm trying but not getting very far. The instructions listed at the above linked forum post need to be modified slightly. Here is what I have done - but it is not yet working :-( application_top.php - I added the code to find the category number (lines 5 & 8 below) if (tep_not_null($cPath)) { $cPath_array = tep_parse_category_path($cPath); $cPath = implode('_', $cPath_array); $current_category_id = $cPath_array[(sizeof($cPath_array)-1)]; $superfish_number = $current_category_id; } else { $current_category_id = 0; $superfish_number = ''; } template_top.php - 5th line down in below code I added a php call to the category number <?php // Start superfish categories box ?> <script type="text/javascript" src="ext/jquery/superfish/js/jquery.hoverIntent.minified.js"></script> <script type="text/javascript" src="ext/jquery/superfish/js/superfish.js"></script> <script type="text/javascript" src="ext/jquery/superfish/js/supersubs.js"></script> <link rel="stylesheet" media="screen" href="ext/jquery/superfish/css/superfish<?php echo $superfish_number; ?>.css"> <link rel="stylesheet" media="screen" href="ext/jquery/superfish/css/superfish-vertical.css"> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('ul.sf-menu').superfish({ animation: {height:'show'}, // slide-down effect without fade-in delay: 1200 // 1.2 second delay on mouseout }); }); </script> <?php // End superfish categories box ?> I then created two stylesheets named superfish22.css and superfish23.css I am attempting to change the background color of the main level - so in superfish_navbar.css I have commented out every line that sets a background code and in superfish.css, superfish22.css and superfish23.css I have uncommented the below line and set different colors: .sf-menu li { background: #BDD2FF; However, after uploading all of the above, I have found that it changes the entire menu when I load category 22 or category 23 rather than setting the background color for that <li> specific to each category regardless of what page I am on. I am half way there - LOL! Any ideas?
  14. I have the contribution installed (v2.3 Superfish box 1.1) on a osCommerce 2.3.4 site and everything is working as it should (YAY!) But - of course I must be difficult - LOL! I need it to do something that it doesn't do "out of the box". Does anyone know a smoother way to edit the module to achieve a unique background color for each category than the method listed here: http://www.oscmax.com/forums/oscmax-v1-7-discussion/3667-different-background-color-each-category.html My client wants each category to have it's own background color and it seems osC only allows you to add an image to a category - but not to set a background color for the category. I'd rather not create 6 different style sheets to achieve this if I don't have to. I'm open to suggestions :-)
  15. Ahhh! Yes - Firebug, forgot about that - thank you! I knew it must be a style sheet setting somewhere! Thank you very much!
×
×
  • Create New...