Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

chelle40

Pioneers
  • Posts

    20
  • Joined

  • Last visited

Profile Information

  • Real Name
    Shelli

chelle40's Achievements

  1. Thank you Chris - that worked. :thumbsup:
  2. Hi, I'm trying to install a guestbook addon I found (1349). It was posted back in 2010 and is for osc ver 2.2 and I have 2.3.1 I realize there are some coding differences and I'm stuck on one of them. Supposed to modify file: /catalog/includes/boxes/information.php I don't have that exact file but I do have: /catalog/includes/modules/boxes/bm_information.php In this file it says to add the following code: // START GUESTBOOK if(GUESTBOOK_SHOW == 'true'){ $info_box_contents[] = array('text' => tep_draw_separator()); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_GUESTBOOK) . '">' . BOX_INFORMATION_GUESTBOOK . '</a>'); } // END GUESTBOOK After the following code: // START OLD FILE WAY $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); // END OLD FILE WAY But the code that is in my file is: function execute() { global $oscTemplate; $data = '<div class="infoBoxWrapper list">' . tep_draw_box_wrapper_top() . '<div class="infoBoxHeading">' . tep_draw_box_title_top() . MODULE_BOXES_INFORMATION_BOX_TITLE . tep_draw_box_title_bottom() . '</div>' . '<div class="infoBoxContents">' . tep_draw_box_content_top() . '<ul class="information">' . '<li>' . tep_draw_box_list_top() . '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . MODULE_BOXES_INFORMATION_BOX_SHIPPING . '</a>' . tep_draw_box_list_bottom() . '</li>' . '<li>' . tep_draw_box_list_top() . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . MODULE_BOXES_INFORMATION_BOX_PRIVACY . '</a>' . tep_draw_box_list_bottom() . '</li>' . '<li>' . tep_draw_box_list_top() . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . MODULE_BOXES_INFORMATION_BOX_CONDITIONS . '</a>' . tep_draw_box_list_bottom() . '</li>' . '<li>' . tep_draw_box_list_top() . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '</a>' . tep_draw_box_list_bottom() . '</li>'. '</ul>' . '' . tep_draw_box_content_bottom() . '</div>' . '' . tep_draw_box_wrapper_bottom() . '</div>'; $oscTemplate->addBlock($data, $this->group); } Can anyone tell me how to change the ver 2.2 code provided in the addon to work with my ver 2.3.1 code? Or is there another better and more current guestbook addon that someone can suggest. Thank you Shelli
  3. Thanks again Phil, Sorry it has take me so long to reply. LVB is fine with me. When you say "in any .php file that happens to be loaded on the page where you need to call it" - how would I know which files I would need? Would it be the ones where in the oscommerce merchant --> Modules --> Boxes --> Reviews - would it be those I have marked under "Display in pages"? I opened up one of those files and added the code just before the last ?> And this is what it looks like (Well, the end). Is that right? <?php require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); function getInitials($name){ //split name using spaces $words=explode(" ",$name); $inits=''; //loop through array extracting initial letters foreach($words as $word){ $inits.=strtoupper(substr($word,0,1)); } return $inits; } ?>
  4. I found this php code but don't know exactly where it would go. Any suggestions? function getInitials($name){ //split name using spaces $words=explode(" ",$name); $inits=''; //loop through array extracting initial letters foreach($words as $word){ $inits.=strtoupper(substr($word,0,1)); } return $inits; } Thank you Shelli
  5. Thank you for the responses. Phil, is there a way to make it a text field that forces a minimum of 2 chars? That way if they want to put their name they can but if they don't they can put initials or whatever? Thanks, Shelli
  6. Hi, Is there a way to make reviews anonymous. I am using oscommerce ver 2.3.1. We are a brand new company and have had 1 great review but need more. We've had people who have wanted to write reviews but they don't want their name shown. The only way people can write a review is if they log in and their name is automatically shown. Seeing as how we sell home brew products I can see how people wouldn't want their names public on the internet for this. Thank you, Shelli
  7. I am having the same problem with a twist. We use fedex. Have same issue where it calculates weight correctly but only 1 package. But going simply by weight won't work. Our products vary in size. We sell home brew products and sell bottles in six packs, growlers and fermenters. So far we have only had orders for 1-3 growlers (which we tape together since they are individually boxed) or a fermenter and 1 or 2 growlers which we can fit in 1 box but now we have a possible order of 10 growlers and a fermenter. The fermentor would be 1 package and the growlers may fit in a large box but may need to be separated into 2. Would there be a way to maybe instead of by weight, go by what the product is and the quantity ordered? If so, does anyone know of an example of what this code would be like? The weight code above would be a start but since there are other variables involved I don't understand the code enough to expand on it. Thank you, Shelli
  8. Thank you Chris ... that looks like what I was wanting.
  9. Hi, Is there a way to show different options for shipping and payment for specific users (customers)? We use FedEx and Paypal. Some of our customers are retailers in which we drop their products off and they pay at that time with a check. I know you can enable a flat rate and set it to 0 but then non-retail customers will select that. The same for payment - I know you can enable COD but again, non-retail customers can and will select that. So, I thought if there was a way to set certain logins to see these options that would work. I do use the discount code module and there is an option to select certain customers but the discount code doesn't have an option for free shipping and/or COD. Thanks, Shelli
  10. Hi, I recently installed the mobile oscommerce add-on on my site. I want to make some changes to the look of the mobile page but not sure which files need to be changed. The code below is part of the view source on my mobile home page - hopefully it is enough to answer my question. I want to remove the link to the classic site and in that general area add our logo. I can't tell what files need to be updated. I think I'm supposed to modify whatever "mainbody" and/or "iphone_content" is but I don't know what files are referenced there. Can anyone help me understand this? Thank you, Shelli < div id="mainBody"> </ div> <table class="headerTitle" width="100%" cellpadding="0" cellspacing="0"> <tr> <td id="headerTitleLeft" class="headerTitleLeft"><a href="/shop/index.php?redirectCancelled=true">CLASSIC</a> View</td> <td id="headerTitle" class="headerTitle">Catalog</td> <td id="headerTitleRight" class="headerTitleRight"></td> </tr> </table> <!-- ajax_part_begining --> <!-- categories //--> < div id="iphone_content"> < div id="cms"><strong>CHEERS <span class="greetUser">HOME BREWER!</span></strong> Feel free to browse around, <a href="https://www.dwbrewproducts.com/shop/mobile_login.php"><u>LOG IN</u></a> or if you would like to become a new member <a href="https://www.dwbrewproducts.com/shop/mobile_create_account.php"><u>CREATE AN ACCOUNT</u></a><p> </ div> <!-- ajax_part_ending --> < div id="footer"> < table border="5" width="100%" cellspacing="0" cellpadding="0"> <!-- BOF show mobile link //--> <td align="center" class="linkText"> <a href="/shop/index.php?redirectCancelled=true">CLASSIC</a> - <b>MOBILE</b> View </td>
×
×
  • Create New...