Jump to content

Ali_W

Members
  • Content count

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    Alistair
  1. Hi Again, I have sorted it I removed this part of the code in orders.php: AND o.products_options_name= leaving the following code if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) { for ($j = 0, $k = sizeof($order->products[$i]['attributes']); $j < $k; $j++) { // Customization #31101 for file_upload view begin $option = $order->products[$i]['attributes'][$j]['option']; ## Build a query to check if this option is of 'File' Type $file_check_sql = " select * from ".TABLE_PRODUCTS_OPTIONS ." o, ".TABLE_PRODUCTS_OPTIONS_TYPES." ot WHERE o.products_options_type = ot.products_options_types_id AND products_options_types_name='File".$option."'"; $file_check_sql_query = tep_db_query($file_check_sql); $isFile = tep_db_num_rows($file_check_sql_query); if($isFile == 1 && @file_exists(DIR_FS_CATALOG_IMAGES_UPLOADS.$order->products[$i]['attributes'][$j]['value'])){ $link = "<a href=". DIR_WS_CATALOG_IMAGES_UPLOADS.$order->products[$i]['attributes'][$j]['value']." target='_blank'><i><<b>Click Here to View File</b>></i></a>"; }else { $link = ""; } echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value']; if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')'; echo ' '. $link.' </i></small></nobr>'; // Customization #31101 end } } It now works fine. Ali_W Note I also made the link stand out a bit better using <b> tag
  2. Hi, I have successfully installed the upload contribution - works great!! Thanks Matt However I cannot get the to work - I have also tried the bug fix by Claus Christensen on 26th Aug 2004 Any Ideas?? Thanks in advance Ali
×