Jump to content

barne214

Members
  • Content count

    13
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Jim Barnes
  1. barne214

    Admin report: Monthly Sales & Tax

    I have this contribution working for the most part (v 1.55), but the taxable sales column is always at 0. Has anybody been able to solve this problem that a number of users (hcho10, Chris, BigRed) reported back in Aug 2003?
  2. barne214

    Free Shipping

    Why would any online shop include taxes in determining if an order has reached free shipping? Free shipping on orders over XX.XX XX.XX has to be the subtotal of the product being ordered - not a number that includes taxes being paid to a govt... This is a major issue with OSC IMHO - is this a bug?
  3. barne214

    XSELL Mod

    I'm trying to add a stock status to the output of the xsell mod. I assume I'd have to make the changes to /catalog/includes/modules/xsell_products.php. Can anybody help point me in the right direction? Thanks - Jim. <?php /* $Id: xsell_products.php, v1 2002/09/11 osCommerce, Open Source E-Commerce Solutions <http://www.oscommerce.com> Copyright (c) 2002 osCommerce Released under the GNU General Public License */ if ($HTTP_GET_VARS['products_id']) { $xsell_query = tep_db_query("select distinct p.products_id, p.products_image, pd.products_name, p.products_tax_class_id, products_price from " . TABLE_PRODUCTS_XSELL . " xp, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where xp.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_status = '1' order by xp.products_id asc limit " . MAX_DISPLAY_ALSO_PURCHASED); $num_products_xsell = tep_db_num_rows($xsell_query); if ($num_products_xsell >= MIN_DISPLAY_XSELL) { ?> <!-- xsell_products //--> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => TEXT_XSELL_PRODUCTS); new contentBoxHeading($info_box_contents); $row = 0; $col = 0; $info_box_contents = array(); while ($xsell = tep_db_fetch_array($xsell_query)) { $xsell['specials_new_products_price'] = tep_get_products_special_price($xsell['products_id']); if ($xsell['specials_new_products_price']) { $xsell_price = '<s>' . $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</s><br>'; $xsell_price .= '<span class="productSpecialPrice">' . $currencies->display_price($xsell['specials_new_products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</span>'; } else { $xsell_price = $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_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=' . $xsell['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $xsell['products_image'], $xsell['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . '">' . $xsell['products_name'] .'</a><br>' . $xsell_price. '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $xsell['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $xsell['products_name'] . TEXT_NOW) .'</a>'); $col ++; if ($col > 2) { $col = 0; $row ++; } } new contentBox($info_box_contents); ?> <!-- xsell_products_eof //--> <?php } } ?>
  4. barne214

    Question for Linda: Hidden Products

    FYI - I believe the majority of the changes to admin/customers.php were from version 1.74, 2003/02/06 19:28:52 to version 1.75, 2003/03/15 14:38:38: http://cvs.sourceforge.net/cgi-bin/viewcvs...r1=1.74&r2=1.75 Sorry for not including that on the post above.
  5. Linda - I see that you recently did a full update on Hidden Products - an absolutely spectacular contribution. Quick question: Will you current piece of code cause problems with the recent changes in CVS to admin/customers.php: LINE #: 286 (approx) <?php // BOF: WebMakers.com Added: Product is Customers Approved Only ?> <tr> <td class="main"><?php echo 'Hidden Product Approval:'; ?></td> <td class="main"><?php echo tep_draw_radio_field('customers_approved', '0', $cInfo->customers_approved=='0', $cInfo->customers_approved) . ' ' . 'No' . ' ' . tep_draw_radio_field('customers_approved', '1', $cInfo->customers_approved=='1', $cInfo->customers_approved) . ' ' . 'Yes'; ?></td> </tr> <?php // EOF: WebMakers.com Added: Product is Customers Approved Only ?> In other words, does it have to be revamped to the following format (using the Date of Birth piece as an example): <?php if (ACCOUNT_DOB == 'true') { ?> <tr> <td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td> <td class="main"> <?php if ($error == true) { if ($entry_date_of_birth_error == true) { echo tep_draw_input_field('customers_dob', tep_date_short($cInfo->customers_dob), 'maxlength="10"') . ' ' . ENTRY_DATE_OF_BIRTH_ERROR; } else { echo $cInfo->customers_dob . tep_draw_hidden_field('customers_dob'); } } else { echo tep_draw_input_field('customers_dob', tep_date_short($cInfo->customers_dob), 'maxlength="10"', true); } ?></td> </tr> <?php } ?> Thanks again for your amazing contributions! Jim
  6. barne214

    Family Products 1.1

    care to share with others exactly what code is missing? As it stands, replying "there are some instructions missing from the install.doc file" isn't too helpful to anybody else with the same issue you're having.
×