Jump to content

janice171

Members
  • Content count

    191
  • Joined

  • Last visited

2 Followers

Profile Information

  • Real Name
    janice thorp

Recent Profile Visitors

4,019 profile views
  1. Hi, I have a problem with closing </li> tags. It seems that if a category has a subcategory there is no closing </li> tag. I'm baffled as to why this is happening. Anyone know which part of the code is affecting this? Thanks for any help.
  2. Very Helpful and Friendly person, GREAT addition to the community!! Thanks Janice!

  3. Hi, This is for Misery_kitty and anyone else having the 'close' problem where scroll bars appear on the first click of the close cross and it closes on the second click. I discovered it only seems to happen in Firefox on my mac (not sure about ie) but Safari is fine. Anyway i just changed a style in the lightbox stylesheet as follows and lightbox now works as it should. Find in lightbox/css/lightbox.css #imageDataContainer ...and change overflow: auto; ...to overflow: hidden; Hope that helps. Cheers Janice
  4. janice171

    TABLE_PAGES doesn't exist issue

    yep i too have this problem...anyone found any answers. This problem has arisen from a clean install of 2.2rc2: 1146 - Table 'username_shop.TABLE_PAGES' doesn't exist select p.pages_id, p.sort_order, p.status, s.pages_title, s.pages_html_text from TABLE_PAGES p LEFT JOIN TABLE_PAGES_DESCRIPTION s on p.pages_id = s.pages_id where p.status = 1 and s.language_id = '1' and p.page_type = 1 [TEP STOP] thanks for any help
  5. janice171

    [Contribution] STS v4

    Thanks BKELLUM...but still no joy. I have now deleted the database and files and started from a clean slate and now i get this error on step 4 of installation: Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13 Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13 Warning: main(../includes/database_tables.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13 Fatal error: main() [function.require]: Failed opening required '../includes/database_tables.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/user/public_html/shop/install/templates/pages/install_4.php on line 13 Does anyone know what i should do? Thanks for any help
  6. janice171

    [Contribution] STS v4

    hi, can anyone help....i thought i'd give the sts a try but after two installs i still get this error: Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/index.php on line 13 Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/index.php on line 13 Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/user/public_html/shop/index.php on line 13 Fatal error: main() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/user/public_html/shop/index.php on line 13 the 1st installation seemed to work and i even managed to get into admin to install sts. The problem started when i changed the 'test' template to 'full'. Anyone any ideas what i should do?? Thanks
  7. Hi, I still get vertical scrollbars appearing when i click on the close button...anyone sussed how to get rid of this?? Cheers J
  8. janice171

    Register Globals Support

    Hi, I too would like to know which one to use...there seems to be quite a bit of rubbish on the contrib page: http://www.oscommerce.com/community/contri...ry/search,33744 Thanks for any help.
  9. ok tom thanks, where do i get the new version from? i didn't install it but i could have a go at updating if i had instructions etc. cheers tom
  10. Hi Tom, I can only find a file called 'protx_direct.php' which is in the root/includes/modules directory. Do i need to change this code: if (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Test') { $url = 'https://ukvpstest.protx.com/VPSDirectAuth/PaymentGateway.asp'; } elseif (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Server IP Test') { $url = 'https://ukvpstest.protx.com/showpost/showpost.asp'; } elseif (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Simulator') { $url = 'https://ukvpstest.protx.com/VSPSimulator/VSPDirectGateway.asp'; } else { $url = 'https://ukvps.protx.com/VPSDirectAuth/PaymentGateway.asp'; } with this: if (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Test') { $url = 'https://ukvpstest.protx.com/vspgateway/service/vspdirect-register.vsp'; } elseif (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Server IP Test') { $url = 'https://ukvpstest.protx.com/showpost/showpost.asp'; } elseif (MODULE_PAYMENT_PROTX_DIRECT_TRANSACTION_MODE == 'Simulator') { $url = 'https://ukvpstest.protx.com/VSPSimulator/VSPDirectGateway.asp'; } else { $url = 'https://ukvps.protx.com/vspgateway/service/vspdirect-register.vsp'; }
  11. Hi Tom, I can only find a file called 'protx_direct.php' which is in the root/includes/modules directory. Is this where i need to make changes? I can't find a file called 'protx_process.php' Thanks for your help
  12. Hi, I am having real problems with payments not getting through. They are appearing in PrtotX admin but not in Oscommerce admin and customers are entering their card details in more than once because they don't think the transaction has gone through. The last transaction to go through and appear in Oscommerce admin was 31st July. The site is already running under protocol 2.22. Does anyone know what this could be? Thanks for any help
  13. Hi, i've installed this contrib and everything seems to be working ok. The thumbnail images are looking much cleaner and less jagged. Am i correct in thinking that all i do in admin is to set the width and height of the to pixel dimensions? Or does this have to be a %? Presumably all the images uploaded will be placed in the new tumbnails folder too? Does anyone know why the download time of the site is now increased?...everything is loading incredibly slowly!!! Thanks for any help. J
  14. janice171

    family 3.0 problems

    Hi, I haven't had any problems getting this to work, but i do have a problem in that the 'box' way to display the related products appears without a header to say 'Related Products....'. I added a table above the code in modules/family_products but now the header appears on every page. Anyone know a way to get this so it displays only on the product pages that have the family products associated??? Here's the code <!-- family_products //--> <table border="0" width="100%" cellspacing="0" cellpadding="0"><tr> <td background=images/m34.gif style="padding-left: 23px" colspan=3><span class=ch2>Customers Who Viewed This Item Also Viewed These</span></td></tr></table> <?php //This is where the code for the infoBox starts: if ((FAMILY_DISPLAY_TYPE == 'Box') && (FAMILY_DISPLAY_FORMAT == 'Seperate')){ $family_name_query = tep_db_query("select pf.family_id, f.family_name from " . TABLE_PRODUCTS_FAMILIES . " pf, " . TABLE_FAMILIES . " f where pf.family_id = f.family_id and pf.products_id = '" . $products_id . "'"); while ($family_results = tep_db_fetch_array($family_name_query)) { $family_query = tep_db_query("select distinct p.manufacturers_id, p.products_id, p.products_image, p.products_tax_class_id, p.products_price, s.specials_new_products_price from " . TABLE_PRODUCTS_FAMILIES . " pf, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pf.family_id = '" . (int)$family_results['family_id'] . "' and p.products_id = pf.products_id and p.products_id != '" . $products_id . "'" . $where_clause2 . " order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); $info_box_contents = array(); if (FAMILY_HEADER_FORMAT == 'Family Name') { $info_box_contents[] = array('text' => $family_results['family_name']); } else { if (FAMILY_HEADER_TEXT == '') { $info_box_contents[] = array('text' => TABLE_HEADING_FAMILY_PRODUCTS); } else { $info_box_contents[] = array('text' => FAMILY_HEADER_TEXT); } } $family_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS_FAMILIES . " pf, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pf.family_id = '" . (int)$family_results['family_id'] . "' and p.products_id = pf.products_id and p.products_id != '" . $products_id . "'" . $where_clause2 . " order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); if (tep_db_num_rows($family_query) > 0) { new contentBoxHeading($info_box_contents); $row = 0; $col = 0; $info_box_contents = array(); $where_clause2 = ''; while ($family = tep_db_fetch_array($family_query)) { $where_clause2 .= " and p.products_id != '" . $family['products_id'] . "'"; $family['products_name'] = tep_get_products_name($family['products_id']); $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $family['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $family['products_image'], $family['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $family['products_id']) . '">' . $family['products_name'] . '</a><br>' . $currencies->display_price($family['products_price'], tep_get_tax_rate($family['products_tax_class_id']))); $col ++; if ($col > 2) { $col = 0; $row ++; } } new contentBox($info_box_contents); echo '<p>'; } } } if ((FAMILY_DISPLAY_TYPE == 'Box') && (FAMILY_DISPLAY_FORMAT == 'Random')){ $family_name_query = tep_db_query("select family_id from " . TABLE_PRODUCTS_FAMILIES . " where products_id = '" . $products_id . "'"); if (tep_db_num_rows($family_name_query) > '0') { $info_box_contents = array(); if (FAMILY_HEADER_TEXT == '') { $info_box_contents[] = array('text' => TABLE_HEADING_FAMILY_PRODUCTS); } else { $info_box_contents[] = array('text' => FAMILY_HEADER_TEXT); } $family_name_num_rows = tep_db_num_rows($family_name_query); $num_of_rows_less_one = $family_name_num_rows - '1'; if (tep_db_num_rows($family_name_query) == '1') { $family_results = tep_db_fetch_array($family_name_query); $family_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS_FAMILIES . " pf, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pf.family_id = '" . (int)$family_results['family_id'] . "' and p.products_id = pf.products_id and p.products_id != '" . $products_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } else { $where_clause = ''; for ($i=0; $i < tep_db_num_rows($family_name_query); $i++) { $family_results = tep_db_fetch_array($family_name_query); if ($i < $num_of_rows_less_one) { $where_clause .= "(pf.family_id = '" . $family_results['family_id'] . "') OR "; } else { $where_clause .= "(pf.family_id = '" . $family_results['family_id'] . "')"; } } $family_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS_FAMILIES . " pf, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and (" . $where_clause . ") and p.products_id = pf.products_id and p.products_id != '" . $products_id . "' limit " . MAX_DISPLAY_NEW_PRODUCTS); } if (tep_db_num_rows($family_query) > 0) { new contentBoxHeading($info_box_contents); $row = 0; $col = 0; $info_box_contents = array(); $where_clause2 = ''; for ($i=0, $j=1; ($i < MAX_DISPLAY_NEW_PRODUCTS) && ($i < tep_db_num_rows($family_query)); $i++, $j++) { if (tep_db_num_rows($family_name_query) == '1') { $family = tep_random_select("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS_FAMILIES . " pf, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = pf.products_id and p.products_id != '" . $products_id . "'" . $where_clause2); } else { $family = tep_random_select("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS_FAMILIES . " pf, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and (" . $where_clause . ") and p.products_id = pf.products_id and p.products_id != '" . $products_id . "'" . $where_clause2); } $where_clause2 .= " and p.products_id != '" . $family['products_id'] . "'"; $family['products_name'] = tep_get_products_name($family['products_id']); $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $family['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $family['products_image'], $family['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $family['products_id']) . '">' . $family['products_name'] . '</a><br>' . $currencies->display_price($family['products_price'], tep_get_tax_rate($family['products_tax_class_id']))); $col ++; if ($col > 2) { $col = 0; $row ++; } } new contentBox($info_box_contents); echo '<p>'; } } } ?> <?php //This is where the code for the list starts: if ((FAMILY_DISPLAY_TYPE == 'List') && (FAMILY_DISPLAY_FORMAT == 'Seperate')){ $family_name_query = tep_db_query("select pf.family_id, f.family_name from " . TABLE_PRODUCTS_FAMILIES . " pf, " . TABLE_FAMILIES . " f where pf.family_id = f.family_id and pf.products_id = '" . $products_id . "'"); while ($family_results = tep_db_fetch_array($family_name_query)) { $family_query = tep_db_query("select distinct p.manufacturers_id, p.products_id, p.products_image, p.products_tax_class_id, p.products_price, s.specials_new_products_price from " . TABLE_PRODUCTS_FAMILIES . " pf, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pf.family_id = '" . (int)$family_results['family_id'] . "' and p.products_id = pf.products_id and p.products_id != '" . $products_id . "'" . $where_clause2 . " order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); $define_list = array('PRODUCT_LIST_NAME' => '2',//PRODUCT_LIST_NAME, 'PRODUCT_LIST_PRICE' => '3',//PRODUCT_LIST_PRICE, 'PRODUCT_LIST_IMAGE' => '1',//PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => '4');//PRODUCT_LIST_BUY_NOW); asort($define_list); $column_list = array(); reset($define_list); while (list($key, $value) = each($define_list)) { if ($value > 0) $column_list[] = $key; } $list_box_contents = array(); if (tep_db_num_rows($family_query) > 0) { if (FAMILY_HEADER_FORMAT == 'Family Name') { $list_box_contents[0][0] = array('align' => 'left', 'params' => 'class="productListing-heading"', 'text' => ' ' . $family_results['family_name'] . ' '); } else { if (FAMILY_HEADER_TEXT == '') { $list_box_contents[0][0] = array('align' => 'left', 'params' => 'class="productListing-heading"', 'text' => ' ' . TABLE_HEADING_FAMILY_PRODUCTS . ' '); } else { $list_box_contents[0][0] = array('align' => 'left', 'params' => 'class="productListing-heading"', 'text' => ' ' . FAMILY_HEADER_TEXT . ' '); } } for($i=1; $i<4; $i++) { $list_box_contents[0][$i] = array('align' => 'left', 'params' => 'class="productListing-heading"', 'text' => ' '); } for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { switch ($column_list[$col]) { case 'PRODUCT_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; break; case 'PRODUCT_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right'; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; break; case 'PRODUCT_LIST_BUY_NOW': $lc_text = TABLE_HEADING_BUY_NOW; $lc_align = 'center'; break; } if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) { $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text); } $list_box_contents[1][] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => ' ' . $lc_text . ' '); } $rows = 0; $where_clause2 = ''; while ($listing = tep_db_fetch_array($family_query)) { $where_clause2 .= " and p.products_id != '" . $listing['products_id'] . "'"; $listing['products_name'] = tep_get_products_name($listing['products_id']); $rows++; if (($rows/2) == floor($rows/2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1; for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { $lc_align = ''; switch ($column_list[$col]) { case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> '; } break; case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; } else { $lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } break; case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } break; case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; } $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text); } } new productListingBox($list_box_contents); } echo '<p>'; } } if ((FAMILY_DISPLAY_TYPE == 'List') && (FAMILY_DISPLAY_FORMAT == 'Random')) { $family_name_query = tep_db_query("select family_id from " . TABLE_PRODUCTS_FAMILIES . " where products_id = '" . $products_id . "'"); if (tep_db_num_rows($family_name_query) > '0') { $family_name_num_rows = tep_db_num_rows($family_name_query); $num_of_rows_less_one = $family_name_num_rows - '1'; if (tep_db_num_rows($family_name_query) == '1') { $family_results = tep_db_fetch_array($family_name_query); $family_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS_FAMILIES . " pf, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pf.family_id = '" . (int)$family_results['family_id'] . "' and p.products_id = pf.products_id and p.products_id != '" . $products_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } else { $where_clause = ''; $where_clause2 = ''; for ($i=0; $i < tep_db_num_rows($family_name_query); $i++) { $family_results = tep_db_fetch_array($family_name_query); if ($i < $num_of_rows_less_one) { $where_clause .= "(pf.family_id = '" . $family_results['family_id'] . "') OR "; } else { $where_clause .= "(pf.family_id = '" . $family_results['family_id'] . "')"; } } $family_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS_FAMILIES . " pf, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and (" . $where_clause . ") and p.products_id = pf.products_id and p.products_id != '" . $products_id . "' limit " . MAX_DISPLAY_NEW_PRODUCTS); } $define_list = array('PRODUCT_LIST_NAME' => '2',//PRODUCT_LIST_NAME, 'PRODUCT_LIST_PRICE' => '3',//PRODUCT_LIST_PRICE, 'PRODUCT_LIST_IMAGE' => '1',//PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => '4');//PRODUCT_LIST_BUY_NOW); asort($define_list); $column_list = array(); reset($define_list); while (list($key, $value) = each($define_list)) { if ($value > 0) $column_list[] = $key; } $list_box_contents = array(); if (tep_db_num_rows($family_query) > 0) { if (FAMILY_HEADER_TEXT == '') { $list_box_contents[0][0] = array('align' => 'left', 'params' => 'class="productListing-heading"', 'text' => ' ' . TABLE_HEADING_FAMILY_PRODUCTS . ' '); } else { $list_box_contents[0][0] = array('align' => 'left', 'params' => 'class="productListing-heading"', 'text' => ' ' . FAMILY_HEADER_TEXT . ' '); } for($i=1; $i<5; $i++) { $list_box_contents[0][$i] = array('align' => 'left', 'params' => 'class="productListing-heading"', 'text' => ' '); } for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { switch ($column_list[$col]) { case 'PRODUCT_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; break; case 'PRODUCT_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right'; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; break; case 'PRODUCT_LIST_BUY_NOW': $lc_text = TABLE_HEADING_BUY_NOW; $lc_align = 'center'; break; } if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) { $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text); } $list_box_contents[1][] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => ' ' . $lc_text . ' '); } $rows = 0; while ($listing = tep_db_fetch_array($family_query)) { $listing['products_name'] = tep_get_products_name($listing['products_id']); $rows++; if (($rows/2) == floor($rows/2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1; for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { $lc_align = ''; switch ($column_list[$col]) { case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> '; } break; case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; } else { $lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } break; case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } break; case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; } $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text); } } new productListingBox($list_box_contents); } } } ?> <!-- family_products_eof //-->
  15. Hi I've just installed the Free Shipping with Order Count MS1 and MS2,here, and it all went smoothly but i can't quite figure it out. In admin i have put the item count to 3 but where/ how do i specify that the first 2 items will incur a shipping cost? any help greatly appreciated. j
×