Jump to content

DennieN

Members
  • Content count

    6
  • Joined

  • Last visited

Profile Information

  • Real Name
    Dennis Niccol
  1. DennieN

    Quotes

    Hi First off lets say this is a great contribution does exactly what is say it should. I have done several modifications to the coding to achieve what I needed and it all works great with one exception. I seemed to have knocked out the code somewhere on the quote hadler inside the admin section. What I am getting is all notification e-mails are going to the same e-mail address. I can see the post change on the quote id but it does not seem to effect the send e-mail address. the code looks straight forward enough but does not work for me. the code looks like this else if (isset($_POST['send_email']) && substr($_POST['send_email'], "quote_") !== FALSE) { $customer_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_email_address LIKE '" . $_POST['email_address'] . "'"); $customer = tep_db_fetch_array($customer_query); $to = $customer['customers_firstname'] . ' ' . $customer['customers_lastname']; $to_email_address = $_POST['email_address']; $subject = TEXT_QUOTE_READY; $body = sprintf(TEXT_GREETING, $to) . "\n\n" . sprintf(TEXT_QUOTE_MESSAGE, HTTP_SERVER . DIR_WS_CATALOG . '/quotes.php') ."\n"; $from = STORE_OWNER; $from_email_address = STORE_OWNER_EMAIL_ADDRESS; tep_mail($to, $to_email_address, $subject, $body, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $quoteID = substr($_POST['send_email'], strlen("quote_")); tep_db_query("update " . TABLE_QUOTES . " set quote_notified = 1 where quote_id = " . $quoteID); } } The output of $_POST is action=process ttl_quotes=4 notified=on quote_id=44 email_address=d.niccol@xxxxxxxxxxx.co.uk send_email=quote_39 The send e-mail changed each time you select a different quote but the quote id and the e-mail address remain the same. any ideas would be welcome
  2. Hi First off lets say this is a great contribution does exactly what is say it should. I have done several modifications to the coding to achieve what I needed and it all works great with one exception. I seemed to have knocked out the code somewhere on the quote hadler inside the admin section. What I am getting is all notification e-mails are going to the same e-mail address. I can see the post change on the quote id but it does not seem to effect the send e-mail address. the code looks straight forward enough but does not work for me. the code looks like this else if (isset($_POST['send_email']) && substr($_POST['send_email'], "quote_") !== FALSE) { $customer_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_email_address LIKE '" . $_POST['email_address'] . "'"); $customer = tep_db_fetch_array($customer_query); $to = $customer['customers_firstname'] . ' ' . $customer['customers_lastname']; $to_email_address = $_POST['email_address']; $subject = TEXT_QUOTE_READY; $body = sprintf(TEXT_GREETING, $to) . "\n\n" . sprintf(TEXT_QUOTE_MESSAGE, HTTP_SERVER . DIR_WS_CATALOG . '/quotes.php') ."\n"; $from = STORE_OWNER; $from_email_address = STORE_OWNER_EMAIL_ADDRESS; tep_mail($to, $to_email_address, $subject, $body, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $quoteID = substr($_POST['send_email'], strlen("quote_")); tep_db_query("update " . TABLE_QUOTES . " set quote_notified = 1 where quote_id = " . $quoteID); } } The output of $_POST is action=process ttl_quotes=4 notified=on quote_id=44 email_address=d.niccol@xxxxxxxxxxx.co.uk send_email=quote_39 The send e-mail changed each time you select a different quote but the quote id and the e-mail address remain the same. any ideas would be welcome
  3. DennieN

    Protx Direct v2.22

    OK Thank
  4. DennieN

    Protx Direct v2.22

    Hi I have added protex form payment contribution 1.18.2 to a site version OSC 2.2 RC2, it is currently in test mode. the problem I have is an error message from the Sagepay side which is This transaction attempt has failed. Please use the Proceed button go back to the web store from which you were purchasing. The details of the failure are given below. Status: INVALID Status Detail: 3087 : The SuccessURL format is invalid. The value was http:/www.smileyprinT.co.uk/checkoutprocess.php?osCSid=8baf9c473c56d924ffa911afa9652d. Tried the DE-Crypt option and got 2.22 AUTHENTICATE PRINTWISE VendorTxCode=PRINTWISE200904272121492&Amount=54.03&Currency=GBP&Description= Goods bought from Smileyprint&SuccessURL=http://www.smileyprint.co.uk/checkout_process.php?osC sid=ce13f321ef96dc4e07e690bf3b9dc7a0&FailureURL=http://www.smileyprint.co.uk /checkout_process.php?osCsid=ce13f321ef96dc4e07e690bf3b9dc7a0&CustomerName=D ennis Niccol&CustomerEmail=d.niccol@d-p-consultancy.co.uk&VendorEMail=sales@smiley print.co.uk&DeliveryAddress=The Gingan,Langley Park,UK Mainland Addresses&DeliveryPostCode=DH7 9UA&BillingAddress=The Gingan,Langley Park,UK Mainland Addresses&BillingPostCode=DH7 9UA&Basket=3:50 Business Cards - Printed in one colour (single sided):1:16.99:2.55:19.54:19.54:50 Business Cards - printed in one colour (double sided):1:29.99:4.50:34.49:34.49:Shipping:1:0.00:----:0.00:0.00 If I understand this correctly the SuccessURL is being passed correctly or am I wrong to assume this? I can not get anyone at Sagepay to comment beyound "it has the wrong SuccessURL" I can only assume that this is a problem in the de-encryption at Sagepay end. Cany you give me some guidence on this?
  5. DennieN

    Protx Direct v2.22

  6. DennieN

    Protx Direct v2.22

×