Jump to content

designbysue

Members
  • Content count

    236
  • Joined

  • Last visited

Profile Information

  • Real Name
    Sue Young
  1. designbysue

    Sort Products By Dropdown

    I actually got it!! for anyone else who wants this you simply add the following code (to index.php) // Additional Products Sort echo '<td align="center" class="dynamicMain">' . tep_draw_form('sort', FILENAME_DEFAULT, 'get') . '<b>Sort by:</b> '; if (isset($HTTP_GET_VARS['manufacturers_id'])) { echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']); } else { echo tep_draw_hidden_field('cPath', $cPath); } $sort_list = array('1a' => 'Products Name A to Z', '1d' => 'Products Name Z to A', '5a' => 'Price Low to High', '5d' => 'Price High to Low'); foreach($sort_list as $id=>$text) { $sort_range[] = array('id' => $id, 'text' => $text); } echo tep_draw_pull_down_menu('sort', $sort_range, (isset($HTTP_GET_VARS['sort']) ? $HTTP_GET_VARS['sort'] : ''), 'onchange="this.form.submit()"'); echo tep_draw_hidden_field('filter_id', (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : '')); echo '</form></td>' . "\n"; // End Additional Products Sort after 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"; } and before } Be sure to follow the directions from the add on here link to be sure your name and price number are correct. (All I did was remove the best sellers from the drop down and used only this code on the index.php as it appears that all of the other code for the add on had to do with the info needed for the best sellers sort) Sue
  2. designbysue

    Sort Products By Dropdown Add on

    I actually got it!! for anyone else who wants this you simply add the following code (to index.php) // Additional Products Sort echo '<td align="center" class="dynamicMain">' . tep_draw_form('sort', FILENAME_DEFAULT, 'get') . '<b>Sort by:</b> '; if (isset($HTTP_GET_VARS['manufacturers_id'])) { echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']); } else { echo tep_draw_hidden_field('cPath', $cPath); } $sort_list = array('1a' => 'Products Name A to Z', '1d' => 'Products Name Z to A', '5a' => 'Price Low to High', '5d' => 'Price High to Low'); foreach($sort_list as $id=>$text) { $sort_range[] = array('id' => $id, 'text' => $text); } echo tep_draw_pull_down_menu('sort', $sort_range, (isset($HTTP_GET_VARS['sort']) ? $HTTP_GET_VARS['sort'] : ''), 'onchange="this.form.submit()"'); echo tep_draw_hidden_field('filter_id', (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : '')); echo '</form></td>' . "\n"; // End Additional Products Sort after 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"; } and before } Be sure to follow the directions from the add on here link to be sure your name and price number are correct. (All I did was remove the best sellers from the drop down and used only this code on the index.php as it appears that all of the other code for the add on had to do with the info needed for the best sellers sort) Sue
  3. I need to add a drop down for visitors to sort products from A - Z, Z - A and Price Lowest to Highest and Highest to Lowest. The add on here http://addons.oscommerce.com/info/4312/v,22 does this but also by bestseller. I have looked over the code to try to remove the bestseller option but can't figure it out. Can someone please help me remove the bestsellers from this add on? (the bestseller sort is tied to cron) Thanks Sue
  4. designbysue

    Sort Products By Dropdown

    I would like to use this but not with best sellers - only price sort high to low and low to high and product name, a - z and z- a. Can this be done and what changes to the install do I need to do. Here's hoping someone can help! Sue Design by Sue
  5. designbysue

    phplist and Simple Visitor Newsletter

    Thanks - the list IS stored in the database. I am looking at the contribution here http://addons.oscommerce.com/info/5794/v,22 and hoping I can adapt it to look at both tables, visitors and osc. Thanks for your response - it is confirming that I am going in a good direction. There is a contrib that integrates phplist but I'm thinking it will be cleaner to go this route. Sue
  6. I have installed and contribution Simple Visitor Newsletter 2.1. This seems to work correctly. Now I would like to install phplist and link it to my oscommerce site, but use the list created through the Simple Visitor Newsletter (were it combines the visitor and account holders lists) for the phplist database. Any input on how to accomplish this? Thanks Sue
  7. designbysue

    [Contribution] Advanced Cartbox

    Trying to install this and am getting an error message Fatal error: Class 'cartBox' not found in /services3/webpages/p/a/paintballwarehouseny.com/public/includes/boxes/shopping_cart.php on line 167 Can anyone tell me what I am missing? I have InfoBox Customizer which allows for customizing of the box through stylesheet. But I don't believe this is causing the problem because all that does is change the class for the styles. Would really appreciate any input - I have been going around for hours on this one. Thanks Sue
  8. designbysue

    free shipping

    Have installed Free Shipping w/ Minimum Amount and it is working just fine - except now the client actually wants to add a $4 handling fee to any "Free Shipping" order. Can someone suggestion a way to do this? And 2nd he also wants to offer the option of upgrading to Fed Ex home delivery for an additional $5. (only if the free shipping has kicked in) Can anyone help me with this? Always appreciate the help on this board - you folks are so responsive, I hope you can help on these requests!! Sue
  9. designbysue

    Super Contact us enhancement 1.0

    After poking vs 1.4 with a stick for a while and reading the posts in the forum I finally got this to work. I am posting my catalog>contact_us.php below. Please remember to enable Verify email addresses through DNS in your admin of the catalog. This code has the right column removed but you can add it by replacing the code <!-- removedrightcolumn //-->. <?php /* $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); // BOF Super Contact us enhancement $order_id = tep_db_prepare_input($HTTP_POST_VARS['order_id']); if ($order_id <> NULL){ $enquiry = 'From : ' . $name . "\n" . 'email : ' . $email_address . "\n" . 'Order ID: ' . $order_id . "\n\n" . tep_db_prepare_input($HTTP_POST_VARS['enquiry']); }else{ $enquiry = 'From : ' . $name . "\n" . 'email : ' . $email_address . "\n" . 'Order ID: No order number input' . "\n\n" . tep_db_prepare_input($HTTP_POST_VARS['enquiry']); } $emailsubject = tep_db_prepare_input($HTTP_POST_VARS['reason']) . ' ' . EMAIL_SUBJECT . $name; if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $emailsubject, $enquiry, $name, $email_address); if (CONTACT_US_LIST !=''){ $send_to_array=explode("," ,CONTACT_US_LIST); preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array); $send_to_email= eregi_replace (">", "", $send_email_array[0]); $send_to_email= eregi_replace ("<", "", $send_to_email); tep_mail(preg_replace('/\<[^*]*/', '', $send_to_array[$send_to]), $send_to_email, $emailsubject, $enquiry, $name, $email_address); }else{ //tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=send')); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=send')); } // EOF Super Contact us enhancement 1.41 tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('contact') > 0) { ?> <tr> <td><?php echo $messageStack->output('contact'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) { ?> <tr> <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <!-- BOF Super Contact us enhancement 1.41 //--> <?php } else { if (tep_session_is_registered('customer_id')) { $account_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); $account = tep_db_fetch_array($account_query); $name = $account['customers_firstname'] . ' ' . $account['customers_lastname']; $email = $account['customers_email_address']; } ?> <tr><td> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"><td><table><tr> <td class="main" valign="top" width=30%><b><?php echo nl2br(STORE_NAME_ADDRESS); ?></b><br><br> <?php echo (OPENING_HOURS); ?><br><br></td> <td class="main" valign="top" width="70%"><?php echo ENTRY_NAME; ?><br> <?php echo tep_draw_input_field('name'); ?><br /> <?php echo ENTRY_EMAIL; ?><br> <?php echo tep_draw_input_field('email'); ?><br /> <?php echo ENTRY_ORDER_ID; ?><br> <?php echo tep_draw_input_field('order_id'); ?><br /> <?php if (CONTACT_US_LIST !=''){ echo SEND_TO_TEXT . '<br>'; if(SEND_TO_TYPE=='radio'){ foreach(explode("," ,CONTACT_US_LIST) as $k => $v) { if($k==0){ $checked=true; }else{ $checked=false; } echo tep_draw_radio_field('send_to', "$k", $checked). " " .preg_replace('/\<[^*]*/', '', $v); } }else{ foreach(explode("," ,CONTACT_US_LIST) as $k => $v) { $send_to_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v)); } echo tep_draw_pull_down_menu('send_to', $send_to_array); } echo('<br>'); } ?> <?php echo ENTRY_REASON; ?><br> <select name="reason"> <?php echo '<option value="' . REASONS1 . '">' . REASONS1 . '</option>'; ?> <?php echo '<option value="' . REASONS2 . '">' . REASONS2 . '</option>'; ?> <?php echo '<option value="' . REASONS3 . '">' . REASONS3 . '</option>'; ?> <?php echo '<option value="' . REASONS4 . '">' . REASONS4 . '</option>'; ?> <?php echo '<option value="' . REASONS5 . '">' . REASONS5 . '</option>'; ?> <?php echo '<option value="' . REASONS6 . '">' . REASONS6 . '</option>'; ?> </select><br /> <?php echo ENTRY_ENQUIRY; ?><BR> <?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15, tep_sanitize_string($_POST['enquiry']), '', false); ?> <br /> </td></tr></table></td> </tr> </table> <br /> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo tep_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td></tr> <?php } ?> <!-- EOF Super Contact us enhancement 1.41 //--> </table></form></td> <!-- body_text_eof //--> <!-- removedrightcolumn //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> My language contact_us.php is as follows: <?php /* $Id: contact_us.php,v 1.7 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('HEADING_TITLE', 'Contact Us'); define('NAVBAR_TITLE', 'Contact Us'); define('TEXT_SUCCESS', 'Your question has been successfully sent to the Paintball Warehouse Tac House.'); define('EMAIL_SUBJECT', 'Question from ' . STORE_NAME); define('ENTRY_NAME', 'Full Name:'); define('ENTRY_EMAIL', 'E-Mail Address:'); define('ENTRY_ENQUIRY', 'Question:'); // BOF Super Contact us enhancement 1.41 define('ENTRY_ORDER_ID', 'Order ID (if applicable):'); define('OPENING_HOURS', '<b>Hours:</b><br> <TABLE class=main> <TR><TD class=main>Monday to Friday</TD><TD class=main>: 9 - 5 EST</TD></TR> <TR><TD class=main>Saturday</TD><TD class=main>: 9 - 1 EST</TR> </TABLE> <BR><BR> For your convenience, please use the form on the right to contact us with any comments or concerns. Please allow up to 24 hours for a reply. '); define('ENTRY_REASON', 'Email Subject: '); define('SEND_TO_TEXT', 'Send Contact Form Email To:'); define('SEND_TO_TYPE', 'radio'); //this will create a radio buttons for your contact list //define('SEND_TO_TYPE', ''); //Change to this for a dropdown menu. define('REASONS1', ' General Question'); define('REASONS2', ' Advertising'); define('REASONS3', ' Product Information'); define('REASONS4', ' Ordering and Shipping'); define('REASONS5', ' Returns'); define('REASONS6', ' Website Problems'); // BOF Super Contact us enhancement 1.41 ?> Again this is vs 1.4 not vs 2 so uses the sql upload. I hope this helps others trying to find their way through this one. Maybe a developer could (after testing) upload this cleaned up version. Sue
  10. Thanks - I finally got this figured out - and actually both IE and Firefox WERE working the same, it was just that the placement in IE was putting the hover to the left, and on top of the image to the left while Firefox was putting the hover to the right and therefore under that image. When I changed the numbers I reallized when IE put the image to the right the same happened! So it took only a little tweeking once I could see what was happening to adjust both so the hover is centered over the original image and all works great in both browsers. Safari is putting them to the left so this is ok too. Thanks for your patience in helping me sort these things out! Sue
  11. designbysue

    "Dynamenu" for osCommerce

    Yes - you were both correct. Had to change active and hover attribute from bold to stop the movement in the box edge. And the stylesheet change corrected the color Thanks Sue PS _ client loves this feature - thanks for the contribution!
  12. designbysue

    Super Contact us enhancement 1.0

    Just noticed - the phone number is not being sent either Sue
  13. designbysue

    Super Contact us enhancement 1.0

    Installed 2.1 and have it almost working - but the reasons are not being included in the email - Solution?? Thanks Sue
  14. designbysue

    "Dynamenu" for osCommerce

    Thanks for your answers - have to pack it in for the night but will try both tomorrow. Sue
  15. Found the answer to number 1 here http://forums.oscommerce.com/topic/347085-setting-the-number-of-products-or-new-products-displayed-limiting-age-of-new-products-shown/ But still need help on hover problems in Firefox and Safari Thanks Sue
×