Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

capsulas

Archived
  • Posts

    113
  • Joined

  • Last visited

About capsulas

  • Birthday 12/03/1965

Profile Information

  • Real Name
    Ilea
  • Location
    Mexico City
  • Website

capsulas's Achievements

  1. Solution: In readme I found the solution... thanks
  2. Hi everyone !! About the Submit Button... how can I use a customize button... in that case in Spanish... or other icon Thanks in advance
  3. Alo everyone ! One question ! If I modified with different contributions the vanilla index.php then How Can I do ? I saw the new index.php have more lines, less lines, new lines, cut code, ... Thanks in advance !
  4. Hello Everybody ! I have two questions: 1. How can I sort the list showing by the contribution 2. How can avoid duplicate files:
  5. Friends I have the following issue with the contribution: I suppose: - I have to create a table? where? which fields? Anybody help me !!! Thanks
  6. Hola Amigos I need your advice, How can I actitave Free Shipping and Payment Modules. My problem is: When total is 0 and weight is 0 only Free Payment shows, but It doesnt works What can I do? Thanks
  7. I have some idea about it, but I need your advice... We need to include into the file AllManufacturers.PHP: // Set number of columns in listing define ('NR_COLUMNS', 1); //Create Table for ($j=0; $j<NR_COLUMNS; $j++) {echo " <td class=main valign=\"top\">\n"; for ($k=$j; $k<sizeof($products_array); $k+=NR_COLUMNS) The idea is not completly but its a good started.
  8. Hello everyone ! I added this contribution and find the following error. I really appreciate any advice... thanks. Fatal error: Failed opening required 'includes/classes/currencies.php' (include_path='./:/usr/local/lib/php') in /home/mysite/mysite-www/admin/stats_unsold_carts.php on line 38
  9. Contribution All Manufacturers Page
  10. Thanks, Its a great contributions One question: How Can I include a set number of columns in listing? (2 or 3 for example) Thanks
  11. Linda ! I?m using snapshot: Oct-23-2002 4:08 :shock: Druide :oops: My Hostes provider offer this version in Spanish, When I payed for the host I didn?t know what was the last version. Actually I added more or less 35 contributions (63 files was changed), I?m not a web designer, I?m a beliver now in the power of OsCommunity. Let me think what is my next step ! :?
  12. Linda ! It?s a funny puzzle, I added the following code (from 2.2 MS1) in database.php. Its working OK, what do you think? :?: function tep_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link') { reset($data); if ($action == 'insert') { $query = 'insert into ' . $table . ' ('; while (list($columns, ) = each($data)) { $query .= $columns . ', '; } $query = substr($query, 0, -2) . ') values ('; reset($data); while (list(, $value) = each($data)) { switch ((string)$value) { case 'now()': $query .= 'now(), '; break; case 'null': $query .= 'null, '; break; default: $query .= ''' . tep_db_input($value) . '', '; break; } } $query = substr($query, 0, -2) . ')'; } elseif ($action == 'update') { $query = 'update ' . $table . ' set '; while (list($columns, $value) = each($data)) { switch ((string)$value) { case 'now()': $query .= $columns . ' = now(), '; break; case 'null': $query .= $columns .= ' = null, '; break; default: $query .= $columns . ' = '' . tep_db_input($value) . '', '; break; } } $query = substr($query, 0, -2) . ' where ' . $parameters; } return tep_db_query($query, $link); }
  13. Hello Linda ! Browsing the code, not found. Let me know it is easy to include :?: something like that: function tep_db_perform($db_query) { return mysql_perfomr($db_query); } File database.php <?php /* $Id: database.php,v 1.13 2002/04/06 15:58:28 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $$link = mysql_pconnect($server, $username, $password); } else { $$link = mysql_connect($server, $username, $password); } if ($$link) mysql_select_db($database); return $$link; } function tep_db_close($link = 'db_link') { global $$link; return mysql_close($$link); } function tep_db_error($query, $errno, $error) { die('<font color="#000000"><b>' . $errno . ' - ' . $error . '<br><br>' . $query . '<br><br><small><font color="#ff0000">[TEP STOP]</font></small><br><br></b></font>'); } function tep_db_query($query, $link = 'db_link') { global $$link; if (STORE_DB_TRANSACTIONS == 'true') { error_log("QUERY " . $query . "n", 3, STORE_PAGE_PARSE_TIME_LOG); } $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error()); if (STORE_DB_TRANSACTIONS == 'true') { $result_error = mysql_error(); error_log("RESULT " . $result . " " . $result_error . "n", 3, STORE_PAGE_PARSE_TIME_LOG); } return $result; } function tep_db_fetch_array($db_query) { return mysql_fetch_array($db_query, MYSQL_ASSOC); } function tep_db_num_rows($db_query) { return mysql_num_rows($db_query); } function tep_db_data_seek($db_query, $row_number) { return mysql_data_seek($db_query, $row_number); } function tep_db_insert_id() { return mysql_insert_id(); } function tep_db_free_result($db_query) { return mysql_free_result($db_query); } function tep_db_fetch_fields($db_query) { return mysql_fetch_field($db_query); } function tep_db_input($string) { return addslashes($string); } ?>
  14. Hello Linda ! I?m using snapshot: Oct-23-2002 4:08, this is the reason that I?m using Downloads Controller v3.0. In fact, after the installation when I testing the funcitonallity, in the proccess of checkout the message is: Fatal error: Call to undefined function: tep_db_perform() in /.../catalogo/checkout_process.php on line 81 :?: Line 81 in checkout_process.php tep_db_perform(TABLE_ORDERS, $sql_data_array); What Can I do? Could you help me ? :) Thanks
×
×
  • Create New...