Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sid04

Archived
  • Posts

    413
  • Joined

  • Last visited

Everything posted by Sid04

  1. Sorry, after going back and reading your post again..... The change in header.php we are talking about is the same. Why would ya need to add that to application_top? That code is already in header.php(except with PWA installed it blocks LOGOFF from showing when using PWA) and works fine. Thanks
  2. I guess what im mainly not understanding is the difference between what your saying to do and just changing this line in the PWA install(in header.php) from: <?php if ((tep_session_is_registered('customer_id')) && (!tep_session_is_registered('noaccount'))) // DDB - PWA - 040622 - no display of logoff for PWA customers { ?> <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?> </a> | <?php } ?> TO: <?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 } ?> This would show the LOGOFF option if your signed on or using PWA. What does your method do? Thanks
  3. what does that code do differently then: <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?> </a> | ? And why in application top instead of header? Thanks
  4. For the logoff deal I was just going to edit the header file to show the logoff option if PWA: <td align="right" class="headerNavigation"> <?php if ((tep_session_is_registered('customer_id')) && (!tep_session_is_registered('noaccount'))) // DDB - PWA - 040622 - no display of logoff for PWA customers { ?> <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?> </a> | <?php } ?> What are you refering to with your code amanda? Thanks B)
  5. Well, im wondering exactyl WHY it's an issue. It's easy enough to keep the logoff option available to customers that started the PWA checkout, but what side effects would it have? Im trying to get advice on why I SHOULDNT do it :P The only thing I can think of is that it would leave the customers info that thay had entered in yout database. Anything else? Thanks
  6. ignore the above. Apparently so many entried have to match the existing account for the 'PWA_FAIL_ACCOUNT_EXISTS' error to show(and be redirected to login page). How many things have to match? Next question about order_info.php..... <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php echo tep_draw_hidden_field("password","DummyForPWA") . tep_draw_hidden_field("confirmation","DummyForPWA"); ?> ****THIS LINE**** </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> The above is towards the end of order_info.php. THe line I marked with "****THIS LINE**** ", a </tr>, is it in your file or not? Some of the order_info files im comparing have it, others dont. And one last thing(i believe I also asked before)....what are your feelings about having a LOGOFF or RESET link for customers that start the PWA process? It seems that if they leave the page and would come back, it will retain the info they entered. If the info is incorrect or they would like to change it...or would even like to create an account, they have no way of getting out of 'pwa mode' to do so. Your thoughts? Thanks guys, overall this contrib was alot easier then I expected! Im just hoping I dont find any more glitches now :lol:
  7. Yes, I see that in the regular order_info file in the PWA contribution that it does contain the " /* This was commented out for Country-state selector" lines BUT the order_info file thats actually in the extras/CS-S folder doesnt contain it. So I added it to mine to comment out those line. NOW if the email already exists it doesnt give an error at all....just sends you on to checkout :(
  8. Awesome, maybe it's a good thing I havnt installed it yet :D
  9. hmmm, so what are you saying? :) Stew- Im pretty sure I used the order_info file out of your contrib(.91). The one in the extra/country-state-selector folder.
  10. Sure, no problem: if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR); } elseif (tep_validate_email($email_address) == false) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } else { $check_email_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); $check_email = tep_db_fetch_array($check_email_query); if ($check_email['total'] > 0) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS); } } The other: if ($check_customer['purchased_without_account'] != 1) { // Customer found and has account - make them log in. tep_redirect(tep_href_link(FILENAME_LOGIN, 'login=fail&reason=' . urlencode( str_replace('{EMAIL_ADDRESS}',$check_customer['customers_email_address'],PWA_FAIL_ACCOUNT_EXISTS)), 'SSL')); } else {
  11. always lookin to make things nicer though. The problem is that I dont know what differences the changes would make >_<
  12. Problem: my parcial post rate is always higher then priority mail rate. When you get a shipping qoute on usps.com, under parcial post it says "Additional Postage May Apply". Well if I apply that additional postage then it matches my site. Is there a way to make it not apply those costs when qouting me a rate for parcial post? If not, how do I delete parcial post from the options? Thanks guys :thumbsup:
  13. before the one major code change in the login.php file, I had to change <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> To: <td><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="0" class="infoBox"> ...to get the borders around the boxes on login.php to show up. Why? Also, should I change all of the other "<td><table border="0" width="100%" cellspacing="0" cellpadding="2">" lines in login.php as well?
  14. Something else im wondering: If a customer chooses PWA, fills out the order_info page but uses an email that already exists for a customer account, the 'ENTRY_EMAIL_ADDRESS_ERROR_EXISTS' error from english.php is being displayed at the top of the screen. Shouldnt 'PWA_FAIL_ACCOUNT_EXISTS' from the create_account english file be displayed? If not, under what instance will 'PWA_FAIL_ACCOUNT_EXISTS' display?
  15. Replace 'and' with '&&' and that was the winning ticket(or so it seems so far). I used the PWA changes made to header.php to figure that one out.....and it only took me a full day! :-" Anywho.....anybody know how to add a border line around the different sections on login.php? Also, im thinking of making a "reset" button for PWA customers....would just be the logoff link but renamed. Would there be any downside to this that you know of? If the customer starts doing PWA and for some reason wants to then register for an account....or if they leave and come back later and dont want all the old cart contents in their cart, it might be nice to have a quick option for them to reset everything. Any thoughts? Thanks everybody :thumbsup:
  16. is there a way to 'abandon' the cart? Im trying to do some testing but when I do the PWA checkout and dont complete the checkout and close the window.....everytime I go back to the site it keeps my cart contents and if I would want to login to a existing account it wont let me. So is there a way to 'cancel' the PWA checkout when halfway through, basically reset the cart?
  17. maybe I spoke too soon. It seemed to work...when I went through and did a PWA checkout the loginbox disappeared as it should and stayed off. BUT...when I closed the browser window and abandoned the cart....when I come back to the cart im still at the same place, and I cant log into a regualr account if I like or logoff and erase teh transaction to start all over. Also, if I type in the URL to the login.php page and login, the loginbox doesnt display either.
  18. Thanks, that may have done the job....ill further test it. First....would you do anything with the first section of code that we were disussing? Heres the stock section of code: // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php thanks again
  19. im assuming that goes after the other code: <?php // WebMakers.com Added: Do not show if on login or create account or PWA if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and (!strstr($_SERVER['PHP_SELF'],'order_info.php')) and !tep_session_is_registered('customer_id') ) { ?> ill try it out, thanks :thumbsup:
  20. Stew- tried that. Didnt do anything that I noticed. I can add an additional section to that code like: and (!strstr($_SERVER['PHP_SELF'],'order_info.php')) as I did to keep the login box off the new order_info page. As soon as you go past this page though the box shows again. I also tried adding a seperate section of code: <?php // WebMakers.com Added: Do not show if PWA if ( (!tep_session_is_registered('noaccount')) ) { ?> This causes the loginbox to never show. I can have the or (!tep_session_is_registered('noaccount')) section in or out of the code in your post and it doesnt seem to make a difference. Any ideas?
  21. <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License Autologin added by DJ Downey http://www.liquidgfx.com */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')){ ?> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_LOGINBOX_HEADING ); new infoBoxHeading($info_box_contents, $newtheme, false, false); $loginboxcontent = " <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process') . "\"> <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td align=\"center\" class=\"infoBoxContents\"> " . tep_box_greeting_top() . " </td> </tr> <tr> <td align=\"center\" class=\"infoBoxContents\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"center\" class=\"infoBoxContents\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> </td> </tr> <tr> <td align=\"center\" class=\"infoBoxContents\"> " . BOX_LOGINBOX_PASSWORD . " <A HREF=\"" . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'NONSSL') . "\">" . BOX_LOGINBOX_FORGOT_PASSWORD . "</A> </td> </tr> <tr> <td align=\"center\" class=\"infoBoxContents\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\"> </td> </tr> <tr> <td class=\"infoBoxContents\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . " </td> </tr> <tr> <td align=\"center\" class=\"infoBoxContents\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> </form> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> </td> </tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ); new infoBoxHeading($info_box_contents, $newtheme, false, false); $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td align=\"center\" class=\"loginBoxGreeting\"> " . tep_box_greeting_top() . " </td> </tr> <tr> </table> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent . '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'NONSSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'NONSSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'NONSSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'NONSSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '"><b>' . LOGIN_BOX_LOGOFF . '</b></a>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?> As far as CS-S, i was reffering to version 1.3.2 and 1.3.0. They both are slightly different then what comes with PWA 0.91. Your PWA V.91 dates after the newest CS-S release that contains the PWA files(1.3.2) but the order_info.php files are different.
  22. The login box resides in a column and is just a loginbox that displays the persons name as a personal greeting after they login. It also has links in it to the customers account, order history and some other stuff. Its a pretty small contribution.....maybe you'll know of a way to have it disabled if the customer chooses to use PWA. As for C-SS...I simply meant that the last couple versions of the order_info.php file that was included with C-SS are alittle different from the one that is included with PWA to use with C-SS. Im wondering which is the best to use. The last version that Steve made and included on teh C-SS contributions page? Thanks for your time :)
×
×
  • Create New...