Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fallout

Archived
  • Posts

    15
  • Joined

  • Last visited

Everything posted by Fallout

  1. Sorry, i have this contribution extended/modified. This is my bestsellers file: <?php /* $Id: best_sellers.php,v 1.19 2002/06/05 20:59:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions [url=http://www.oscommerce.com]http://www.oscommerce.com[/url] Copyright ? 2001 osCommerce Released under the GNU General Public License */ ?> <?php /* <!-- best_sellers //--> */ ?> <?php if ($cPath) { $best_sellers_query = tep_db_query("select distinct p.products_id, p.products_image, pd.products_name, p.products_price, p.products_tax_class_id, p.products_ordered from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_status = '1' and p.products_ordered > 0 and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and (c.categories_id = '" . $current_category_id . "' OR c.parent_id = '" . $current_category_id . "') order by p.products_ordered DESC, pd.products_name limit " . MAX_DISPLAY_BESTSELLERS); } else { $best_sellers_query = tep_db_query("select p.products_id, p.products_image, pd.products_name, p.products_price, p.products_tax_class_id, p.products_ordered from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_ordered > 0 and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' order by p.products_ordered DESC, pd.products_name limit " . MAX_DISPLAY_BESTSELLERS); } if (tep_db_num_rows($best_sellers_query) >= MIN_DISPLAY_BESTSELLERS) { ?> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_BESTSELLERS); new infoBoxHeadingBoxen($info_box_contents, false, true); $rows = 0; $bestsellers_list = '<table border="0" width="100%" cellspacing="0" cellpadding="1">'; while ($best_sellers = tep_db_fetch_array($best_sellers_query)) { $rows++; $bestsellers_list .= '<tr><td class="infoBoxContents" valign="top">' . tep_row_number_format($rows) . '.</td><td class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']) . '">' . $best_sellers['products_name'] . '</a><b><br>' . $currencies->display_price($best_sellers['products_price'], tep_get_tax_rate($best_sellers['products_tax_class_id'] . '</b></td></tr>')); } $bestsellers_list .= '</table>'; $info_box_contents = array(); $info_box_contents[] = array('text' => $bestsellers_list); new infoBox($info_box_contents); ?> </td> </tr> <?php } ?> <?php /* <!-- best_sellers_eof //--> */ ?>
  2. Hello JanZ, the prices for "Retail" custumers ok. The discount price for groups not! There display at groups the "retail" price.
  3. Hello, I installed this nice mod and i have a problem with the bestseller contrib. The problem is the sppc contrib work in Bestsellers box. I need help with to include the sppc in the besstellers box. http://www.oscommerce.com/community/contri...eller+Box+image <?php /* $Id: best_sellers.php,v 1.19 2002/06/05 20:59:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2001 osCommerce Released under the GNU General Public License Bestsellers Images v.1 Edit by V. Meurink - [email protected] */ ?> <!-- best_sellers //--> <?php if ($cPath) { $best_sellers_query = tep_db_query("select distinct p.products_id, p.products_image, pd.products_name, p.products_ordered from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_status = '1' and p.products_ordered > 0 and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and (c.categories_id = '" . $current_category_id . "' OR c.parent_id = '" . $current_category_id . "') order by p.products_ordered DESC, pd.products_name limit " . MAX_DISPLAY_BESTSELLERS); } else { $best_sellers_query = tep_db_query("select p.products_id, p.products_image, pd.products_name, p.products_ordered from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_ordered > 0 and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' order by p.products_ordered DESC, pd.products_name limit " . MAX_DISPLAY_BESTSELLERS); } if (tep_db_num_rows($best_sellers_query) >= MIN_DISPLAY_BESTSELLERS) { ?> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_BESTSELLERS ); new infoBoxHeading($info_box_contents, false, false); $rows = 0; $info_box_contents = array(); while ($best_sellers = tep_db_fetch_array($best_sellers_query)) { $rows++; $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers["products_id"], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $best_sellers['products_image'], $best_sellers['products_name'], BESTSELLER_IMAGE_WIDTH, BESTSELLER_IMAGE_HEIGHT) . '</a></td><td>' . tep_row_number_format($rows) . '. <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id'], 'NONSSL') . '">' . $best_sellers['products_name'] . '</a>'); } new infoBox($info_box_contents); ?> </td> </tr> <?php } ?> <!-- best_sellers_eof //-->
  4. Hello, thanks for this nice Contrib. I have a problem with this. I use the Firefox or Netscape Navigator Browser. The Contrib works only with ie6? With FireFox / Netscape not work the Picture Upload and HTML Editor in categories.php. Screenshot: IE6: Netscape/FireFox: Can you help me with this Problem? Fallout
  5. Hello, i have the same Problem with the Login. In addition with this contrib found a new Bug. When the Advanced Search Header installed, then work the "Manufacturer" Box not!!!!! :'( Wo can give support? Fallout
  6. Hello, i have installed the newest Version (Guestbook for osC MS2 v2.0) of this good Contribution. I have now in the Adminarea the following Error Message when i edit a Guestbook entry. Warning: Wrong parameter count for array_merge() in /home/y/yourdomain/public_html/files/catalog/admin/guestbook.php on line 91 Warning: Variable passed to reset() is not an array or object in /home/y/yourdomain/public_html/files/catalog/admin/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /home/y/yourdomain/public_html/files/catalog/admin/includes/classes/object_info.php on line 18 Can you help me at this problem? LG Fallout
  7. Hello, can i use the column_left and the dhtlm toolbar together (simultan)? Which changes are necessary? LG Fallout
  8. Hello RavenWulf, thanks you for your help . This unfortunately doesn't help me along where this must be changed? ( if ( file_exists(DIR_WS_BOXES . $column['cfgtitle'] . '.php') ) { require(DIR_WS_BOXES . $column['cfgtitle'] . '.php'); ) In which file? LG
  9. Yes, the entry is in the Configure.php // Wish List 2.3 Start define('MAX_DISPLAY_WISHLIST_PRODUCTS', '6'); // How many wishlist items to show per page on the main wishlist.php file define('MAX_DISPLAY_WISHLIST_BOX', '4'); // How many wishlist items to display in the infobox before it changes to a counter // Wish List 2.3 End In a old Store without the InfoBox Admin works the Wishlist Contrib Perfectly. The problem lies with this entry, if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php'); The column_right.php with the InfoboxAdmin looks so: <?php /* $Id: column_right.php,v 1.15 2002/03/13 13:52:20 lango Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ $column_query = tep_db_query('select configuration_column as cfgcol, configuration_title as cfgtitle, configuration_value as cfgvalue, configuration_key as cfgkey, box_heading from ' . TABLE_THEME_CONFIGURATION . ' order by location'); while ($column = tep_db_fetch_array($column_query)) { $column['cfgtitle'] = str_replace(' ', '_', $column['cfgtitle']); $column['cfgtitle'] = str_replace("'", '', $column['cfgtitle']); if ( ($column[cfgvalue] == 'yes') && ($column[cfgcol] == 'right')) { define($column['cfgkey'],$column['box_heading']); if ( file_exists(DIR_WS_BOXES . $column['cfgtitle'] . '.php') ) { require(DIR_WS_BOXES . $column['cfgtitle'] . '.php'); } } } ?> <tr> <td class="pageHeading" height="100%" valign="top"> <?php if ( file_exists('includes/classes/thema/' . SITE_THEMA . '/images/backend.gif')) { ?> <IMG SRC="includes/classes/thema/<?php echo SITE_THEMA;?>/images/backend.gif" width="100%"> <?php } ?> </td> </tr> LG Fallout
  10. Hello, good work for the Repack, Easy to Install :) I still have the problem with the InfoBox-Admin Contrib. This error message with Guest go: 1064 - You have an error in your SQL syntax near 'order by products_name' at line 1 select * from customers_wishlist WHERE customers_id = order by products_name [TEP STOP] Logging Users ok, no failure Message. The problem seems to lie here: 8. look for this line in /catalog/includes/column_right.php: After ----- ?require(DIR_WS_BOXES . 'shopping_cart.php'); Add --- ?// Wish List 2.3 Start ?if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php'); ?// Wish List 2.3 End Is there already a solution? LG Fallout
  11. Hello, i have the same Problem with this Contrib and the InfoBox Admin Contrib. One cannot insert the code in the file coumn_right.php. require(DIR_WS_BOXES . 'shopping_cart.php'); // begin mod for Wishlist v2.2 if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php'); // end mod for Wishlist v2.2 if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); Is there already a solution? LG Fallout
  12. Hello, i have installed this good Contrib. I get the following error message now (send - ask_a_question.php). ERROR_TO_ADDRESS I use the OSC 2.2. LG Fallout
  13. Hello, could the problem be solved? I have the same Problem.
×
×
  • Create New...