Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TracyS

Pioneers
  • Posts

    1,222
  • Joined

  • Last visited

Everything posted by TracyS

  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!
  16. Ok - I bought the e-book and am doing what should be a simple change. But for some reason the body area of my page is not falling below the div's on the header area. You can visibly see it here: tcdataweb.com/KKTestSite/ There is no change in catalog/includes/template_top.php The catalog/includes/header.php file now looks like this: Released under the GNU General Public License */ if ($messageStack->size('header') > 0) { echo '<div class="grid_24">' . $messageStack->output('header') . '</div>'; } ?> <div id="header" class="grid_24"> <div class="grid_6 alpha"><div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></div></div> <div class="grid_12"><div id="slideshow"><?php require(DIR_WS_INCLUDES . 'slideshow.php'); ?></div></div> <div class="grid_6 omega"><div id="headerShortcuts"> <?php echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link(FILENAME_SHOPPING_CART)) . tep_draw_button(HEADER_TITLE_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'person', tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); if (tep_session_is_registered('customer_id')) { echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL')); } ?> </div><script type="text/javascript"> $("#headerShortcuts").buttonset(); </script></div> <div class="grid_24 ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading"><?php echo ' ' . $breadcrumb->trail(' » '); ?></div> </div> </div> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> </tr> </table> <?php } ?> Am I missing something totally obvious here? Or is 2.3.4 different enough from 2.3.3 that the eBook isn't quite up to date enough? This appears to be simple enough instructions but apparently I've messed it up somehow - LOL Any input is appreciated :-)
  17. Thank you everyone for your help. I will be reviewing your suggestions probably over the weekend and let you know what I come up with for a solution :-)
  18. The whole point with osCommerce has always been that it is free to use, the modules are free and open source, etc... I cannot see paying almost $200 for a template solution that, from the demo I have seen which has no instructions for use to truly know how to demo it, doesn't appear to be as good as STS was where I could simply design my template as usual and then include tags for where I wanted different elements to appear on the page. But regardless, I have looked through the documentation that comes with osC v2.3.4 and I see nothing on how to use the themes - nor can I find the catalog/includes/column_left.php or catalog/includes/column_right.php files that are mentioned under Template Layout and Header Tags in the documentation file. Do we have any walk-throughs / instructions anywhere on how to use themes or how to create templates for osC v2.3.4 ? Sorry - just very frustrating and depressing at the same time to see such a wonderful module become extinct and the only Open Source option in its place doesn't come with decent documentation (at least that I have found - maybe I've missed it). I figured by now they would have simply included STS as a basic part of osCommerce - :(
  19. That is a terrible shame! This was a wonderful addon - I am very sorry to hear it is no longer updated or supported. Is there any other addon that works similarly to make template design a much simpler process?
  20. What is the newest version it will work on? Bill - are you upgrading STS to work on V2.3.X ?
  21. Hi Bill, It's been a few years since I've setup an osCommerce site - seems we are up to v2.3.4 now in osC! What version of STS do I need to install for osCommerce 2.3.4? Trying to search the Addons site isn't proving very beneficial at this point - LOL! Thanks!
  22. Thank you J.J. I might have to try that out a little later - I got tiny mce installed and working this morning which is enough to show the client. Do you happen to know the difference between tiny mce and ckeditor ?
  23. Thank you Joli - Yes - I have both links located just after <html dir="ltr" lang="en"> and they both work when I click on them. Yet, I see no editor in my new product creation page. <!DOCTYPE html> <html dir="ltr" lang="en"> <script type="text/javascript" src="http://tcdataweb.com/KKTestSite/backend/ext/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="http://tcdataweb.com/KKTestSite/backend/ext/ckeditor/adapters/jquery.js"></script> <script type="text/javascript"> $(function() { var $editors = $('textarea'); if ($editors.length) { $editors.each(function() { var editorID = $(this).attr("id"); var instance = CKEDITOR.instances[editorID]; if (instance) { CKEDITOR.remove(instance); } CKEDITOR.replace(editorID); }); } }); </script> <head>
  24. I have downloaded ckeditor plus image upload. At this point I am attempting to just get the ckeditor installed and functioning and have not yet tried to setup the image upload. I have followed the instructions. I went to the website listed and downloaded the latest version of the full ckeditor (4.4.3 full). I have uploaded the ckeditor file into my stores admin/ext folder. However, when setting up the store it recommended changing the name of the admin folder - which I did do. Will that mess anything up? I have followed the instructions for adding the code into template_top and changing the code in html_output. I do have the ability (at least visually) to turn the editor on or off in the configuration>My store area However; I do not see any difference when clicking to "add product". I have tried refreshing the page. I have tried turning the editor off and then back on again. I have tried removing the files from the server and re-uploading them. I am at a loss. What is the trick to getting the editor to work on osCommerce 2.3.4? Do I have to use an older version of osCommerce? Is there another module offering something very similar to ckeditor that does work on 2.3.4 ? This looks like it should be a very simple, straight forward install -yet for the life of me I see no difference in the text fields on product creation whether I have it turned on or off :blush:
  25. PS - It used to work just fine and I can't find any changes having been made between the last time it worked correctly and now that would have any affect on the contact_us.php page.
×
×
  • Create New...