Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

scouti

Archived
  • Posts

    23
  • Joined

  • Last visited

Everything posted by scouti

  1. Hello, can one insert this code? All this in German indicates? How can one adapt - shipdate? <?php // Beginn Datum und Wochentag $name_tag[0] = "Sonntag"; $name_tag[1] = "Montag"; $name_tag[2] = "Dienstag"; $name_tag[3] = "Mittwoch"; $name_tag[4] = "Donnerstag"; $name_tag[5] = "Freitag"; $name_tag[6] = "Samstag"; $name_monat[1] = "Januar"; $name_monat[2] = "Februar"; $name_monat[3] = "März"; $name_monat[4] = "April"; $name_monat[5] = "Mai"; $name_monat[6] = "Juni"; $name_monat[7] = "Juli"; $name_monat[8] = "August"; $name_monat[9] = "September"; $name_monat[10] = "Oktober"; $name_monat[11] = "November"; $name_monat[12] = "Dezember"; $num_tag = date("w"); $num_monat = date("m"); $test = substr($num_monat,0,1); if ($test == "0") { $num = substr($num_monat,1,1); $num_monat = $num; } $jahr = date("Y"); $tag_zahl = date("d"); $tag = $name_tag[$num_tag]; $monat = $name_monat[$num_monat]; // Ende Datum und Wochentag ?>
  2. can none help? Gladly this problem for all would solve on German.
  3. I would like the date on German. Is it to be worked possible with this code? Use then the variable according to. only what? // Translate day names english/german $day = substr($this->date, 0, strpos($this->date, " ")); $day_english = $day; switch($day) { case "Monday" : $day_german = "Montag"; break; case "Tuesday" : $day_german = "Dienstag"; break; case "Wednesday" : $day_german = "Mittwoch"; break; case "Thursday" : $day_german = "Donnerstag"; break; case "Friday" : $day_german = "Freitag"; break; case "Saturday" : $day_german = "Samstag"; break; case "Sunday" : $day_german = "Sonntag"; break; } $date = str_replace($day_english, $day_german . ", den", $this->date);
  4. hello, with me this error comes. who can help. Fatal error: Call to undefined function tep_get_parent_categories() in /../www/.../html/catalog/includes/seo_cache.php on line 175
  5. hello, with me this error comes. who can help. Fatal error: Call to undefined function tep_get_parent_categories() in /../www/.../html/catalog/includes/seo_cache.php on line 175
  6. can none help? popup window is too small would like it more largely to have. if I width: 450px; height: 500px inserts appears only white everything? <div style="OVERFLOW: auto; position: absolute; border: solid 2; background-color: White; z-index: auto;" id=oFrame></div>
  7. I would like to make popup the window larger. I would like to scroll no. please help
  8. Does not want to succeed simply :( I always receive this line java script:popupPricematch('pricematch.php?code1=&product1=&price1=0.00EUR') No product name, no product price, why!?
  9. Hello Tross, I do not have changed unfortunately functioned. Does it have still which with the language to do? German code ? English code 1 ?
  10. How does the LINK have to look thereby I on product_info.php comes? 'action=add_product' ??? 'action=product_id= ???????
  11. Article and price are not indicated in the POP UP ? <_<
  12. Hello, I wished it above in such a way now after many hours created the Design to make as - puuuh. How do I know now still the left button (button_buy_now.gif) on the product info. page Link ? Are these lines ?
  13. Hello Jim, I get it simply not. I would like to have it gladly in such a way
  14. Hello Jim, wrongly understood sorry. I do not need options and product of attributes these would like I to remove. button_in_cart.gif - Link up… product_info.php? products_id=123456
  15. Hello Jim I get simply the options of the product not away. I need button (button_in_cart.gif) and Price - no options. Which lines are completely exact that?
  16. Suuupi Jim :D Functioned perfectly thank you. I would like to still make a change. Side recently_viewed.php - I would not like a 3 column only 2nd price, option and Manufactur No.
  17. my product_info.php <?php /* $Id: product_info.php,v 1.87 2002/08/24 10:36:31 project3000 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); // begin recently_viewed // Creates/updates a session variable -- a string of products IDs separated by commas // IDs are in order newest -> oldest $recently_viewed_string = ''; if ($product_check['total'] > 0) { //We don't want to add products that don't exist/are not available if (!tep_session_is_registered('recently_viewed')) { tep_session_register('recently_viewed'); } else { $recently_viewed_string = $_SESSION['recently_viewed']; } // Deal with sessions created by the previous version if (substr_count ($recently_viewed_string, ';') > 0) { $_SESSION['recently_viewed'] = ''; $recently_viewed_string = ''; } // We only want a product to display once, so check that the product is not already in the session variable $products_id = (int) $_GET['products_id']; if ($recently_viewed_string == '') { // No other products $recently_viewed_string = (string) $products_id; // So set the variable to the current products ID } else { $recently_viewed_array = explode (',', $recently_viewed_string); if (!in_array ($products_id, $recently_viewed_array) ) { $recently_viewed_string = $products_id . ',' . $recently_viewed_string; //Add the products ID to the beginning of the variable } } $_SESSION['recently_viewed'] = $recently_viewed_string; } if ($product_check['total'] // end recently_viewed ?> <!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; ?>"> <?php if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <title><?php echo TITLE ?></title> <?php } ?><h6 style="display:none"> base href="<?php echo (ereg('^https', $SCRIPT_URI) ? HTTPS_SERVER :HTTP_SERVER) . DIR_WS_CATALOG; ?>"</h6> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><form name="cart_quantity" method="post" action="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product', 'NONSSL'); ?>"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <?php $product_info = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.language_id = '" . $languages_id . "'"); if (!tep_db_num_rows($product_info)) { // product not found in database ?> <tr> <td class="main"><br><?php echo TEXT_PRODUCT_NOT_FOUND; ?></td> </tr> <tr> <td align="right"><br><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td> </tr> <?php } else { tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and language_id = '" . $languages_id . "'"); $product_info_values = tep_db_fetch_array($product_info); if ($new_price = tep_get_products_special_price($product_info_values['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info_values['products_price'], tep_get_tax_rate($product_info_values['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info_values['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info_values['products_price'], tep_get_tax_rate($product_info_values['products_tax_class_id'])); } $products_attributes = tep_db_query("select popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "'"); if (tep_db_num_rows($products_attributes)) { $products_attributes = '1'; } else { $products_attributes = '0'; } ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if (PRODUCT_LIST_MODEL) { echo ' <tr>' . "\n" . ' <td colspan="2" class="smallText">' . $product_info_values['products_model'] . '</td>' . "\n" . ' </tr>' . "\n"; } ?> <tr height="40"> <td class="pageHeading"><?php echo $product_info_values['products_name']; ?></td> <td align="right" class="pageHeading"> <?php echo $products_price; ?> <br><font size="1" face="Verdana" color="#808080">incl. MwSt. <br><font size="1" face="Verdana" color="#808080"><a href="http://www.vereinsstore.com/catalog/shipping.php">zzgl. Versandkosten</a></font></td> </tr><br><br> </font></td> </tr> </table></td> </tr> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><table border="0" cellspacing="0" cellpadding="2" align="left"> <?php if ($product_info_values['products_image'] != '') { ?> <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($product_info_values['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info_values['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> </tr> <?php } ?> </table><p><?php echo stripslashes($product_info_values['products_description']); ?></p> <?php // Start www.TheWebSite.de - Aenderung Staffelpreise if (ST_STAFFELPREIS > 0){ $staffelpreis_query = tep_db_query("select quantity, unitprice from " . TABLE_PRICES . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' order by quantity "); $s=1;?> <table border="0" cellpading="0" cellspacing"0"> <td class="main"><b><?php echo TEXT_PRODUCT_SP; ?></b></td></table> <table border="0" cellpading="0" cellspacing"0"> <?php for ($i=0; $i<ST_STAFFELPREIS; $i++) { $staffelpreis = tep_db_fetch_array($staffelpreis_query); if ($staffelpreis['quantity']> '0'){ echo '<td class="main">'; echo $staffelpreis['quantity']; echo ' = '; // Berechnung Nettopreis $in_price=$staffelpreis['unitprice']; if (IN_PRICE_IS_BRUTTO==1){ $tax_query = tep_db_query("select tax_rate from " . TABLE_TAX_RATES . " where tax_class_id = '" . $pInfo->products_tax_class_id . "' "); $tax = tep_db_fetch_array($tax_query); $in_price= ($in_price*($tax[tax_rate]+100)/100); } // END Berechnung Nettopreis echo $currencies->display_price($in_price,tep_get_tax_rate($product_info_values['products_tax_class_id'])); echo ' | </td>'; } $s++; } echo '</table>'; } // END www.TheWeSite.de if ($products_attributes == '1') { //CLR 020605 update query to pull option type $products_options_name = tep_db_query("select distinct popt.products_options_id, popt.products_options_name, popt.products_options_type, popt.products_options_length, popt.products_options_comment from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "' order by popt.products_options_id"); //$products_options_name = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "'"); $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix, pa.products_attributes_id from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'" . " order by pa.options_values_price, pa.products_attributes_id"); echo '<b>' . TEXT_PRODUCT_OPTIONS . '</b><br>'; echo '<table border="0" cellpading="0" cellspacing"0">'; while ($products_options_name_values = tep_db_fetch_array($products_options_name)) { //CLR 020605 Add if statement to check product option type. If add more option types, then change this to a case statement. if ($products_options_name_values['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT) { //CLR 020708 add query to pull attribute price and price_prefix $products_attribs_query = tep_db_query("select distinct patrib.options_values_price, patrib.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $HTTP_GET_VARS['products_id'] . "' and patrib.options_id = '" . $products_options_name_values['products_options_id'] . "'"); $products_attribs_array = tep_db_fetch_array($products_attribs_query); echo '<tr><td class="main">' . $products_options_name_values['products_options_name'] . ': </td><td class="main"><input type="text" name ="id[' . TEXT_PREFIX . $products_options_name_values['products_options_id'] . ']" size="' . $products_options_name_values['products_options_length'] .'" maxlength="' . $products_options_name_values['products_options_length'] . '" value="' . $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name_values['products_options_id']] .'"> ' . $products_options_name_values['products_options_comment']; if ($products_attribs_array['options_values_price'] != '0') { echo '(' . $products_attribs_array['price_prefix'] . $currencies->display_price($products_attribs_array['options_values_price'], $product_info_values['products_tax_class_id']) .') '; } echo '</td></tr>'; } else { $selected = 0; $products_options_array = array(); echo '<tr><td class="main">' . $products_options_name_values['products_options_name'] . ':</td><td class="main">' . "\n"; //Reihenfolge $products_options = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . $products_options_name_values['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "' ORDER BY options_values_price ASC"); //Ende Reihenfolge while ($products_options_values = tep_db_fetch_array($products_options)) { $products_options_array[] = array('id' => $products_options_values['products_options_values_id'], 'text' => $products_options_values['products_options_values_name']); if ($products_options_values['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options_values['price_prefix'] . $currencies->display_price($products_options_values['options_values_price'], tep_get_tax_rate($product_info_values['products_tax_class_id'])) .') '; } } echo tep_draw_pull_down_menu('id[' . $products_options_name_values['products_options_id'] . ']', $products_options_array, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name_values['products_options_id']]); echo $products_options_name_values['products_options_comment'] . '</td></tr>'; } // orginal?? echo tep_draw_pull_down_menu('id[' . $products_options_name_values['products_options_id'] . ']', $products_options_array, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name_values['products_options_id']]); //orginal?? echo '</td></tr>'; } echo '</table>'; } ?> </td> </tr> <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); if ($reviews['count'] > 0) { ?> <tr> <td class="main"><br><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews_values['count']; ?></td> </tr> <?php } if ($product_info_values['products_url']) { ?> <tr> <td class="main"><br><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info_values['products_url']), 'NONSSL', true, false)); ?></td> </tr> <?php } if ($product_info_values['products_date_available'] > date('Y-m-d H:i:s')) { ?> <tr> <td align="center" class="smallText"><br><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info_values['products_date_available'])); ?></td> </tr> <?php } else { ?> <tr> <td align="center" class="smallText"><br><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info_values['products_date_added'])); ?></td> </tr> <?php } ?> <tr> <td><br><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><a href="<?php echo tep_href_link(FILENAME_PRODUCT_REVIEWS, substr(tep_get_all_get_params(), 0, -1)); ?>"><br><br><br><?php echo tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS); ?></a></td> <td class="main" align="right"><?php echo '<b>Menge:</b> <input type="text" name="quantity" value="1" maxlength="5" size="5"><br><br>' . tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> </tr> </table></td> </tr> <tr> <td><br> <?php if ( (USE_CACHE == 'true') && !SID) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?> </td> </tr> <?php // Begin recently_viewed if (RECENTLY_VIEWED_BOTTOM_BOX == 'True') { include_once (DIR_WS_MODULES . FILENAME_RECENTLY_VIEWED); } // End recently_viewed ?> </table></form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- 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 //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Check your settings in your Admin > Configuration > Recently Viewed > Show Column box and Show bottom box. All is TRUE
  18. okay my English is not perfectly I tries it again. This function installed. 1.I have only a Link "Recently Viewed Products" - right above 2.On Link I receive text to Click There aren't any recently-viewed products to display for you right now. This page keeps track of the most recent products you've looked at. You can come back to this list to find items you're interested in after you've browsed through our product selection. 3. Where are the products which I saw? Is missing somewhat?
  19. Hello, it does not have inserted unfortunately goes it. Is missing somewhat? Click
×
×
  • Create New...