Jump to content

bandmans

Members
  • Content count

    29
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Eric

Recent Profile Visitors

2,491 profile views
  1. Rainer @@raiwa, That did the trick! That is so weird -- I haven't edited any of the mobile code since I had it installed and working almost a year ago. Anyhow, obviously it did get edited at some point. Thanks for all of the help! Eric
  2. @@raiwa, Thank you for your response. I apologize -- I was incorrect -- I actually didn't upgrade my PHP version. What happened was that I was upgrading my version of Plesk to 10.4. While performing the upgrade, my server crashed, and GoDaddy had to move me over to a new server. They also put me on a server that has cPanel in stead of Plesk now. Somewhere in this transition the issue must have occurred. I believe I am running version iOSC3_5.4rev2 Here are the various snippets of code where the issues are occurring: /home/bandman/public_html/mobile_catalogue.php on line 103 (and some additional lines which might help) if (isset($HTTP_GET_VARS['cPath']) != FALSE) { echo tep_mobile_selection(); if ($specials_count['total'] > 2000 ) { echo tep_mobile_selection(tep_mobile_link(FILENAME_SPECIALS), array(tep_image(DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES . 'specials.png'), BOX_HEADING_SPECIALS)).'<div class="fleche"><img src="' . DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES . 'arrow_select.png" /></div>'; } /home/bandman/public_html/includes/functions/general.php on line 62 (and some additional lines, which also includes the foreach() error on line 66) function tep_mobile_selection($path, $elements) { $ret = '<tr class="categories"'; $ret .= ($path ? ' onclick="window.location.href=\'' . $path .'\'"' : '' ); $ret .= '>'; foreach ($elements as $element) { $ret .= '<td class="categories">' . tep_mobile_path_element($path,$element) . '</td>'; } $ret .= '<td class="categories" align="right">'; //$ret .= ($path) ? '<a href="' . $path .'">' . tep_image(DIR_MOBILE_IMAGES . 'arrow_select.png') . '</a>' : '<input type="image" src="' .DIR_MOBILE_IMAGES . 'arrow_select.png' . '" border="0" alt="">'; return $ret; } Let me know if you need anything else. Thanks!
  3. Hello, I am having an error show up when I click on a category on the mobile side. The error reads: Warning: Missing argument 1 for tep_mobile_selection(), called in /home/bandman/public_html/mobile_catalogue.php on line 103 and defined in /home/bandman/public_html/includes/functions/general.php on line 62 Warning: Missing argument 2 for tep_mobile_selection(), called in /home/bandman/public_html/mobile_catalogue.php on line 103 and defined in /home/bandman/public_html/includes/functions/general.php on line 62 Warning: Invalid argument supplied for foreach() in home/bandman/public_html/mobile/includes/functions/general.php on line 66 Please let me know if you have any idea why these errors are occurring. Would it have anything to do with upgrading my PHP? Thanks in advance!
  4. bandmans

    One Page Checkout Support

    Still working on trying to fix this. Not having much luck. Anyone have any ideas?
  5. bandmans

    One Page Checkout Support

    I have oscommerce v 2.3 and I recently installed the One Page Checkout contribution located at http://addons.oscommerce.com/info/7993 . I installed the v2 by Web Source 5. I am having an issue where this little pop-up box shows up on the screen as soon as you go to the checkout page. You can see an example of this issue at http://www.bandmans.com/newsite. If you add anything to the cart and then checkout, the pop up box shows up and then you can't get it to go away, nor can you type anything in on the checkout page. I can't seem to get the pop up box to disappear. Anyone have any ideas? Thanks
  6. bandmans

    Header Tags SEO

    Jack, I can't believe I read past that. I literally read every piece of documentation included with the contribution, and I read over the one piece of information I needed. Thank you very much!! Fixes the issue perfectly. I love the contribution by the way, as with many of the others you have created -- I use it with every site I build. This just happened to be the first time I have installed it on v2.3.
  7. bandmans

    Header Tags SEO

    For now I just removed the code from the header which calls for the title to be shown in the header if "Display Page Top Title" is set to True, so it no longer shows up in the header of my pages, however I would really like to be able to find where I can change that option in the Admin section if possible. I don't mean to spam this thread -- I just wanted to update everyone as to why the title will no longer show on my site if you are to visit it when attempting to help troubleshoot.
  8. bandmans

    Header Tags SEO

    It looks like I just need to set "Display Page Top Title" to false in the Admin section and it should remove that title from my header, however I don't see anywhere in the admin where I can set this to false (or to true). Is it possible that I missed a step in the admin install part? I went over it again, and I still don't see the option for "Display Page Top Title" Anyone else have this issue?
  9. bandmans

    Header Tags SEO

    Here are the errors I get when I run the test by the way -- but I don't think they are related to the problem I am currently having. Page not added - file name is invalid - dresscode_theme.php exclude Page not added - file name is invalid - boxnewsletter.php exclude Page not added - file name is invalid - opensearch.php exclude Found Missing Tags: Products table has 2 items with missing meta tag information. Permissions settings for the /var/www/vhosts/bandmans.com/httpdocs/newsite/includes/header_tags.php file appear to be incorrect. Change to 755. NOTE: Disregard if on Windows server.
  10. bandmans

    Header Tags SEO

    I installed this contribution (I have OSCommerce v. 2.3), but when I go into the admin section under Header Tags SEO box, I don't see the link for "Options". When I look at the header_tags_seo.php file in the admin/includes/boxes that I transferred over, it also doesn't include any code for an "Options" link. Is there not supposed to be an options link? The issue I am having is that the title of the page is showing up in my header of my page as well, and I want to disable this (which I thought should be able to be done through "Options"). Here is a link to my site so that you can see what I mean: http://www.bandmans.com/newsite/index.php (also shows up on all other pages of the site). Any ideas on how to remove the title from my header?
  11. I got the add to cart to work now!! Thank you for your help Ranier!
  12. Are you sure I need to edit the product_listing.php and products.php (mobile) for the shopping cart to work? Are these files connected to the shopping cart?
  13. Ranier, I tried to add the item that you suggested to my shopping cart, but it is still not adding to cart for me. It keeps saying my shopping cart is empty, even when I add the item with no attributes.
  14. Ranier, Thank you for the response. - I have the version IOSC3 v5.4.rev2 installed - My store url is www.bandmans.com. I currently have the mobile site off, so it won't automatically redirect on cell phones, but you can see the mobile site at www.bandmans.com/mobile_index.php. - Source code of shopping_cart.php: <?php /* $Id: shopping_cart.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ require("includes/application_top.php"); if ($cart->count_contents() > 0) { include(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment; } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOPPING_CART); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHOPPING_CART)); ?> <!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; ?>"> <script type="text/javascript" src="iepngfix_tilebg.js"></script> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <style type="text/css"> .ie6_png {behavior: url("iepngfix.htc") } .ie6_png img {behavior: url("iepngfix.htc") } .ie6_png input {behavior: url("iepngfix.htc") } </style> </head> <body> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" class="<?php echo MAIN_TABLE; ?>" cellspacing="0" cellpadding="0"> <tr> <td class="<?php echo BOX_WIDTH_TD_LEFT; ?>"><table border="0" class="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td class="<?php echo CONTENT_WIDTH_TD; ?>"><?php echo panel_top(); ?><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?> <?php echo tep_draw_top();?> <?php echo tep_draw_title_top();?> <?php echo HEADING_TITLE; ?> <?php echo tep_draw_title_bottom();?> <?php if ($cart->count_contents() > 0) { ?> <?php echo tep_draw1_top();?> <?php $info_box_contents = array(); $info_box_contents[0][] = array('align' => 'center', 'params' => ' class="s_cart_head s_cart_head_padd remove"', 'text' => ''.TABLE_HEADING_REMOVE.''); $info_box_contents[0][] = array('align' => 'center', 'params' => ' class="s_cart_head s_cart_head_padd products"', 'text' => ''.TABLE_HEADING_PRODUCTS.''); $info_box_contents[0][] = array('align' => 'center', 'params' => ' class="s_cart_head s_cart_head_padd quantity"', 'text' => ''.TABLE_HEADING_QUANTITY.''); $info_box_contents[0][] = array('align' => 'center', 'params' => ' class="s_cart_head s_cart_head_padd total"', 'text' => ''.TABLE_HEADING_TOTAL.''); $any_out_of_stock = 0; $products = $cart->get_products(); /* MPQM */ $uniqueProductArray["pId"] = array(); $uniqueProductArray["pQty"] = array(); foreach($products as $tempContents) { $justpId = intval($tempContents['id']); if (!in_array($justpId, $uniqueProductArray["pId"])) { $uniqueProductArray["pId"][$justpId] = $justpId; $uniqueProductArray["pQty"][$justpId] = $tempContents['quantity']; } else { $uniqueProductArray["pQty"][$justpId] += $tempContents['quantity']; } } /* MPQM */ for ($i=0, $n=sizeof($products); $i<$n; $i++) { // Push all attributes information in an array if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { while (list($option, $value) = each($products[$i]['attributes'])) { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value); $attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . (int)$products[$i]['id'] . "' and pa.options_id = '" . (int)$option . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . (int)$value . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . (int)$languages_id . "' and poval.language_id = '" . (int)$languages_id . "'"); $attributes_values = tep_db_fetch_array($attributes); $products[$i][$option]['products_options_name'] = $attributes_values['products_options_name']; $products[$i][$option]['options_values_id'] = $value; $products[$i][$option]['products_options_values_name'] = $attributes_values['products_options_values_name']; $products[$i][$option]['options_values_price'] = $attributes_values['options_values_price']; $products[$i][$option]['price_prefix'] = $attributes_values['price_prefix']; } } } for ($i=0, $n=sizeof($products); $i<$n; $i++) { if (($i/2) == floor($i/2)) { $info_box_contents[] = array('params' => ''); } else { $info_box_contents[] = array('params' => ''); } $cur_row = sizeof($info_box_contents) - 1; $p_cart_pic = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => ' class="s_cart_td"', 'text' => tep_draw_checkbox_field('cart_delete[]', $products[$i]['id'])); $products_name = '<table border="0" cellspacing="10" cellpadding="0" align="center" class="main">' . '<tr><td colspan="2" align="center" class="name name3_padd"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . $products[$i]['name'] . '</a></td></tr>'. '<tr><td align="center" height="220">'.tep_draw_prod_pic_top().''.$p_cart_pic.''.tep_draw_prod_pic_bottom().'</td></tr>'; if (STOCK_CHECK == 'true') { $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; $products_name .= $stock_check; } } /* MPQM */ $productMinimQtyCost = ""; $justpId = intval($products[$i]['id']); if (in_array($justpId, $uniqueProductArray["pId"])) { if ($products[$i]['mpenalty'] > 0 && $products[$i]['mqty'] > $uniqueProductArray["pQty"][$justpId] ) { $products_name .= '<tr><td class="main" align="left">Quantity less than '.$products[$i]['mqty']." </td></tr>\n" ; $productMinimQtyCost = $currencies->format($products[$i]['mpenalty']); /* Removing this product from the Penalty */ $uniqueProductArray["pId"][$justpId] = ""; $uniqueProductArray["pQty"][$justpId] = ""; } } /* MPQM */ if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { reset($products[$i]['attributes']); $products_name .= ''; while (list($option, $value) = each($products[$i]['attributes'])) { $products_name .= '<tr><td align="center"><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i><br>'; } // denuz text attr $b = strpos($products[$i]['id'], '{'); if ($b === false) { $pid = $products[$i]['id']; } else { $pid = substr($products[$i]['id'], 0, $B); } $attr_q = tep_db_query("select cbta.*, pta.products_text_attributes_name from customers_basket_text_attributes as cbta, products_text_attributes as pta where cbta.products_text_attributes_id = pta.products_text_attributes_id and cbta.products_id = " . $pid . " and cbta.session_id = '" . $osCsid . "'"); while ($attr = tep_db_fetch_array($attr_q)) { $products_name .= '<br><small><i> - ' . $attr['products_text_attributes_name'] . ' ' . stripslashes($attr['products_text_attributes_text']) . '</i></small>'; } // eof denuz text attr $products_name .= '</td></tr>'; } $products_name .= '</table>'; $info_box_contents[$cur_row][] = array('params' => '', 'text' => $products_name); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="s_cart_td"', 'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="2"') . tep_draw_hidden_field('products_id[]', $products[$i]['id'])); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="s_cart_td"', 'text' => '<table><tr><td align="center"><span class="productSpecialPrice">' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</span></td></tr>' . '<span style="color:black;"><tr><td align="center" style="height:266px; vertical-align:bottom" >' . $productMinimQtyCost . '</span></td></tr>' . "</table>" ); } new productListingBox($info_box_contents); ?> <?php if ($any_out_of_stock == 1) { if (STOCK_ALLOW_CHECKOUT == 'true') { ?> <table cellpadding="0" cellspacing="0" border="0"> <tr><td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></td></tr> </table> <?php } else { ?> <table cellpadding="0" cellspacing="0" border="0"> <tr><td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></td></tr> </table> <?php } } ?> <?php // Begin Free Gift Mod if(defined(MODULE_FREEGIFT_STATUS) && MODULE_FREEGIFT_STATUS === 'true') { ?> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td> <? $info_box_contents = array(); $freegifts_available_query = tep_db_query("SELECT COUNT(*) FROM " . TABLE_PRODUCTS . " p Inner Join " . TABLE_PRODUCTS_TO_CATEGORIES . " ptc ON p.products_id = ptc.products_id WHERE ptc.categories_id = '". MODULE_FREEGIFT_CATEGORY . "'"); $freegifts_available = tep_db_fetch_array($freegifts_available_query); if (sizeof(($freegifts_available) > 0)) { if ($cart->show_total() >= MODULE_FREEGIFT_MINIMUM_SPEND) { $info_box_contents[0][] = array('align' => 'left', 'params' => 'class="productListing-heading"', 'text' => (($cart->get_freegift() > 0) ? TEXT_CURRENT_CHOICE . tep_get_products_name($cart->get_freegift()) . ' ' : TEXT_NO_SELECTED)); // Display Dropdown box full of products in free gifts category $freegifts_query = tep_db_query("SELECT p.products_id, pd.products_name FROM " . TABLE_PRODUCTS . " p Inner Join " . TABLE_PRODUCTS_TO_CATEGORIES . " ptc ON p.products_id = ptc.products_id Inner Join " . TABLE_PRODUCTS_DESCRIPTION . " pd ON p.products_id = pd.products_id WHERE ptc.categories_id = '". MODULE_FREEGIFT_CATEGORY . "'"); $freegifts_array[] = array( 'id' => 0, 'text' => TEXT_SELECT_GIFT); while ($freegifts = tep_db_fetch_array($freegifts_query)) { $freegifts_array[] = array('id' => $freegifts['products_id'], 'text' => $freegifts['products_name']); } $info_box_contents[1][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => '<b>' . TEXT_GIFT_CHOICE . '</b>' . tep_draw_pull_down_menu('freegift_id', $freegifts_array, $cart->get_freegift()) . '<br><br><font color="Red">' . TEXT_CLICK . ' ' .tep_draw_form('freegift', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')) . '<input type="submit" style="background-color: transparent;border: none;cursor: pointer;cursor: hand;" value="Here"> </form>' . TEXT_CONFIRM_SELECT . '</font>'); } else { $cart->set_freegift(0); $info_box_contents[0][] = array('align' => 'left', 'params' => 'class="productListing-heading"', 'text' => TEXT_FREE_GIFT); $info_box_contents[1][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => '<b><font color="Red">' . TEXT_SPEND_EXTRA . $currencies->format(-$cart->show_total()+MODULE_FREEGIFT_MINIMUM_SPEND) . ' ' . TEXT_RECEIVE_GIFT . '</font></b>'); } new productListingBox($info_box_contents); } ?><br><center><font color="#000000"><a href="http://www.bandmans.com/bandmans-free-offers-c-282.html" target="_blank">Click here</a> to see free gifts</font> </td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php // End Free Gift Mod } ?> <?php /* echo tep_draw_infoBox2_top(); */ ?> <div class="cart_line_x padd2_gg"><?php echo tep_draw_separator('spacer.gif', '1', '1'); ?></div> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td width="80%" align="right" class="cart_total_left"><?php echo SUB_TITLE_SUB_TOTAL; ?></td> <td width="20%" align="center" class="cart_total_right main"> <span class="productSpecialPrice"><?php echo $currencies->format($cart->show_total()); ?></span> </td> </tr> </table> <div class="cart_line_x padd2_gg"><?php echo tep_draw_separator('spacer.gif', '1', '1'); ?></div> <table cellspacing="0" cellpadding="0" border="0" > <tr> <td style="padding:15px 20px 9px 20px;" class="button2_marg bg_input"><?php echo tep_image_submit('button_update_cart1.gif', IMAGE_BUTTON_UPDATE_CART); ?> <?php $back = sizeof($navigation->path)-2; if (isset($navigation->path[$back])) { echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; } ?> <?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout1.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?></td> </tr> </table> <?php /* echo tep_draw_infoBox2_bottom(); */ ?> <?php $initialize_checkout_methods = $payment_modules->checkout_initialization_method(); if (!empty($initialize_checkout_methods)) { ?> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td align="right" class="main" style="padding-right:50px;"><?php echo TEXT_ALTERNATIVE_CHECKOUT_METHODS; ?></td> </tr> <?php reset($initialize_checkout_methods); while (list(, $value) = each($initialize_checkout_methods)) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td align="right" class="main"><?php echo $value; ?></td> </tr> </table> <?php echo tep_draw4_bottom();?> <?php } } }else { ?> <?php echo tep_draw1_top();?> <?php echo tep_draw_infoBox_top();?> <?php new infoBox_search_criteria(array(array('text' => TEXT_CART_EMPTY))); ?> <?php echo tep_draw_infoBox_bottom();?> <?php echo tep_pixel_trans();?> <?php /* echo tep_draw_infoBox2_top(); */ ?> <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" class="main"><?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> <?php /* echo tep_draw_infoBox2_bottom(); */ ?> <?php } ?> <?php echo tep_draw1_bottom();?> <?php echo tep_draw_bottom();?> </form></td> <!-- body_text_eof //--> <td class="<?php echo BOX_WIDTH_TD_RIGHT; ?>"><table border="0" class="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Thanks again! Let me know if you need anything else from me.
  15. I also just noticed that my update and remove buttons don't work on the shopping_cart page when in internet explorer, but it does work in mozilla firefox. Very confusing -- Any ideas?
×