Jump to content

donny84

Members
  • Content count

    46
  • Joined

  • Last visited

  • Days Won

    1

donny84 last won the day on May 7 2013

donny84 had the most liked content!

Profile Information

  • Real Name
    Donovan
  1. donny84

    ### POINTS AND REWARDS MODULE V1.00 ###

    anyone know how to get this module to work with this payment module? cardstream_form.php <?php class cardstream_form { var $code, $title, $description, $enabled; // class constructor function cardstream_form() { global $order; $this->code = 'cardstream_form'; $this->version = "Cardstream"; // Perform error checking of module's configuration //////////////////////////////////////// $critical_config_problem = false; $this->form_action_url = "https://gateway.cardstream.com/hosted/"; $cardstream_form_config_messages = ''; $cardstream_form_config_messages .= '<fieldset style="background: #d0d0d0; margin-bottom: 1.5em"><legend style="font-size: 1.2em; font-weight: bold">Module Version Information</legend>'; $cardstream_form_config_messages .= '<p>File Version: ' . $this->version; $this->description = ''; $this->title = "Credit or Debit Card"; $this->enabled = ((MODULE_PAYMENT_CARDSTREAM_FORM_STATUS == 'True') ? true : false); $this->sort_order = MODULE_PAYMENT_CARDSTREAM_FORM_SORT_ORDER; if ((int) MODULE_PAYMENT_CARDSTREAM_FORM_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_CARDSTREAM_FORM_ORDER_STATUS_ID; } if (is_object($order)) { $this->update_status(); } } function update_status() { global $order; if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_CARDSTREAM_FORM_ZONE > 0) ) { $check_flag = false; $check = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_CARDSTREAM_FORM_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id"); while (!$check->EOF) { if ($check->fields['zone_id'] < 1) { $check_flag = true; break; } elseif ($check->fields['zone_id'] == $order->billing['zone_id']) { $check_flag = true; break; } $check->MoveNext(); } if ($check_flag == false) { $this->enabled = false; } } } function javascript_validation() { return false; } function selection() { return array('id' => $this->code, 'module' => $this->title); } function pre_confirmation_check() { return false; } function confirmation() { return false; } function process_button() { global $order, $currencies, $currency, $customer_id, $cart, $products, $contents; $amount = round($order->info['total']*100); $transU = md5(mktime()); $retURL = tep_href_link(FILENAME_CHECKOUT_PROCESS, tep_session_name() . '=' . tep_session_id(), 'SSL', false); $process_button_string = ''; $fields = array( 'transactionUnique' => $transU, 'amount' => $amount, 'merchantID' => MODULE_PAYMENT_CARDSTREAM_FORM_MERCHANT_ID, 'countryCode' => MODULE_PAYMENT_CARDSTREAM_FORM_COUNTRY_ID, 'currencyCode' => MODULE_PAYMENT_CARDSTREAM_FORM_CURRENCY_ID, 'redirectURL' => $retURL, 'customerName' => $order->customer['firstname'].' '.$order->customer['lastname'], 'customerAddress' => $order->customer['street_address']."\n".$order->customer['city']."\n".$order->customer['state'], 'customerPostcode' => $order->customer['postcode'], 'customerPhone' => $order->customer['telephone'], 'customerEmail' => $order->customer['email_address'] ); ksort($fields); $fields['signature'] = hash('SHA512',http_build_query($fields, '', '&').MODULE_PAYMENT_CARDSTREAM_FORM_PRE_SHARED_KEY).'|'.implode(',',array_keys($fields)); foreach($fields as $k => $v){ $process_button_string .= tep_draw_hidden_field($k, $v); } return $process_button_string; } function after_order_create($zf_order_id) { global $order, $currencies, $currency, $customer_id, $cart, $products, $contents; // Save response from cardstream in the database $cardstream_form_response_array = array( 'transid' => $_POST['transactionUnique'], 'zen_order_id' => $zf_order_id, 'received' => $_POST['amountReceived'], ); zen_db_perform("cardstream_form", $cardstream_form_response_array); } function get_error(){ return array('title' => "Payment Error", 'error' => "There has been an error with your payment. Please try again."); } function admin_notification($zf_order_id) { $sql = " SELECT * FROM cardstream_form WHERE zen_order_id = '" . $zf_order_id . "'"; $cardstream_form_transaction_info = tep_db_query($sql); require(DIR_FS_CATALOG. DIR_WS_MODULES . 'payment/cardstream_form/cardstream_form_admin_notification.php'); return $output; } function before_process() { global $messageStack,$order,$code; $amount = round($order->info['total']*100); if (($_POST["responseCode"] != "0") || ($_POST["amountReceived"] != $amount)) { //$errorcode = "Payment Failed. Please try again."; tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code . (tep_not_null($error) ? '&error=' . $error : ''), 'SSL')); } } function after_process() { return false; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_CARDSTREAM_FORM_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { // General Config Options $background_colour = '#d0d0d0'; tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('</b><fieldset style=\"background: " . $background_colour . "; margin-bottom: 1.5em;\"><legend style=\"font-size: 1.4em; font-weight: bold\">General Config</legend><b>Enable Cardstream Module', 'MODULE_PAYMENT_CARDSTREAM_FORM_STATUS', 'True', 'Do you want to accept Cardstream payments?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant ID', 'MODULE_PAYMENT_CARDSTREAM_FORM_MERCHANT_ID', '', '', '2', '1', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant Signature Key', 'MODULE_PAYMENT_CARDSTREAM_FORM_PRE_SHARED_KEY', '', '', '2', '1', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Front End Name', 'MODULE_PAYMENT_CARDSTREAM_FORM_CATALOG_TEXT_TITLE', '', '', '3', '1', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Currency ID', 'MODULE_PAYMENT_CARDSTREAM_FORM_CURRENCY_ID', '', '', '4', '1', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Country ID', 'MODULE_PAYMENT_CARDSTREAM_FORM_COUNTRY_ID', '', '', '5', '1', now())"); $background_colour = '#eee'; } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array( 'MODULE_PAYMENT_CARDSTREAM_FORM_MERCHANT_ID', 'MODULE_PAYMENT_CARDSTREAM_FORM_CURRENCY_ID', 'MODULE_PAYMENT_CARDSTREAM_FORM_PRE_SHARED_KEY', 'MODULE_PAYMENT_CARDSTREAM_FORM_CATALOG_TEXT_TITLE', 'MODULE_PAYMENT_CARDSTREAM_FORM_COUNTRY_ID', 'MODULE_PAYMENT_CARDSTREAM_FORM_STATUS' ); } } ?>
  2. donny84

    Who's Online Enhancement 1.4

    I loved this addon, but how do I get it to work with OsCommerce V2.3.3 can someone PLEASE update it, it was such an awesome addon
  3. donny84

    Review Nickname?

    Hey, I have seen various review posts but none which I am looking for... I run an adult toy store so most people want to remain anonymous when leaving a review. I would ideally like an extra input field when a user registers that asks for a "nickname" which would then be saved in the database and be used for product reviews. Or otherwise a text box on the review page where they can enter a custom username. I hope this makes sense and really hope someone can help me out here, I am useless when it comes to coding php :-( Thanks in advance! :)
  4. donny84

    Cross Sell for 2.3.1 (X-Sell)

    I see what you are saying, but I want it more so they see a product they weren't necessarily looking for, I sell adult toys and its a good way to promote other products
  5. donny84

    Cross Sell for 2.3.1 (X-Sell)

    Just wondered if there was a way for it to select random products to show in the "we also recommend" box? I have over 4000 products so it would take weeks to go through and do it
  6. OH wow thank you, im so blind sometimes! THANK YOU THANK YOU THANK YOU!!
  7. My site has a mobile site addon so when viewing it on tablets or mobile phones it shows a mobile site, its an awesome addon! http://addons.oscommerce.com/info/8629/ The problem I have now is that I want to use a discount code/coupon addon http://addons.oscommerce.com/info/7700 it works perfectly on my normal full site but doesnt show on the mobile site, I know im asking a heck of a lot but my php skills are all very very basic. Could someone explain how to get the coupon addon to work on the mobile site also? I have tried myself but it just throws up errors :( Please can someone help, I would be happy to buy you a few "beers" if you can help me out... Thank you so much :-)
  8. donny84

    ULTIMATE Seo Urls 5 - by FWR Media

    This is my /includes/modules/new_products.php file... <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) { $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } else { $new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } $num_new_products = tep_db_num_rows($new_products_query); if ($num_new_products > 0) { $counter = 0; $col = 0; $new_prods_content = '<table border="0" width="100%" cellspacing="0" cellpadding="2">'; while ($new_products = tep_db_fetch_array($new_products_query)) { $counter++; if ($col === 0) { $new_prods_content .= '<tr>'; } $new_prods_content .= '<td width="33%" align="center" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br />' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</td>'; $col ++; if (($col > 2) || ($counter == $num_new_products)) { $new_prods_content .= '</tr>'; $col = 0; } } $new_prods_content .= '</table>'; ?> <h2><?php echo sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')); ?></h2> <div class="contentText"> <?php echo $new_prods_content; ?> </div> <?php } ?>
  9. donny84

    ULTIMATE Seo Urls 5 - by FWR Media

    Surely there is a missing file in \catalog\includes\modules\ultimate_seo_urls5\page_modules\ Shouldn't there be a products_new.php file?
  10. donny84

    ULTIMATE Seo Urls 5 - by FWR Media

    Hmmmmm it seems to be doing the blank links (just bounces back to home page) again on 'Whats New' page and index page :-( any ideas what is causing this...?
  11. donny84

    ULTIMATE Seo Urls 5 - by FWR Media

    Fixed, was my bad nothing to do with this addon... *Face Palm*
  12. donny84

    ULTIMATE Seo Urls 5 - by FWR Media

    I have seen this asked before in this thread but couldn't find the answer... Basically the addon works perfectly except on the homepage... If I click on one of the "New Products for May" which are listed on the home page it just bounces me back to the home page... I am using osc 2.3 with the latest SEO URL addon... Please can someone help this is really bugging me...
  13. donny84

    Support Thread for Price Match

    I hope someone can help. I have a templated version of oscommerce and cant seem to get this to work. Can someone please look at my product_info.php file and let me know how to edit it. Thanks a million! <?php /* $Id: product_info.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); ?> <!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; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script type="text/javascript" src="iepngfix_tilebg.js"></script> <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> <!--[if IE]> <script type="text/javascript" src="ie_png.js"></script> <script type="text/javascript"> ie_png.fix('.png'); </script> <![endif]--> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150') } //--></script> </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_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?> <?php if ($product_check['total'] < 1) { ?> <?php echo tep_draw_top();?> <?php echo tep_draw_title_top();?> <?php echo TEXT_PRODUCT_NOT_FOUND; ?> <?php echo tep_draw_title_bottom();?> <?php echo tep_draw1_top();?> <?php echo tep_draw_infoBox2_top();?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr><td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td></tr> </table> <?php echo tep_draw_infoBox2_bottom();?> <?php echo tep_draw1_bottom();?> <?php echo tep_draw_bottom();?> <?php } else { $product_info_query = 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_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price2 = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price2 = '<span class="productSpecialPrice">'.$currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])).'</span>'; } if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = '<span class="productSpecialPrice">'.$currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])).'</span>'; } if (tep_not_null($product_info['products_model'])) { $products_name = $product_info['products_name'] . '<br> <span class="smallText">[' . $product_info['products_model'] . ']</span>'; } else { $products_name = $product_info['products_name']; } ?> <?php echo tep_draw_top();?> <?php echo tep_draw_title_top();?> <div class="left_part"><?php echo $breadcrumb->trail(' » ')?> » <?php echo $products_name; ?></div><div class="right_part"><?php echo $products_price2; ?></div> <?php echo tep_draw_title_bottom();?> <?php echo tep_draw1_top();?> <?php /* echo tep_draw2_top(); */?> <?php /* echo tep_pixel_trans(); */?> <?php if (tep_not_null($product_info['products_image'])) { ?> <div class="main prod_info" style="width:<?php echo (SMALL_IMAGE_WIDTH +23);?>px;"> <?php echo tep_draw_prod_pic_top();?><script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, '') . '</a>'; ?>'); //--></script><noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, '') . '</a>'; ?></noscript><?php echo tep_draw_prod_pic_bottom();?> <script language="javascript"><!-- document.write('<?php echo '<a class="enlarge" href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript><?php echo '<a class="enlarge" href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?></noscript></div> <div class="main"><div class="desc"><?php echo stripslashes($product_info['products_description']); ?></div><br> <br><div><?php echo $products_price?></div></div><br> <div style="clear:both;"></div> <?php } ?> <?php /* echo tep_draw2_bottom(); */?> <div class="prod_line_x padd_gg"><?php echo tep_draw_separator('spacer.gif', '1', '1'); ?></div> <?php echo tep_draw2_top(); ?> <?php $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> <table border="0" cellspacing="4" cellpadding="2"> <tr> <td class="main" colspan="2"><strong class="strong"><?php echo TEXT_PRODUCT_OPTIONS; ?></strong></td> </tr> <?php $products_options_name_query = 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='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name"); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { $products_options_array = array(); $products_options_query = 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 = '" . (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 . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) { $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']]; } else { $selected_attribute = false; } ?> <tr> <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td> </tr> <?php } ?> </table> <?php } ?> <?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) { ?> <table cellpadding="0" cellspacing="4" border="0"> <tr> <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> </table> <?php } if (tep_not_null($product_info['products_url'])) { ?> <table cellpadding="0" cellspacing="4" border="0"> <tr> <td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td> </tr> </table> <?php echo tep_pixel_trans();?> <?php } if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <?php echo tep_pixel_trans();?> <table cellpadding="0" cellspacing="4" border="0"> <tr> <td class="main"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> </tr> </table> <?php } else { ?> <?php echo tep_pixel_trans();?> <table cellpadding="0" cellspacing="4" border="0"> <tr> <td class="main"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> </table> <?php } ?> <?php echo tep_draw2_bottom(); ?> <?php echo tep_pixel_trans();?> <div class="prod_line_x padd_gg"><?php echo tep_draw_separator('spacer.gif', '1', '1'); ?></div> <?php echo tep_draw2_top(); ?> <?php echo tep_pixel_trans();?> <?php echo tep_pixel_trans();?> <?php /* echo tep_draw_infoBox2_top(); */ ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"><tr> <td class="main button_marg"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td> <td class="main button_marg" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_add_to_cart1.gif', IMAGE_BUTTON_IN_CART); ?></td> </tr> </table> <?php /* echo tep_draw_infoBox2_bottom(); */ ?> <?php echo tep_draw2_bottom(); ?> <?php echo tep_draw1_bottom();?> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?> <?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'); ?>
  14. donny84

    Sort Products By Dropdown

    hello :) I really like the look of this contribution. I have a small well probably big problem, My oscommerce is using a template i purchased from templatemonster.com so the laout etc is very different. I was wondering if the makers of this addon would be intersted in installing this addon for me, I am pretty sure it will need some custom coding done. Obviously I will pay. My site is http://www.nawtytoys.co.uk/Shop I have tried to install it myself but it screws up the layout and also it doesnt sort the products correctly. So PLEASE can you contact me if you can do this. Regards Donny
  15. donny84

    Who's Online Enhancement 1.4

    Hello peeps. I have this conrib installed and it works great, just a few problems, it does not pick up yahoo, live, and msn bots... Here are the details of one of the msn bots that comes round often, it also has a session which I thought bots didnt... 00:00:00 Guest msnbot-65-55-208-170.search.msn.com 11:30:49 pm 11:30:49 pm Aromas and Poppers (Category) Yes Not Found Name: Guest ID: 0 IP Address: 65.55.208.170 User Agent: msnbot/1.1 (+http://search.msn.com/msnbot.htm) osCsid: a271gfmfi7sn5i914je2tcgqu1 another one. 00:01:47 Guest msnbot-65-55-208-169.search.msn.com 11:27:43 pm 11:29:30 pm /catalog/login.php Yes Not Found Name: Guest ID: 0 IP Address: 65.55.208.169 User Agent: msnbot/1.1 (+http://search.msn.com/msnbot.htm) osCsid: hamfp9qusq5uj7a200sv5coii4 Also often once the bot has cehcked a page it then sends another bot to look at the page it just checked, (via its search engine) I dont know how to even think about modding the spiders.txt file so would appreciate it if someone could update it. Thanks a million :blush:
×