Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

JamesS

Archived
  • Posts

    82
  • Joined

  • Last visited

Profile Information

JamesS's Achievements

  1. I installed the SDC last night and everything is working fine - EXCEPT - when I add the item in the Product Attributes and then do a test purchase I get two download links instead of one. If I do a group download then there will be Two links for the last file I add. Does anyone know how to stop it from providing two links for the same download item.
  2. I could use a little help. I have installed Discount Coupon Codes 3.3 + bug fixes Windows Server PHP 5.2 Once I installed the Contribution and added a New Coupon, everything appeared to be great. However, when I clicked on the hyperlink 'online catalog' in the top right hand corner of the /admin screen to take me to my web site it opened a version of my admin Screen in a very basic/ diluted way. It was a mix between the /admin index.php, and my catalog index.php. If I click the refresh button many times it would eventually open the catalog Index.php file cleanly. However, as I would walk a test order through it would give me various errors and fatal errors, but if I clicked refresh once it would usually clean that up. And after alot of refreshing and errors I could walk the order through. Once the coupon had been used it I would not expreince this problem anymore. But if I completed a New Coupon, I would get the same issue all over again. Even if I typed my URL into the address bar I would get the same issue on my index.php file. I have moved my Catalog folder to my root folder, would this cause any issues? I also contacted my hosting company, but they are never really any help. Can anyone point me in the right direction with this issue? Or has anyone experienced this issue.
  3. Thanks KGT - I will start working on this tonight.
  4. In the readMe File in the Contrib, it has a Q&A Section near the bottom that addresses this better than my answer. But I believe it said no you do not 'Have' to have SSL for it to work properly. But I would check that in the ReadMe File
  5. I have put the DCC contribution on another site I built a few months ago, and at that time I needed to install the earlier version and then work my way up because of changes needed in the DB. I love this contribution and want to add it to a new site I just finished. In what order do I need to install the Discount Coupon Codes Contribution? Meaning do I need to start at ver 1.4 and go up or can I just install the latest version now? Thanks for your help
  6. I may have found a solution to all my ailments in Paypal_ipn regarding viewing the IPN.PHP file and the error it caused If you read my previous few logs starting on page 141 you will see that after installing PayPal IPN 2.2 I was having trouble opening the EXT/MODULES/PAYMENT/PAYPAL_IPN/IPN.PHP file. I would get all kinds of fatal errors and warnings about not being able to open certian files. No matter what I did: Changed the chdir from 0-10 (ie. ../ to ../../../../etc), I hardcoded my files (whiched caused even more problems), to adding a new file called ipn_application_top.php into the PAYPAL_IPN folder, to cursing, to tapdancing, to what ever. i could not get the IPN.PHP file to work. So I had the idea of moving the IPN.PHP file to the root folder, removing the chdir('../../../../'); line and testing it by going to www.mysite.com/ipn.php to see if it would work correctly. This would rule out if the file IPN.PHP or the chdir was the problem. When it worked properly, I went to my PAYPAL_IPN.PHP file in includes/modules/payment/Paypal_ipn.php and changed the require line from $parameters['notify_url'] = tep_href_link('ext/modules/payment/paypal_ipn/ipn.php', '', 'SSL', false, false); to $parameters['notify_url'] = tep_href_link('ipn.php', '', 'SSL', false, false); made a few test orders, and viola! everything is working great! Do any coders see this as a potential issue? I could not get the chdir to work properly in the IPN.PHP ext folder so I thought I would move it to the root and change the files that referred to it there. Will this cause any forseealbe future issues?
  7. Please Read This Post I Still Need Assistance... Please help I have gotten my EXT/MODULES/PAYMENT/PAYPAL_IPN/IPN/PHP page to return blank, but not without allot of hardcoding and small modifications. Here is what I did: In my IPN.PHP file I removed the CHDIR line and Require line and replaced it with this - Require('ipn_application_top.php'); at the bottom I replaced the last line with this - tep_db_close(); I then created a new file to put into my Paypal_ipn folder with IPN.PHP called ipn_application_top.php The code in that is this (I hardcoded the require pages to my hosting folders) - <?php // ipn_application_top.php, v 1.0 chdir('../../../'); // include server parameters //require('/includes/configure.php'); require('D:/hosting/member/MYSITE/includes/configure.php'); // include the list of project database tables //require(DIR_WS_INCLUDES . 'database_tables.php'); require('D:/hosting/member/MYSITE/includes/database_tables.php'); // include the database functions //require(DIR_WS_FUNCTIONS . 'database.php'); require('D:/hosting/member/MYSITE/includes/functions/database.php'); // make a connection to the database... now tep_db_connect() or die('Unable to connect to database server!'); // set the application parameters $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); while ($configuration = tep_db_fetch_array($configuration_query)) { define($configuration['cfgKey'], $configuration['cfgValue']); } // Add in specific other functions function tep_not_null($value) { if (is_array($value)) { if (sizeof($value) > 0) { return true; } else { return false; } } else { if (($value != '') && ($value != 'NULL') && (strlen(trim($value)) > 0)) { return true; } else { return false; } } } // Return a random value function tep_rand($min = null, $max = null) { static $seeded; if (!isset($seeded)) { mt_srand((double)microtime()*1000000); $seeded = true; } if (isset($min) && isset($max)) { if ($min >= $max) { return $min; } else { return mt_rand($min, $max); } } else { return mt_rand(); } } // Wrapper function for round() function tep_round($number, $precision) { if (strpos($number, '.') && (strlen(substr($number, strpos($number, '.')+1)) > $precision)) { $number = substr($number, 0, strpos($number, '.') + 1 + $precision + 1); if (substr($number, -1) >= 5) { if ($precision > 1) { $number = substr($number, 0, -1) + ('0.' . str_repeat(0, $precision-1) . '1'); } elseif ($precision == 1) { $number = substr($number, 0, -1) + 0.1; } else { $number = substr($number, 0, -1) + 1; } } else { $number = substr($number, 0, -1); } } return $number; } // include currencies class and create an instance // require(DIR_WS_CLASSES . 'currencies.php'); require('D:/hosting/member/MYSITE/includes/classes/currencies.php'); $currencies = new currencies(); // charset for emails define('CHARSET', 'iso-8859-1'); // include the mail classes // require(DIR_WS_CLASSES . 'mime.php'); require('D:/hosting/member/MYSITE/includes/classes/mime.php'); // require(DIR_WS_CLASSES . 'email.php'); require('D:/hosting/member/MYSITE/includes/classes/email.php'); // Send an Email function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) { if (SEND_EMAILS != 'true') return false; // Instantiate a new mail object $message = new email(array('X-Mailer: osCommerce Mailer')); // Build the text version $text = strip_tags($email_text); // if (EMAIL_USE_HTML == 'true') if (EMAIL_USE_HTML == 'false') { $message->add_html($email_text, $text); } else { $message->add_text($text); } // Send message $message->build_message(); $message->send('', $to_email_address, $from_email_name, $from_email_address, $email_subject); } ?> I changed the EMAIL_USE_HTML to 'False' because I want a 'text' email sent. The final changes I made were in the /classes/email.php file. I had to comment out the lines that refered to the HTML emails around lines 150-160. Once I added this ipn_application_top.php file and made the hardcoding changes I would get the blank IPN.PHP file when I went to Http://www.MYSITE.com/ext/modules/payment/paypal_ipn/ipn.php - BUT I received an email after I accessed this page that said nothing more than - ARRAY I then placed a test order and everything processed well. Paypal came back to my site and updated the Preparing (paypal_ipn) to Pending; however, no emails were sent and I got a comment in my /Admin/ of Paypal IPN Invalid [Complete] I do not know anything about PHP coding. I made all of these changes based off of information posted by other members found within this Official Post for PayPal IPN. Can someone please help me correct my errors so that the Emails and orders are processed properly. your assistance is greatly appreciated
  8. I am responding to my own issue and have corrected much of these errors listed above by hardcoding my website address into the appropriate code for each warning. Each time I would hardcode the site address, a new one would pop up, but I have narrowed it down to these two fatal errors. Can anyone please help me clear these two errors: I get both of them when I go to my ipn.php page. Fatal error: Call to undefined function: tep_db_connect() in d:\hosting\member\MYSITE\includes\application_top.php on line 70 Fatal error: Call to undefined function: tep_not_null() in d:\hosting\member\MYSITE\ext\modules\payment\paypal_ipn\ipn.php on line 303 Also - should I have hard coded my website into the application_top.php in the require ('includes/whatever.php') lines? or was there an easier way to correct the above errors. Any assistance with these issues would be very helpful. I would love it if I could get the paypal_ipn config working today.
  9. Hello, I have just installed the Paypal IPN 2.2 and it works about 60%. 1. When I place an order it updates everything except it does not move my Order Status to Pending once the customer returns to the Checkout_success.php page. It remains at PreParing (paypal ipn) 2. No Order email is sent when the purchase is complete either to the customer. It does send an email once I manually change the order status from PreParing (paypal ipn) to processing. I have searched this forum for an answer and have not found anything precise to my problem, but I ran across a thread that said to go to your WWW.MY SITE.com/ext/modules/payment/paypal_ipn/IPN.PHP file and make sure you get a blank page. I do not get a blank page when I do so I get the following errors and warnings. Warning: chdir() [function.chdir]: No such file or directory (errno 2) in d:\hosting\member\mysite\ext\modules\payment\paypal_ipn\ipn.php on line 13 Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in d:\hosting\member\mysite\ext\modules\payment\paypal_ipn\ipn.php on line 14 Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in d:\hosting\member\mysite\ext\modules\payment\paypal_ipn\ipn.php on line 14 Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in d:\hosting\member\mysite\ext\modules\payment\paypal_ipn\ipn.php on line 14 Fatal error: main() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.;c:\php4\pear') in d:\hosting\member\mysite\ext\modules\payment\paypal_ipn\ipn.php on line 14 Can anyone help me out with this? Thanks
  10. Hello, I have just installed the Paypal IPN 2.2 and it works about 60%. 1. When I place an order it updates everything except it does not move my Order Status to Pending once the customer returns to the Checkout_success.php page. It remains at PreParing (paypal ipn) 2. No Order email is sent when the purchase is complete either to the customer. It does send an email once I manually change the order status from PreParing (paypal ipn) to processing. I have searched this forum for an answer and have not found anything precise to my problem, but I ran across a thread that said to go to your WWW.MY SITE.com/ext/modules/payment/paypal_ipn/IPN.PHP file and make sure you get a blank page. I do not get a blank page when I do so I get the following errors and warnings. Warning: chdir() [function.chdir]: No such file or directory (errno 2) in d:\hosting\member\mysite\ext\modules\payment\paypal_ipn\ipn.php on line 13 Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in d:\hosting\member\mysite\ext\modules\payment\paypal_ipn\ipn.php on line 14 Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in d:\hosting\member\mysite\ext\modules\payment\paypal_ipn\ipn.php on line 14 Warning: main(includes/application_top.php) [function.main]: failed to open stream: No such file or directory in d:\hosting\member\mysite\ext\modules\payment\paypal_ipn\ipn.php on line 14 Fatal error: main() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.;c:\php4\pear') in d:\hosting\member\mysite\ext\modules\payment\paypal_ipn\ipn.php on line 14 Can anyone help me out with this? Thanks
  11. Please disregard this post - I should have been posted under Discount Coupon Contrib support thread.
  12. A year ago I added this contrib to a site I have and I love it. But to make it work right I think I had to install 1.4 first and then a later version. Now that there are quite a few more versions, in which order do I need to install this contrib and what versions are needed? Thanks
  13. Thanks - that is the thread I was looking for. I had read it was better to use percentages rather than fixed when I was looking for a Coupon Contrib, but I thought I would install this discount contribution instead of any others (I thought it was better suited). Since I do not display my products with tax, I will add the code suggested in the post to my site this evening. Your help has been appreciated greatly.
  14. Thanks for your help KGT! I finally have this contribution working. I doublechecked each of these codes and both were correct. So I re-installed a few other pages and somewhere in the process it worked. Thanks for your help. I do have one question regarding the Sub totals deduction working properly... I am going to mainly use this for a fixed discount or rather for Gift Cards of 25 - 50 - 100. I would feel pretty bad if someone bought some merchandise and it deducted 99.90 (or whatever) instead of $100 What is the best way to ensure that the proper amount is deducted and the rounding does not come into play? Have there been any bug fixes for this yet? Once again thanks for all your help on this contribution - I am so happy that it works! James
  15. Thanks Once again - All appears to be working (at least I do not get any errors) but as I work through the checkout it never added (or deducts) the coupon. Now I am completely lost. Any thoughts?
×
×
  • Create New...