Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tec

Pioneers
  • Posts

    568
  • Joined

  • Last visited

Everything posted by tec

  1. Hi there, i am working on a store, it was working just fine, now its not. It wont pass the orders to paypal, when it get to paypal it tells me... Please enter an amount greater than zero. Your shopping cart is empty. any thoughts? anyone? please, like i said, this cart is live :c(
  2. Good day, I installed a contribution today, http://www.oscommerce.com/community/contri...earch,Brian+Sim it says to run this query CREATE TABLE titles ( titles_id int NOT NULL auto_increment, titles_name varchar(32) NOT NULL, PRIMARY KEY (titles_id), KEY IDX_TITLES_NAME (titles_name) ); INSERT INTO titles VALUES (1,'Mr'); INSERT INTO titles VALUES (2,'Mrs'); INSERT INTO titles VALUES (3,'Miss'); INSERT INTO titles VALUES (4,'Ms'); INSERT INTO titles VALUES (5,'Dr'); INSERT INTO titles VALUES (6,'Prof'); INSERT INTO titles VALUES (7,'Rev'); ALTER TABLE address_book ADD entry_title_id int DEFAULT '0' NOT NULL; ALTER TABLE orders ADD customers_title varchar(32); ALTER TABLE orders ADD delivery_title varchar(32); ALTER TABLE orders ADD billing_title varchar(32); ALTER TABLE customers ADD customers_title varchar(32); UPDATE address_format SET address_format.address_format = '$title $firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country' WHERE address_format.address_format_id =1; that went smoothly, but now i get this error when it try to edit customers info 1146 - Table 'sailboats1.TABLE_TITLES' doesn't exist select titles_id, titles_name from TABLE_TITLES order by titles_id [TEP STOP] thoughts?
  3. hiya ok, i got it installed, but now, when i go to catalog/create_account.php i get this Fatal error: Cannot redeclare tep_db_connect() (previously declared in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/includes/functions/database.php:13) in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/includes/functions/database.php on line 13
  4. sorry, it wont let me edit my post in the install it says in the admin/customers find <tr> <td class="formAreaTitle"><?php echo CATEGORY_OPTIONS; ?></td> </tr> add before <?echo tep_get_extra_fields($cInfo->customers_id,$languages_id)?> should this line read <?php echo tep_get_extra_fields($cInfo->customers_id,$languages_id)?>
  5. hi there, in the install doc it has this... <?echo tep_get_extra_fields($cInfo->customers_id,$languages_id)?> should this be <?php echo tep_get_extra_fields($cInfo->customers_id,$languages_id)?>
  6. is there anyone out there that can help, seems Stephanie Schmidt and myself are having the same problem
  7. hi there, i was trying to find the contribution for paypal that showed the credit card option on the checkout_payment.php I could not find it so i found another that said to... but when i did this, and checked the page again, nothing happened. So i took out some code and such, since paypal is the only payment module that will be used on the site, and now the page looks how it should, but the paypal module is repeated twice. here is some of the code from my page, this is the section that the code is in <?php } $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if ( ($selection[$i]['id'] == $payment) || ($n == 1) ) { echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } ?> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <!-- paypal begin --> <td class="main" colspan="3" nowrap> <big><b> Credit Card <img src="images/ccards/logo_ccVisa.gif" border="0" title=" Visa " alt="Visa" align="bottom"> <img src="images/ccards/logo_ccElectron.gif" border="0" title=" Electron " alt="Electron" align="bottom"> <img src="images/ccards/logo_ccMC.gif" border="0" title=" MasterCard " alt="MasterCard" align="bottom"> <img src="images/ccards/logo_ccDelta.gif" border="0" title=" Delta " alt="Delta" align="bottom"> <img src="images/ccards/switch.gif" border="0" title=" Switch " alt="Switch"align="bottom"> <img src="images/ccards/maestro.gif" border="0" title=" Maestro " alt="Maestro"align="bottom"> <img src="images/ccards/logo_ccSolo.gif" border="0" title=" Solo " alt="Solo"align="bottom"> <img src="images/ccards/logo_ccDiscover.gif" border="0" title=" Discover " alt="Discover" align="bottom"> <img src="images/ccards/logo_ccAmex.gif" border="0" title=" American Express " > or <img src="images/banner_intl.gif" border="0" title=" PayPal " alt="PayPal" align="bottom"> </b></big> <br> You do not need to be a PayPal member to pay by credit card. <script> document.writeln('<a style="cursor:hand" onclick="javascript:popup=window.open(' + '\'http://www.sportswatchonline.co.uk/catalog/CreditCardExplain.html\',\'popup\',' + '\'scrollbars,resizable,width=500,height=600,left=50,top=50\'); popup.focus(); return false;">' + '<font color="blue"><u>[info]</u></font></a>'); </script><noscript> <a href="CreditCardExplain.html" target="_blank"><font color="blue"><u>[info]</u></font></a> </noscript> </td> <td class="main" align="right"> <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id']); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> </td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php if (isset($selection[$i]['error'])) { ?> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" colspan="4"><?php echo $selection[$i]['error']; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) { ?> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td colspan="4"><table border="0" cellspacing="0" cellpadding="2"> <?php for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) { ?> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main"><?php echo $selection[$i]['fields'][$j]['title']; ?></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main"><?php echo $selection[$i]['fields'][$j]['field']; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php } ?> </table></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php } ?> </table></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php $radio_buttons++; } ?> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php echo $order_total_modules->credit_selection();//ICW ADDED FOR CREDIT CLASS SYSTEM ?> thoughts?
  8. man, i wish they would let you edit posts in here...... >_< ok, i was able to get the error to change a bit, it is not so scary now, as there are not as many lines Warning: Invalid argument supplied for foreach() in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php on line 214 Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php:214) in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/includes/functions/general.php on line 95 thoughts?
  9. When I am on the editorders.php page, and i click on any of the 'update' buttons, i get this error Warning: Invalid argument supplied for foreach() in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php on line 301 Warning: Division by zero in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php on line 371 Warning: Division by zero in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php on line 371 Warning: Division by zero in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php on line 371 Warning: Division by zero in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php on line 371 Warning: Division by zero in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php on line 371 Warning: Division by zero in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php on line 371 Warning: Division by zero in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php on line 476 Warning: Division by zero in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php on line 476 Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/edit_orders.php:301) in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/admin/includes/functions/general.php on line 95
  10. if you like, you can pm me and i can take a peek
  11. ahh,ok, i got it, i did not have any product options or values set. I have created those, now all works ok
  12. ok, I spoke too soon. I dont know what i am doing wrong. My zip files are where they should be, chods are set to what they should be, i have the settings in the download section, but still, i dont get a link at the end of my purchase. I have tried with paypal and cash on delivery.
  13. ok, i am an idiot, it is sunday.. i went and downloaded the last upload for the contribution and all is well, sorry guys :blush:
  14. hi there, i had a clean install of ms2.2 so i just overwrote my files with the ones from this contribution. Now my problem is, when i go to the admin i get this at the top of my page.. return $min; } else { return mt_rand($min, $max); } } else { return mt_rand(); } } // nl2br() prior PHP 4.2.0 did not convert linefeeds on all OSs (it only converted \n) function tep_convert_linefeeds($from, $to, $string) { if ((PHP_VERSION < "4.0.5") && is_array($from)) { return ereg_replace('(' . implode('|', $from) . ')', $to, $string); } else { return str_replace($from, $to, $string); } } function tep_string_to_int($string) { return (int)$string; } //// // Parse and secure the cPath parameter values function tep_parse_category_path($cPath) { // make sure the category IDs are integers $cPath_array = array_map('tep_string_to_int', explode('_', $cPath)); // make sure no duplicate category IDs exist which could lock the server in a loop $tmp_array = array(); $n = sizeof($cPath_array); for ($i=0; $i<$n; $i++) { if (!in_array($cPath_array[$i], $tmp_array)) { $tmp_array[] = $cPath_array[$i]; } } return $tmp_array; } // BOF: WebMakers.com Added: Downloads Controller require(DIR_WS_FUNCTIONS . 'downloads_controller.php'); // EOF: WebMakers.com Added: Downloads Controller ?> Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/vervedev/public_html/VerveShop/admin/includes/functions/general.php:1324) in /home/vervedev/public_html/VerveShop/admin/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/vervedev/public_html/VerveShop/admin/includes/functions/general.php:1324) in /home/vervedev/public_html/VerveShop/admin/includes/functions/sessions.php on line 67
  15. I am sorry to say, i dont know how to fix it, but i wanted to post to you to say, i really like your little bee in the header :D
  16. well, you are right Jack, this template is a mess. They have removed the column left code from all of the pages and put it in the header, so at the bottom of their header they have.. <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"> so i have to go through all of the pages and put the code back in and take it out of the header. I would like to thank you for all of your time and help on this matter. I am sure we will cross paths again soon, here at OSC :D
  17. ok, i put up the back up file from the original osc zip file (added the images) <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td width="263"><img src="header_r1_c1.gif" width="263" height="127" border="0" alt="NW Coin Co Ltd"></td> <td width="237" valign="bottom"><img src="header_r2_c2.jpg" width="237" height="59" border="0"></td> <td width="100%" align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') . '">' . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '">' . '</a>'; ?> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> </tr> </table> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> <?php } ?> now, the site map page comes up, but now all the other pages are misformattied i lose the left column and the right one gos to the bottom of the page http://www.nwcoin.com/catalog/ancient-coins-c-63.html
  18. would you happen to have any advil??? i looked in my header file, but i cant find anything <? // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT); } elseif (!is_writeable(tep_session_save_path())) { tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { tep_output_warning(WARNING_SESSION_AUTO_START); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { tep_output_warning(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT); } } ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td width="263"><img src="header_r1_c1.gif" width="263" height="127" border="0" alt="NW Coin Co Ltd"></td> <td width="237" valign="bottom"><img src="header_r2_c2.jpg" width="237" height="59" border="0"></td> <td width="100%" align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') . '">' . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '">' . '</a>'; ?> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <td align="right" class="headerNavigation"> <? $url1 = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?> <?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> </tr> </table> <?php if ($HTTP_GET_VARS['error_message'] != '') { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo urldecode($HTTP_GET_VARS['error_message']); ?></td> </tr> </table> <?php } if ($HTTP_GET_VARS['info_message'] != '') { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo $HTTP_GET_VARS['info_message']; ?></td> </tr> </table> <?php } ?> <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">
  19. alrighty, i am putting on my snorkle and i am gonna jump in and give it a shot. I will let ya know how it go's. again thank you for your help and i shall speak to ya soon :D
  20. hi there, i am working on a cart, cleaning up after someone. They are using the paypal module, now on the original site, when you check out, it gos to paypal, it shows the price and the shipping etc now on the new cart (which has the same paypal email addy) when you get to the paypal page, it does not pass the shipping amount on and it comes up with an input text field for the amount of the payment. Any thoughts? the link below will take you to a jpg of the paypal screen that is allowing the input box
  21. you are correct, i miss read your post, I am sorry. so i change the tep_show_category to my_tep_show_category in the header file in the catalog side?
  22. no no my friend, one thing about typing, it doesnt pass emotion. when i said'oh man, really? that hurts' i meant, that going through all of the files will be painful. I am sorry for the misunderstanding, you have been nothing but helpful so I am sorry if my post came accross the wrong way :( :D
  23. really eh, man, that hurts, like i said, i am in here to finish up someone elses work. ok, so go into the main catalog files, and find any instance of tep_show_category and change it to read my_tep_show_category now do i change the one in the header or leave that as tep_show_category? i am assuming i leave the one in the header alone?
  24. ahh, ok, i gotcha :) I am happy you got it working
×
×
  • Create New...