whitsey Posted July 10, 2013 Posted July 10, 2013 Hoping someone can explain the architecture of oscommerce for me because something happened I am at a loss to explain. I wanted to add additional information to the order email so I found the code and edited the file I believe built the email: checkout_process.php. I added in 2 lines of code and it appeared to work as expected - my emails were now containing the extra information. Side Note: I have had a problem recently (which I don't think is related but will add for additional context) where the web server reached capacity and shutdown. I cleaned it out and restarted and all was fine (this issues started happening after this). My Problem: the last 2 email orders that have been received have dropped the information I added. I have gone back into the file and the code is still there - everything surrounding it is being included except the code I added. I simply "touched" the file so that it had a last modified date of today, tested the process again and voilà! The information is back again, appearing as expected! Can anyone explain how this could possibly happen? Perhaps oscommerce operates on compiled version of the code which somehow reverted? While the problem is fixed now, I'd really like to understand what could possibly have happened to cause this? Any help would be appreciated.
♥bruyndoncx Posted July 10, 2013 Posted July 10, 2013 you might have some optimizer on the website, oscommerce itself doesn't use compiled code, but as a performance optimization your webhost might have zend or apc or other thing running you should ask your webhost to be sure KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt
whitsey Posted July 15, 2013 Author Posted July 15, 2013 Thanks for your response. After some digging I discovered that there is a separate email order process that is used when purchases are made through paypal - checkout_process is not used and instead, paypal_notify is used. I have copied the code across the the 2nd file. Is there a chance there is another email file that I have missed somewhere?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.