Jump to content

jbh

Members
  • Content count

    97
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Joel
  1. I see. I will try to do that. Thank you.
  2. Safoo>>Sadly, this does not help at all Since I have one email address in the system, anytime I test the 'without account' feature, it will NOT let me continue. Even after that code in page 34 (but I didn't test creating a new account, I worry about existing customers who forget their password and want to bypass this) Is there a way to make sure any customers, who did order, and signed-up to do so, can later on come back and just order without an account even if they put in an email address that is in the system? If not, this mod isn't 100% convenient and sort of offsets the point of having it. Right?
  3. Safoo>>interesting. To me, all that matters is if joe bubblegum comes, orders with his email, signs up to order, but then 2 months later comes back and doesn't want to log-in, there isn't that error that I received. So what you are saying is as long as he completes an order, when he signs up, any future 'non account' order will be without fail? If so, we should be fine. However, I will check the mod you just talked about on page 34. Thank you for your help. I am just making sure I understand everything. You have been INVALUABLE with your help, you have no idea.
  4. Safoo>>Thanks again for your help. I was just wondering if you know the fix for the bug where if I put in an email address that was used for when I signed up earlier on, and it will not let me proceed without an account. In other words, it seems that when you sign-up one day, if you use that email address later on, without signing-in, it will not let you continue. Do you or anybody else here know why this is? Thanks again. I will still search for the answer, however, I figured it's best to play it safe and ask (if that is ok)
  5. Ok, I fixed it. Thanks to page 13 on this thread: http://forums.oscommerce.com/index.php?sho...ic=40352&st=120 However, I did notice that this shopping cart, before this mod, when I sign up, let's say, and 'continue' it still asks me to sign up, it doesn't recognize me. Does anybody know if the mods that fix this will interfere with the code in these mods for 'purchase without account'? Just curious. Thanks for ALL of your help
  6. Yeah, the concern for us is new orders. I assumed that is what this was about, that's why I got confused when hearing about the 'update_order' case. I just want new emails to not show that link if they don't have an account, and to show it if they do. Thanks again.
  7. Actually, no. But I pasted the page one of you posted and it had paypal code (I thought I blocked it out) I could be wrong. I just want to confirm that the point of what I am doing is to make sure non account members are the only ones who do not receive that link in the confirmation email. The way I'm going, I have to ask this stupid question ;)
  8. Safoo>>All of my recent orders have '1' as the value Before that, every order has '0'
  9. Hi, guys. Thanks. I must be confused. To save you poor souls time, I will post the code of my page (just from the top to the 'break' after the delete case) because I am sure I did something wrong (no errors, just the link still shows on new orders) <?php require('includes/application_top.php'); require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); $orders_statuses = array(); $orders_status_array = array(); $orders_status_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int)$languages_id . "'"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_statuses[] = array('id' => $orders_status['orders_status_id'], 'text' => $orders_status['orders_status_name']); $orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name']; } $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); if (tep_not_null($action)) { switch ($action) { case 'update_order': $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); $status = tep_db_prepare_input($HTTP_POST_VARS['status']); $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']); $order_updated = false; $check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); $check_status = tep_db_fetch_array($check_status_query); if ( ($check_status['orders_status'] != $status) || tep_not_null($comments)) { tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int)$oID . "'"); $customer_notified = '0'; if (isset($HTTP_POST_VARS['notify']) && ($HTTP_POST_VARS['notify'] == 'on')) { $notify_comments = ''; if (isset($HTTP_POST_VARS['notify_comments']) && ($HTTP_POST_VARS['notify_comments'] == 'on')) { $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n\n"; } // start pwa changes $pwa_check_query= tep_db_query("select purchased_without_account from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'"); $pwa_check= tep_db_fetch_array($pwa_check_query); if ($pwa_check['purchased_without_account'] != '1'){ $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); } else { $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); } tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1'; } tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')"); $order_updated = true; } if ($order_updated == true) { $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success'); } else { $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning'); } tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit')); break; case 'deleteconfirm': $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); tep_remove_order($oID, $HTTP_POST_VARS['restock']); tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')))); break; } }
  10. Hi, thanks for your help. However, I am a bit confused All of this is underneath the 'case upddate_order' so do you mean I add those lines directly under case: update_order ? Can I view the first 100+ lines of the page as it should be? I worry I might blow it lol Seriously, I cannot thank you enough. I just am a bit confused, but I am almost there thanks to you guys.
  11. I made the change originally to checkout_success.php and then one of you posted your whole file and I used that as well. So that would show the code I have for that page. As for admin/orders.php, I must have done something wrong. I'll post the section from " // start pwa changes " to "break; case 'deleteconfirm':" // start pwa changes $pwa_check_query= tep_db_query("select purchased_without_account from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'"); echo $pwa_check_query; $pwa_check= tep_db_fetch_array($pwa_check_query); if ($pwa_check['purchased_without_account'] != '1'){ $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); } else { $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); } tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); # End of the email feature $customer_notified = '1'; } tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')"); $order_updated = true; } if ($order_updated == true) { $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success'); } else { $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning'); } tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit')); break; Above that I have: $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1'; } Thanks...
  12. "See the second post on page 33 of this thread which details the 3 changes you need to make." As I stated (Or I thought I did, it was late) I made the changes you talked about. Checkout_Success.php admin/orders.php the table change in phpmyadmin NO change. I still get the email I don't receive page errors. The order goes through, but oddly enough, that darn link appears in the email when the non account users order. Thanks
  13. Note: can't edit above post, don't know why. Anyway, I fixed that error, but the link still appears in the email? What was the point of the changes to admin/orders.php and checkout_success.php? What do I do? Thanks
  14. By the way, I see an error on my admin/orders.php page "Parse error: parse error in /home/travelel/public_html/catalog2/admin/orders.php on line 82" That line is: case 'deleteconfirm': Before it is break; That is part of the block of code I try to modify: // start pwa changes $pwa_check_query= tep_db_query("select purchased_without_account from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'"); $pwa_check= tep_db_fetch_array($pwa_check_query); if ($pwa_check['purchased_without_account'] != '1'){ $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); } else { $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); } tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1'; } } tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')"); $order_updated = true; } if ($order_updated == true) { $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success'); } else { $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning'); } tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit')); break; I know the problem is here, I just can't put my finger on it... Thanks so much for this outstanding thread...
  15. TerryK/Safoo>>I tried the changes made, to remove the email link for non account orders, yet it still appears in the email. Keep in mind, Safoo's post, I followed all instructions. Anybody know what I am missing? Thanks
×