Jump to content

JABevan

Members
  • Content count

    186
  • Joined

  • Last visited

  1. JABevan

    Country-State Selector

    Has anyone implemented this contribution with the Purchase Without Account (PWA) contrib???? I'm having a really terrible time implementing this!!! If you're not familiar with the contrib it basically circumvents '/catalog/create_account.php' and replaces it with '/catalog/Order_Info.php', '/catalog/Order_Info_Process.php',and '/catalog/includes/modules/Order_Info_Check.php'. It's past 2am. I've been working on this 6 hours straight myself and we've put in another 6+ hours with two other coders. We're 90% there, but we can't get the page to refresh and populate the state field when you select a country. I'm up against a deadline on this and am definitely willing to pay for qualified help!!!! Thanks, Josh
  2. I have found a very temporary way around the problem, but my biggest concern right now is the ability to view ANY invoice once the PrintOrder window does come up. How can we fix this???
  3. Here's the best info I can find on sessions: http://www.zend.com/zend/tut/session.php It doesn't look like a session_destroy can be timed, if I'm reading things correctlly.
  4. Commenting out the last line did work. // tep_session_destroy(); Now I'm doing research on a timed destroy...
  5. We'd be talking about a change to this code, right: // PWA: Added a check for a Guest checkout and cleared the session - 030411 v0.71 if (tep_session_is_registered('noaccount')) { $order_update = array('purchased_without_account' => '1'); tep_db_perform(TABLE_ORDERS, $order_update, 'update', "orders_id = '".$orders['orders_id']."'"); // tep_db_query("insert into " . TABLE_ORDERS . " (purchased_without_account) values ('1') where orders_id = '" . (int)$orders['orders_id'] . "'"); tep_db_query("delete from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . tep_db_input($customer_id) . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS . " where customers_id = '" . tep_db_input($customer_id) . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . tep_db_input($customer_id) . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . tep_db_input($customer_id) . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . tep_db_input($customer_id) . "'"); tep_db_query("delete from " . TABLE_WHOS_ONLINE . " where customer_id = '" . tep_db_input($customer_id) . "'"); tep_session_destroy(); }
  6. anybody - Safoo wrote the following in response to the PWA/PrintOrder issue: Is it possible to put a timed delay on this? Like 20 minutes, as Ternet suggested? I'd imagine it could be done. All we're talking about is a session here right? How many others are having this problem? I guess we know of a half-dozen or so right now...
  7. Goanna It's even beyond a looking professional issue, if a user chooses to purchase without account they can't login, right? I'm accepting check/money order with instructions to print the order and send it in with payment. So they can't complete their order either. This isn't just an inconvenience, it is a higher priority and I hope it will be addressed and we can get some help in working to fix it....
  8. From Randy Newman on the PrintOrder thread: Safoo, do you see any draw backs or security issues with moving the session kill to checkout_success instead of checkout_process??? Any other alternatives? Thanks.
  9. I am still troubleshooting the issue with the PrintOrder contrib. Previously Safoo had recommended the following: I found the normal customer login in the printorder.php file and replaced it with the 'noaccount' line, but this didn't work. I'm still getting the same problem... I can't print an order. From the checkout_success.php page the PrintOrder contrib adds a button to print your order. This opens a pop-up (printorder.php) but instead of showing the order it redirects to the login screen. I replied to Safoo's posting earlier but got no reply or suggestions in response. Any ideas??? Here's the code that I think is applicable from the beginning of printorder.php: <?php /* ?$Id: printorder.php,v 1.2 12/03/2003 randynewman ? ?osCommerce, Open Source E-Commerce Solutions ?http://www.oscommerce.com ?Copyright (c) 2002 osCommerce ?Released under the GNU General Public License */ ?require('includes/application_top.php'); ?if (!tep_session_is_registered('noaccount')) { ? ?$navigation->set_snapshot(); ? ?tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); ?} Notice I did changed the 'customer_id' line to 'noaccount'. Is this code correct, should I be changing code in any other files than printorder.php? I've been struggling with this for weeks now and could really use some help. I've put sweat into it, and am not relying on the forum to fix it, so please don't blow me off. Thanks.
  10. I've posted details about what I've tried and what's happening on the PWA thread. Still no luck in getting it to work. Anyone???
  11. Still struggling with the PrintOrder contrib working with the PWA contrib. Not making any headway. Can anyone offer any suggestions???
  12. Here's the code that I think is applicable from printorder.php: <?php /* $Id: printorder.php,v 1.2 12/03/2003 randynewman osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); if (!tep_session_is_registered('noaccount')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } Notice I changed the 'customer_id' line to 'noaccount'. Would I also need to change anything in 'includes/application_top.php'?
  13. Safoo I'm finally getting back around to the PrintOrder issue. I took the code from your posting... ...found the normal customer login in the printorder.php file and replaced it with the 'noaccount' line, but this didn't work. I'm still getting the same problem... I can't print an order. From the checkout_success.php page the PrintOrder contrib adds a button to print your order. This opens a pop-up (printorder.php) but instead of showing the order it redirects to the login screen. Any ideas???
  14. Any news on making PrintOrder work with the Purchase Without Account (PWA) contrib??? I've tried a few things but have had no success...
  15. This is the statement in the latest 2.0 release of the PrintOrder contrib: However, there was a posting about it a while back indicating that it does not work yet. I've posted the code you provided on the other thread and will also experiment myself with it this week and return with anything I find. Thanks for your help! p.s. Did the install instructions for the four (three) stock OSC files look about right? I think they're all correct accept for some ending column/row/table tags in the last edit....
×