Jump to content


  • Content count

  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
  1. compwhizmm90

    Help with my custom modification

    I forgot to show this part in my code. This is right above the code that I just posted. I'm not sure but I think the foreach thing has something to do with it. foreach ($HTTP_POST_VARS['update_oID'] as $this_orderID){ $order_updated = false;
  2. I have installed and modified the batch order status update contribution. I have modified it so that if the order status is a certain status, it send a different email then the other emails. I also wanted it just to include the first name in the email. If I set it to $check_status['customers_name'], it included the first and last name. So I modified it to make a call to the customers table and get only the first name. Anyway, with batch order status update, you can update the status of multiple orders. So my modification only puts the first name of the first email, and puts nothing on any of the other emails. Here is a piece of my code so you can see what I'm doing. I bolded the parts that deal with getting the first name $check_status_query = tep_db_query("select customers_id, customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$this_orderID . "'"); $check_status = tep_db_fetch_array($check_status_query); $comments = ""; if ($check_status['orders_status'] != $status) { tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int)$this_orderID . "'"); $customer_notified ='0'; if (isset($HTTP_POST_VARS['notify'])) { $notify_comments = ''; if($HTTP_POST_VARS['new_status'] == '8') { //get first name! //the id $customerid = $check_status["customers_id"]; //sql query $getid_query = tep_db_query("SELECT customers_firstname FROM customers WHERE customers_id = " . $customerid . ""); $getid = tep_db_fetch_array($getid_query); // end get first name //add From: header $headers = "From: Summer Hill Seeds <ro**n@summe****lseeds.com> \r\n"; //specify MIME version 1.0 $headers .= "MIME-Version: 1.0\r\n"; //unique boundary $boundary = uniqid("HTMLDEMO"); //tell e-mail client this e-mail contains//alternate versions $headers .= "Content-Type: multipart/alternative" . "; boundary = $boundary\r\n\r\n"; //message to people with clients who don't //understand MIME $headers .= "This is a MIME encoded message.\r\n\r\n"; //plain text version of message $headers .= "--$boundary\r\n" . "Content-Type: text/plain; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $headers .= chunk_split(base64_encode("Hi, I would like to let you know that your order #" . $this_orderID . " has been shipped. You may view more information about this order by going here: " . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, "order_id=" . $this_orderID, 'SSL') . "I would like to thank you for shopping with us, and I hope you come back soon. If you have any questions, please reply to this email. \n\n Best Regards, \n\n Robin Bennett \n Summer Hill Seeds")); //HTML version of message $headers .= "--$boundary\r\n" . "Content-Type: text/html; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $headers .= chunk_split(base64_encode('<html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Order Update</title> </head> <body> <p>Hi ' . $getid["customers_firstname"] . ',</p> <p>I would like to let you know that your order #' . $this_orderID . ' has been shipped. I would like to thank you for shopping at Summer Hill Seeds, and hope you come back soon. If you have any questions or concerns, please do not hesitate to reply to this email. </p> <p>For more information about your order, click here: ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $this_orderID, 'SSL') . '</p> <p>Best Regards,</p> <p>Robin Bennett<br> Summer Hill Seeds<br> <a href="http://www.summerhillseeds.com">www.summerhillseeds.com</a><br> </body> </html> ')); if(mail($check_status['customers_email_address'], "Order Update", "", $headers)) $customer_notified = '1'; else $customer_notified = '0'; } else { $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $this_orderID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $this_orderID, '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 for any Help :)
  3. compwhizmm90

    ccgv free shipping bug

    I'm also getting a blank page. I am the one who started this post a long time ago. I will try and reorder those and see if it works. I assume you are reffering to the order total modules section in the admin to reorder these. Thanks.
  4. compwhizmm90

    paypal subscription

    Get the file that the error is talking about and post what your line 84 is so we can see if there is an error. It's Probably something simple, like a minor mistake when you installed it.
  5. compwhizmm90

    ccgv free shipping bug

    Exactly! The problem is the free shipping coupon is decucted from the products total and not the shipping total. So if someone buys something that is cheaper than the shipping cost, they end up with a negative subtotal and for some reason Oscommerce does not redirect them to paypal to be charged. It just takes them to the payment complete page. Thanks!!
  6. compwhizmm90

    ccgv free shipping bug

    Hi, I am using ccgv and the paypal ipn contribution. When I create a coupon for nothing but free shipping and if the customer enters the coupon on the site, it subtracts the shipping fee from the products total and not the shipping total. (does that make sense) The problem is when the user is buying something for less than the shipping fee and the user is not being passed to paypal to be charged. The same thing happens with other payment methods. Example: My shipping fee is $5.00. A customer buys an item for $3.00. He/She puts in the coupon code that I set up for free shipping. CCGV subtracts $5.00 from the products before the shipping fee is added in. For some reason that messes up my store and takes the person straight to checkout success without sending them to paypal. Does anyone know how to fix this? Thanks!!! (I am sorry this is so hard to explain) Again, Thanks!!
  7. compwhizmm90

    Which paypal contribution do you recommend?

    This one is really good. I installed it and it worked perfectly on my store. http://www.oscommerce.com/community/contri...te+payments+pro
  8. compwhizmm90

    [Contribution] STS v4

    I have fixed the above problem. I had deleted the right column and It will now work without that.
  9. compwhizmm90

    [Contribution] STS v4

    Hi, I really like this contribution so far, it seems like my site is going to look a lot better now that I can use this. My only problem is that when I use the $content, nothing show up. It is just blank where that tag is. The menus and everything else shows up great, I just can't get the content to show up. Did I miss something, or is there a bug. Thanks for your time and help!!! :)
  10. compwhizmm90

    paypal ipn and ccgv

    I originally had this problem a long time ago. I started this thread. I fixed this by changing the ipn contribution to this one http://www.oscommerce.com/community/contri...,all/search,ipn I actually like it a lot better anyway
  11. compwhizmm90

    Automatically send data feed to Froogle

    Actually I am selling flower seeds and I named all of my products with their Flower name and I was wanting to add the word flower seeds so that when I type flower seeds in froogle it will pull up my products Do you know how?
  12. compwhizmm90

    Automatically send data feed to Froogle

    Does anyone know how to add text after the title in from my store. For example my title is TITLE and I want to add TEXT to it so that it shows up like this in froogle TITLE TEXT but I only want it to do that if it is in a certain Category. If anyone knows how to please respond. Thanks for the contribution, it saves so much time!
  13. compwhizmm90

    paypal ipn and ccgv

    I am using the following paypal ipn contribution http://www.oscommerce.com/community/contri...,all/search,ipn and ccgv 1.51a. When I enter a coupon code it passes the original amount to paypal not the discounted amount. I have looked on the forums and cannot find a solution. Please help thanks
  14. Ok I got the admin section to work. I had not copied all of the sql code. My images are also the correct sizes. But, my images still are not being being resized. There isn't anything in the thumbnail folder and the image urls do not contain imagemagic.php. Please help! Thanks!!!
  15. I think I installed this succesfully. But now all of my images show up really big. I adjusted the image sizes in the admin section but it did not work. Also, is there supposed to be a special admin menu for this? I don't see it in my config list. The "Product Information Image Width" option is there but I don't see another seperate menu. Also my images do not point to imagemagic.php. I would like to use this because all of the features but I can't get it to work.