Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


  • Content count

  • Joined

  • Last visited

  • Days Won


aelalfy1989 last won the day on February 9 2010

aelalfy1989 had the most liked content!


Profile Information

  • Real Name
    Ahmed El Alfy
  1. hello,

    how are you today

    I hope that every things is ok with you as it is my

    great pleasure to contact

    you in having communication

    with you starting from today, please i wish you will have the desire with me so that we can

    get to know each other better and see what

    happened in future.


    your new friend.


  2. aelalfy1989

    One Page Checkout Support

    How do I remove it completely? i used USU5 for my url rewritter, and I don't seem to have an issue with oscid showing in my url except when i go to SSL parts of my site. Do you know why? and is there anything that can completely remove oscid. I don;t even really understand what that oscid is, all i know is that its used for sessions and to keep track of them or something. Thanks AE
  3. aelalfy1989

    One Page Checkout Support

    Hi Steve, I'm having the same issue, this was not caused previously but is casued when updating to 1.2, is it someting to do with the coding? or is paypal as you say? Also as i mentioned before when I login using my footer, it takes me back to the checkout.php but the addresses don't get prefilled. do you know why? do you need the code for the footer or the login page? Thanks AE
  4. aelalfy1989

    One Page Checkout Support

    Hi Steve, I'll post my footer code below my text but before that I had a short question if you don't mind. you said use sid killer to remove oscid. but what I read is that it prevents spiders from seeing oscid. But my problem is that I installed a rewritter for my URL that "something something 5" contribution. Sorry I can't remember the name but anyways that solves my oscid on http urls but not https SSL urls. Also from what I understand setting up prevent session in admin and updating the spider.txt file is better than using sid killer. Can you help me understand this better please? Thank you, AE
  5. aelalfy1989

    One Page Checkout Support

    Hey people, One last thing, I remember the second issue I wanted to mention in my first post. It's 2) using the login in my footer, to login instead of the one on the checkout page, causes a small issue. When it comes back from the login page to the checkout.php everything is fine except the address. The fields are blank. only the site is set to "Canada". Does anyone know the cause of this issue? It seems that the session is kept. But I don't know what the issue is. Thanks AE
  6. aelalfy1989

    One Page Checkout Support

    Hey Wth, sorry for my language but now the checkout appears fine. was the issue caused by my setting SSL to true? and also I notice all the pages that use SSL when SSL is on, they have the OSCID thing showing. can anyone help me Thanks
  7. aelalfy1989

    One Page Checkout Support

    Hey everyone, As soon as I saw the update for this contribution, and it stated that cusomters can edit their information right on the page, i couldn't wait to try it out. In the beginning it worked fine, i did the db update, I had only a few issues at that time 1) the update cart button was there for some reason even though the cart area in the checkout page updates automatically. 2) I cant remember :P Anyways I was happy its working and decided since I just got my SSL a couple of days ago to turn that on. For some reason now my page looked weird. Then I'm like huh. That wasn't there before. So I went into my configure.php and turned it back off. but the page is still not ok. Also I know it was mentioned that when some parts are blank we need to edit some files and change <? into <?php. even though initially nothing was blank. I still did that and nothing changed for me, so kept it. Now I'm like maybe thats the cause so after setting my SSL back to normal. I copied the files from the contibution to my site. Still didn't work. I'll attach a screenshot to show you what im talking about. Also you can go on my site and see it for yourself. So if you guys look below, the images are missing the shipping address and shipping method, anyone know why? thanks AE
  8. Hi Just wanted to update. That I fixed the error I mentioned about the date of birth when you click ok in the my account summary area. But I'm a little confussed. In my account_book_proccess.php in my edit account area, I get this problem with my state as soon as I enter that page. I can change it and works. but why does it give me that state "4306" in that text box? see below. Oh don't mind the way that page looks. Its just cosmetic look. because I copied it from your files. So no worries, ill change it, can you tell me why this error is happening. Thanks AE
  9. Hi, What does the above mentioned have to do with the state thing I discussed. I'm saying that when I change my country from the default country to "please select", it makes the state into a text field why? Thanks
  10. Hi, 1) The whole file was replaced I thought it worked so I edited some cosmetic work nothing to do with anything really. Here is the code: <?php /* $Id: account_edit.php,v 2 2010/01/16 23:03:52 spooks Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ // anti-hacker account require('includes/functions/account_secure.php'); clean_post (); $_POST['dob'] = $_POST['dob_ind'].'/'.$_POST['dob_inm'].'/'.$_POST['dob_in']; // EOF anti-hacker account 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_ACCOUNT_EDIT); if (isset($_POST['action']) && ($_POST['action'] == 'process')) { if (ACCOUNT_GENDER == 'true') $gender = tep_db_prepare_input($_POST['gender']); $firstname = tep_db_prepare_input($_POST['firstname']); $lastname = tep_db_prepare_input($_POST['lastname']); if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($_POST['dob']); $email_address = tep_db_prepare_input($_POST['email_address']); $telephone = tep_db_prepare_input($_POST['telephone']); $fax = tep_db_prepare_input($_POST['fax']); $error = false; if (ACCOUNT_GENDER == 'true') { if ( ($gender != 'm') && ($gender != 'f') ) { $error = true; $messageStack->add('account_edit', ENTRY_GENDER_ERROR); } } if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) { $error = true; $messageStack->add('account_edit', ENTRY_FIRST_NAME_ERROR); } if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) { $error = true; $messageStack->add('account_edit', ENTRY_LAST_NAME_ERROR); } if (ACCOUNT_DOB == 'true') { if (!checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4))) { $error = true; $messageStack->add('account_edit', ENTRY_DATE_OF_BIRTH_ERROR); } } if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('account_edit', ENTRY_EMAIL_ADDRESS_ERROR); } if (!tep_validate_email($email_address)) { $error = true; $messageStack->add('account_edit', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } $check_email_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "' and customers_id != '" . (int)$customer_id . "'"); $check_email = tep_db_fetch_array($check_email_query); if ($check_email['total'] > 0) { $error = true; $messageStack->add('account_edit', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS); } // anti-hacker account $telephone = ValidatePhone($telephone); if ($telephone === NULL) { $error = true; $messageStack->add('account_edit', ENTRY_PHONE_ERROR); } else { $_POST['telephone'] = $telephone; } $fax = ValidatePhone($fax); if ($fax === NULL) { $error = true; $messageStack->add('account_edit', ENTRY_FAX_ERROR); } else { $_POST['fax'] = $fax; } // EOF anti-hacker account if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) { $error = true; $messageStack->add('account_edit', ENTRY_TELEPHONE_NUMBER_ERROR); } if ($error == false) { $sql_data_array = array('customers_firstname' => $firstname, 'customers_lastname' => $lastname, 'customers_email_address' => $email_address, 'customers_telephone' => $telephone, 'customers_fax' => $fax); if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender; if (ACCOUNT_DOB == 'true') $sql_data_array['customers_dob'] = tep_date_raw($dob); tep_db_perform(TABLE_CUSTOMERS, $sql_data_array, 'update', "customers_id = '" . (int)$customer_id . "'"); tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_account_last_modified = now() where customers_info_id = '" . (int)$customer_id . "'"); $sql_data_array = array('entry_firstname' => $firstname, 'entry_lastname' => $lastname); tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array, 'update', "customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$customer_default_address_id . "'"); // reset the session variables $customer_first_name = $firstname; $messageStack->add_session('account', '', 'none'); $messageStack->add_session('account', SUCCESS_ACCOUNT_UPDATED, 'success'); tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); } } $account_query = tep_db_query("select customers_gender, customers_firstname, customers_lastname, customers_dob, customers_email_address, customers_telephone, customers_fax from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); $account = tep_db_fetch_array($account_query); $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2); ?> <!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"> <?php require('includes/form_check.js.php'); ?> </head> <body> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%" class="col_center"> <!-- breadcrumb //--> <div id="breadcrumb_wrap"> <ul id="breadcrumb"> <li><a href="http://www.bestmacdiscounts.com" title="Home"><img src="images/home.png" alt="Home" class="home" /></a></li> <li><?php echo $breadcrumb->trail(' ')?></li> </ul> <div> <div id="ddtabs1" class="basictab"> <ul> <li><!-- BEGIN ProvideSupport.com Text Chat Link Code --> <div id="scdiKA" style="display:inline"></div><div id="sddiKA" style="display:none"></div><script type="text/javascript">var sediKA=document.createElement("script");sediKA.type="text/javascript";var sediKAs=(location.protocol.indexOf("https")==0?"https":"http")+"://image.providesupport.com/js/aelalfy1989/safe-textlink.js?ps_h=diKA&ps_t="+new Date().getTime()+"&online-link-html=Live%20Help&offline-link-html=Live%20Help";setTimeout("sediKA.src=sediKAs;document.getElementById('sddiKA').appendChild(sediKA)",1)</script><noscript><div style="display:inline"><a href="http://www.providesupport.com?messenger=aelalfy1989">Online Chat</a></div></noscript> <!-- END ProvideSupport.com Text Chat Link Code --></li> <li><a href="<?php echo tep_href_link('account.php')?>">Account</a></li> <li><a href="<?php echo tep_href_link('shopping_cart.php')?>">Cart <?php echo $cart->count_contents()?><img src="images/cart.png" width="22" height="16" style="vertical-align:middle; border:0px;" /></a></li> </ul> </div> </div> </div> </tr> <!-- body_text //--> <tr> <? tep_draw_heading_top_4();?> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('account_edit', tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL'), 'post', 'onSubmit="return check_form(account_edit);"') . tep_draw_hidden_field('action', 'process'); ?><table border="0" summary="" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" summary="" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('account_edit') > 0) { ?> <tr> <td><?php echo $messageStack->output('account_edit'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> <tr> <td><table border="0" summary="" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" summary="" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo MY_ACCOUNT_TITLE; ?></b></td> <td class="inputRequirement" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td> </tr> </table></td> </tr> <tr> <td><table border="0" summary="" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" summary="" cellspacing="2" cellpadding="2"> <?php if (ACCOUNT_GENDER == 'true') { if (isset($gender)) { $male = ($gender == 'm') ? true : false; } else { $male = ($account['customers_gender'] == 'm') ? true : false; } $female = !$male; ?> <tr> <td class="main"><?php echo ENTRY_GENDER; ?></td> <td class="main"><?php echo tep_draw_radio_field('gender', 'm', $male) . ' ' . MALE . ' ' . tep_draw_radio_field('gender', 'f', $female) . ' ' . FEMALE . ' ' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?></td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_FIRST_NAME; ?></td> <td class="main"><?php echo tep_draw_input_field('firstname', $account['customers_firstname']) . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_LAST_NAME; ?></td> <td class="main"><?php echo tep_draw_input_field('lastname', $account['customers_lastname']) . ' ' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></td> </tr> <?php if (ACCOUNT_DOB == 'true') { // anti-hacker account $day = substr($account['customers_dob'], 8, 2); $month = substr($account['customers_dob'], 5, 2); $year = substr($account['customers_dob'], 0, 4); $day = isset($_POST['dob_ind']) ? $_POST['dob_ind'] : $day; $month = isset($_POST['dob_inm']) ? $_POST['dob_inm'] : $month; $year = isset($_POST['dob_in']) ? $_POST['dob_in'] : $year; ?> <tr> <td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td> <td class="main"><?php echo tep_pull_down_date('dob_in', $day, $month, $year, true) . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td> </tr> <?php // EOF anti-hacker account } ?> <tr> <td class="main"><?php echo ENTRY_EMAIL_ADDRESS; ?></td> <td class="main"><?php echo tep_draw_input_field('email_address', $account['customers_email_address']) . ' ' . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td> <td class="main"><?php echo tep_draw_input_field('telephone', $account['customers_telephone']) . ' ' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_FAX_NUMBER; ?></td> <td class="main"><?php echo tep_draw_input_field('fax', $account['customers_fax']) . ' ' . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" summary="" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" summary="" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></form></td> <!-- body_text_eof //--> <? tep_draw_heading_bottom_4();?> </tr> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </table> <!-- body_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> 2) surprised its not done because isn't the file been edited by you? sorry I'm not following. You did it for the edit an account, did you maybe forget to do it for the new account? just wondering. One new problem I noticed. In all the files you edited, it seems that in the country drop down it allows you to select "please select" option and if you do, it puts the old text field state. why? Thanks alot for your help and this contribution AE
  11. Sorry the image didn't show up
  12. Hey Can you give me a hand I installed your lastest update. Which works great. But I'm having a few problems 1) It seems that when I go my account and click "View or change my account information." it takes me to the page in the image above but even if I don't change anything and click ok. It gives me the error above. 2) when i go back to my account area and click " View or change entries in my address book." then click add new address, the state is a text box not a drop down. why? Please let me know what I'm doing wrong. Thanks AE
  13. HEy, Hey man I respect that you for doing that upgrade. Very very nice of you and i'm very thankful for the clean simple update. Thanks AE
  14. 1) This was the whole point of me switching to this contribution. The other contribution does it, can we combine them in any way? 2) If you do have the time to make an update can you include the other contribution in that as well? the auto update state as soon as you pick the country. do you need the code for that contribution? or the name of the contribution? I don't think it's hard to include just by looking at the steps it took me to install that contribution. Let me know what you think. Email me with anything you want me to do. I'm not a progammer so my skills are limited but I think your contribution is really good and could be even better with a few tweeks. Thanks AE
  15. NVM my last post, I have fixed the issue 1) my question is I notice that when you change country using drop down menu, the stat doesn't automatically update? why? I changed it from canada to us and still have canada zones in my stat drop down. Here take a look please http://www.bestmacdiscounts.com/create_account.php 2) in my address book under edit the stat menu is not a drop down but a text menu instead? any ideas why? All the files were copied from the contribution because I didn't mind it since I didn't make many changes before and I have the old ones backed up. So basically all the files are copied except some in the includes file such as form_check.js.php and english.php because it was small changes to be made. anyways please take a look you can create an account to see for yourself how the edit address looks like. if someone can help please do Thank you, AE OH please dont mind how the pages look, since i copied them, I didn't have the time to change them yet. but they work so its good. One thing I don't know how to change is that grey background so if anyone knows please feel free to let me know