Jump to content

bnguru

Members
  • Content count

    100
  • Joined

  • Last visited

Profile Information

Recent Profile Visitors

4,332 profile views
  1. bnguru

    No Image in Version 2.3

    Sorry, was in the topic but didn't mention it: AntiRobotRegistrationValidation-3.0
  2. I installed this add-on into version 2.3.1 and the registration box appears on all pages, but no image. Also the Alternate View button doesn't seem to do anything. Can anyone suggest a fix to this please?
  3. Below is a screen shot from my site: There should be a line feed after the radio button and then everything would look OK. You would have the field name: text box in proper order. Which file, and where would I edit this output to display correctly?
  4. I just installed authorizenet_aim module but using OSC to CSS templates it's not formatting correctly. Credit Card Credit Card Owner: Credit Card Type: VisaMasterCardDiscover CardCredit Card Number: Credit Card Expiry Date: JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember 2010201120122013201420152016201720182019CVV Number More Info Above is how it is displaying but it appears I need a <br/> after the radio button to align everything correctly. Which file do I need to go to to correct the formatting? You can see this example at: http://www.trainliquidators.com/catalog/
  5. bnguru

    OSC to CSS v2

    I just noticed tonight that my sitte displays correctly in Firefox, but not in Explorer. Can anyone suggest what causes this and how to correct it? Again site location: http://www.trainliquidators.com/catalog/
  6. bnguru

    OSC to CSS v2

    Could you post a link to find this download please?
  7. bnguru

    OSC to CSS v2

    I have this contrib. installed and overall seems to be working. How do I adjust the page layout? Is this done iin the stylesheet file? My site is http://www.trainliquidators.com/catalog/ and you can see everything is stacked instead of creating the columns it should be. Again, thanks for all the help!
  8. bnguru

    OSC to CSS v2

    OK - one more dumb question, after I upload all the original rc2a files, do I open the index.php and let it install and THEN upload the osc to css files, or overwrite the osc files with the new ones first and then "install" via index.php?
  9. bnguru

    OSC to CSS v2

    OK, I finally got the files to download and open. Now my question is, do I install osc2v2a and then overwrite the files duplicated here, or are these the files to use instead of the regular osc2?
  10. bnguru

    OSC to CSS v2

    When I download the Sept 15 zip file I only get empty folders. I presume there should be much more. Is it a different file I should be downloading?
  11. bnguru

    OSC to CSS v2

    I installed this contribution and it is starting to look great. One problem - all my image links are broken! I see what the problem is, I just need help finding what and where to fix it. My site is http://www.trainliquidators.com/catalog/ I'm still working on this and have a way to go. Problem is all the links are looking in "catalog/templates//template_images/???.gif" Somewhere obviously I've added an extra slash between templates and template_images. Which file is this in so I can correct it? Thanks group.
  12. bnguru

    Country-State Selector

    Does anyone have any thoughts on why it is returning 0 the first time, yet if you either change country or submit to return with an error, the state drop down list appears and populates correctly? This is the only file that does this.
  13. bnguru

    Country-State Selector

    I've been modifying my site with many of the contributions here. I was working on a fix so that only the US states would appear in a drop down list when adding accounts, changing addresses, etc. Everything is working fine accept when you log into your account and try to add an address. If you edit an existing address everything is fine, but when you add you see the following (cropped) screen: Everything is fine except there is no drop down list or text box next to "State". If you fill in everything completely and click add you get an error and THEN the state list appears. You can then edit the state and it will add the address correctly. I have been through the file but I'm at a loss for what's missing? The code is below the image. $Id: address_book_process.php 1766 2008-01-03 17:35:06Z hpdl $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2007 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } // needs to be included earlier to set the success message in the messageStack require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADDRESS_BOOK_PROCESS); if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'deleteconfirm') && isset($HTTP_GET_VARS['delete']) && is_numeric($HTTP_GET_VARS['delete'])) { tep_db_query("delete from " . TABLE_ADDRESS_BOOK . " where address_book_id = '" . (int)$HTTP_GET_VARS['delete'] . "' and customers_id = '" . (int)$customer_id . "'"); $messageStack->add_session('addressbook', SUCCESS_ADDRESS_BOOK_ENTRY_DELETED, 'success'); tep_redirect(tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL')); } // error checking when updating or adding an entry $process = false; if (isset($HTTP_POST_VARS['action']) && (($HTTP_POST_VARS['action'] == 'process') || ($HTTP_POST_VARS['action'] == 'update'))) { $process = true; $error = false; if (ACCOUNT_GENDER == 'true') $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']); if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']); $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']); $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']); $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']); if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']); $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']); $city = tep_db_prepare_input($HTTP_POST_VARS['city']); $country = tep_db_prepare_input($HTTP_POST_VARS['country']); if (ACCOUNT_STATE == 'true') { if (isset($HTTP_POST_VARS['zone_id'])) { $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']); } else { $zone_id = 0; } if (isset($HTTP_POST_VARS['state'])) { $state = tep_db_prepare_input($HTTP_POST_VARS['state']); if ((strcmp($state, strtoupper($state)) == 0)) $state = strtolower($state); if ((strcmp($state, strtolower($state)) == 0)) $state = ucwords($state); } else { $state = ''; } } if (ACCOUNT_GENDER == 'true') { if ( ($gender != 'm') && ($gender != 'f') ) { $error = true; $messageStack->add('addressbook', ENTRY_GENDER_ERROR); } } if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) { $error = true; $messageStack->add('addressbook', ENTRY_FIRST_NAME_ERROR); } if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) { $error = true; $messageStack->add('addressbook', ENTRY_LAST_NAME_ERROR); } if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('addressbook', ENTRY_STREET_ADDRESS_ERROR); } if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) { $error = true; $messageStack->add('addressbook', ENTRY_POST_CODE_ERROR); } if (strlen($city) < ENTRY_CITY_MIN_LENGTH) { $error = true; $messageStack->add('addressbook', ENTRY_CITY_ERROR); } if (!is_numeric($country)) { $error = true; $messageStack->add('addressbook', ENTRY_COUNTRY_ERROR); } if (ACCOUNT_STATE == 'true') { $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'"); $check = tep_db_fetch_array($check_query); if ($check['total'] > 0) { // if country has defined zones if ($zone_id == 0) { // if zone_id not set try to retrieve based on state name $zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and (zone_name = '" . tep_db_input($state) . "' or zone_code = '" . tep_db_input($state) . "')"); if (tep_db_num_rows($zone_query) == 1) { $zone = tep_db_fetch_array($zone_query); $zone_id = $zone['zone_id']; } else { $error = true; $messageStack->add('addressbook', ENTRY_STATE_ERROR_SELECT); } } else { // retrieve state name from database using zone_id $zone_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and zone_id = '" . (int)$zone_id . "'"); if (tep_db_num_rows($zone_query) == 1) { $zone = tep_db_fetch_array($zone_query); $state = stripslashes($zone['zone_name']); } else { // if no state found to match zone_id in country then there is an error $error = true; $messageStack->add('addressbook', ENTRY_STATE_ERROR_SELECT); } } } else { if (strlen($state) < ENTRY_STATE_MIN_LENGTH) { $error = true; $messageStack->add('addressbook', ENTRY_STATE_ERROR); } } } if ($error == false) { $sql_data_array = array('entry_firstname' => $firstname, 'entry_lastname' => $lastname, 'entry_street_address' => $street_address, 'entry_postcode' => $postcode, 'entry_city' => $city, 'entry_country_id' => (int)$country); if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender; if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company; if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $suburb; if (ACCOUNT_STATE == 'true') { if ($zone_id > 0) { $sql_data_array['entry_zone_id'] = (int)$zone_id; $sql_data_array['entry_state'] = ''; } else { $sql_data_array['entry_zone_id'] = '0'; $sql_data_array['entry_state'] = $state; } } if ($HTTP_POST_VARS['action'] == 'update') { $check_query = tep_db_query("select address_book_id from " . TABLE_ADDRESS_BOOK . " where address_book_id = '" . (int)$HTTP_GET_VARS['edit'] . "' and customers_id = '" . (int)$customer_id . "' limit 1"); if (tep_db_num_rows($check_query) == 1) { tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array, 'update', "address_book_id = '" . (int)$HTTP_GET_VARS['edit'] . "' and customers_id ='" . (int)$customer_id . "'"); // reregister session variables if ( (isset($HTTP_POST_VARS['primary']) && ($HTTP_POST_VARS['primary'] == 'on')) || ($HTTP_GET_VARS['edit'] == $customer_default_address_id) ) { $customer_first_name = $firstname; $customer_country_id = $country; $customer_zone_id = (($zone_id > 0) ? (int)$zone_id : '0'); $customer_default_address_id = (int)$HTTP_GET_VARS['edit']; $sql_data_array = array('customers_firstname' => $firstname, 'customers_lastname' => $lastname, 'customers_default_address_id' => (int)$HTTP_GET_VARS['edit']); if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender; tep_db_perform(TABLE_CUSTOMERS, $sql_data_array, 'update', "customers_id = '" . (int)$customer_id . "'"); } $messageStack->add_session('addressbook', SUCCESS_ADDRESS_BOOK_ENTRY_UPDATED, 'success'); } } else { if (tep_count_customer_address_book_entries() < MAX_ADDRESS_BOOK_ENTRIES) { $sql_data_array['customers_id'] = (int)$customer_id; tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array); $new_address_book_id = tep_db_insert_id(); // reregister session variables if (isset($HTTP_POST_VARS['primary']) && ($HTTP_POST_VARS['primary'] == 'on')) { $customer_first_name = $firstname; $customer_country_id = $country; $customer_zone_id = (($zone_id > 0) ? (int)$zone_id : '0'); if (isset($HTTP_POST_VARS['primary']) && ($HTTP_POST_VARS['primary'] == 'on')) $customer_default_address_id = $new_address_book_id; $sql_data_array = array('customers_firstname' => $firstname, 'customers_lastname' => $lastname); if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender; if (isset($HTTP_POST_VARS['primary']) && ($HTTP_POST_VARS['primary'] == 'on')) $sql_data_array['customers_default_address_id'] = $new_address_book_id; tep_db_perform(TABLE_CUSTOMERS, $sql_data_array, 'update', "customers_id = '" . (int)$customer_id . "'"); $messageStack->add_session('addressbook', SUCCESS_ADDRESS_BOOK_ENTRY_UPDATED, 'success'); } } } tep_redirect(tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL')); } } if (isset($HTTP_GET_VARS['edit']) && is_numeric($HTTP_GET_VARS['edit'])) { $entry_query = tep_db_query("select entry_gender, entry_company, entry_firstname, entry_lastname, entry_street_address, entry_suburb, entry_postcode, entry_city, entry_state, entry_zone_id, entry_country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$HTTP_GET_VARS['edit'] . "'"); if (!tep_db_num_rows($entry_query)) { $messageStack->add_session('addressbook', ERROR_NONEXISTING_ADDRESS_BOOK_ENTRY); tep_redirect(tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL')); } $entry = tep_db_fetch_array($entry_query); } elseif (isset($HTTP_GET_VARS['delete']) && is_numeric($HTTP_GET_VARS['delete'])) { if ($HTTP_GET_VARS['delete'] == $customer_default_address_id) { $messageStack->add_session('addressbook', WARNING_PRIMARY_ADDRESS_DELETION, 'warning'); tep_redirect(tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL')); } else { $check_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where address_book_id = '" . (int)$HTTP_GET_VARS['delete'] . "' and customers_id = '" . (int)$customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['total'] < 1) { $messageStack->add_session('addressbook', ERROR_NONEXISTING_ADDRESS_BOOK_ENTRY); tep_redirect(tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL')); } } } else { $entry = array(); } if (!isset($HTTP_GET_VARS['delete']) && !isset($HTTP_GET_VARS['edit'])) { if (tep_count_customer_address_book_entries() >= MAX_ADDRESS_BOOK_ENTRIES) { $messageStack->add_session('addressbook', ERROR_ADDRESS_BOOK_FULL); tep_redirect(tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL')); } } $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL')); if (isset($HTTP_GET_VARS['edit']) && is_numeric($HTTP_GET_VARS['edit'])) { $breadcrumb->add(NAVBAR_TITLE_MODIFY_ENTRY, tep_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'edit=' . $HTTP_GET_VARS['edit'], 'SSL')); } elseif (isset($HTTP_GET_VARS['delete']) && is_numeric($HTTP_GET_VARS['delete'])) { $breadcrumb->add(NAVBAR_TITLE_DELETE_ENTRY, tep_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'delete=' . $HTTP_GET_VARS['delete'], 'SSL')); } else { $breadcrumb->add(NAVBAR_TITLE_ADD_ENTRY, tep_href_link(FILENAME_ADDRESS_BOOK_PROCESS, '', 'SSL')); } ?> > if (!isset($HTTP_GET_VARS['delete'])) { include('includes/form_check.js.php'); } ?> $countries_query = tep_db_query("select countries_id from " . TABLE_COUNTRIES . " order by countries_name"); $cl = array(); $s = ''; while ($country = tep_db_fetch_array($countries_query)) { $cl[] = $country['countries_id']; $s .= $country['countries_id'] . ', '; } ?> <script language="JavaScript"> function ShowNewList(){ var id = new Array(); var x, item; for (x = 0; x { item = document.getElementById(id[x]); if (item) { item.style.display = 'none'; item.disabled = true;} } var pm = document.getElementById('ctry'); id = pm.value; var item = document.getElementById(id); item.style.display = ''; item.disabled = false; } if ($messageStack->size('addressbook') > 0) { ?> } if (isset($HTTP_GET_VARS['delete'])) { ?> } else { ?> if (isset($HTTP_GET_VARS['edit']) && is_numeric($HTTP_GET_VARS['edit'])) { ?> } else { if (sizeof($navigation->snapshot) > 0) { $back_link = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); } else { $back_link = tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL'); } ?> } } ?> output('addressbook'); ?> '); ?> ' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . ''; ?>' . tep_image_button('button_delete.gif', IMAGE_BUTTON_DELETE) . ''; ?> ' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . ''; ?> ' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . ''; ?>'; ?>
  14. bnguru

    Help with Product Listing Layout

    One more question, maybe you can answer - Is there a document on this site that shows all files and proper folders they should be under? Maybe even a listing of what each file accomplishes so that it's easier to make modifications, knowing which file controls which process or function?
×