NancyL7 Posted October 27, 2006 Share Posted October 27, 2006 Hi! I'm getting some errors.. and I need some help. When I go to turn the module on in the admin console.. I get: Warning: main('........./includes/languages/english/modules/order_total/gv_faq.php): failed to open stream: No such file or directory in ......./admin/modules.php on line 133 Warning: main(): Failed opening '........./includes/languages/english/modules/order_total/gv_faq.php' for inclusion (include_path='.:/usr/local/share/pear') in ....../admin/modules.php on line 133 I get the same errors for gv_redeem.php and gv_send.php. I've checked the download for the last two releases, and neither have these files included (unless I'm totally skewed.. which is entirely possible!). These files are in ........./includes/languages/english/modules/ Should I move them???? Have I done something incorrectly???? Or missed something?? Thanks, Nancy Quote Link to comment Share on other sites More sharing options...
NancyL7 Posted October 27, 2006 Share Posted October 27, 2006 Hi! I'm getting some errors.. and I need some help. When I go to turn the module on in the admin console.. I get: Warning: main('........./includes/languages/english/modules/order_total/gv_faq.php): failed to open stream: No such file or directory in ......./admin/modules.php on line 133 Warning: main(): Failed opening '........./includes/languages/english/modules/order_total/gv_faq.php' for inclusion (include_path='.:/usr/local/share/pear') in ....../admin/modules.php on line 133 I get the same errors for gv_redeem.php and gv_send.php. I've checked the download for the last two releases, and neither have these files included (unless I'm totally skewed.. which is entirely possible!). These files are in ........./includes/languages/english/modules/ Should I move them???? Have I done something incorrectly???? Or missed something?? Thanks, Nancy Hey.. I figured it out!! I had loaded 3 files in includes/modules/order_total erroneously!!! My-bad... sorry. Thanks for thinking about it though!! -Nancy Quote Link to comment Share on other sites More sharing options...
nellac Posted October 27, 2006 Share Posted October 27, 2006 I'm looking for some guidence here. Yesterday I finished installing CCGV (trad) 2 Oct 2006 edition on my test osc website (build MS2 - 060817) which was run from a XAMPP server (apache+php4+mysql) under Windows XP environment. I followed the instruction closely, and everything appeared to be running as they should after the installation, I was able to issue coupons and/or gift vouchers and have them redeemed at checkout except one problem: :huh: I found that at the payment screen (checkout_payment.php), whether it'd be a valid coupon or a gift voucher which was used, when I clicked on the "redeem" or "continue" button on that page, it took me straight to the next screen which is the checkout_confirmation page with no "credit" applied at all. If I hit the "back" button on the browser to get back to checkout_payment, and repeat the previous procedure, then I got to the next page with the "credit" applied properly... This gets worse if the amount of the "credit" is greater than the total value of the shopping cart. Naturally one would assume that if there is sufficient "credit" in their account to cover their purchase, they wouldn't have to nominate a payment method. However in this case, the system still required me to select a payment method but if I hit the "redeem" button enough number of times, even without selecting a payment option, the system would eventually let me through to the checkout_confirmation screen with the "credit" applied correctly... Is this a bug or is the behaviour of the button not set correctly? Have I missed anything mission critical. I'd appreciate if someone can give me some advice so I can stop pulling my hair out. Thank you kindly. Quote Link to comment Share on other sites More sharing options...
NancyL7 Posted October 27, 2006 Share Posted October 27, 2006 Hi! Great Contribution! I have a bug, that I don't know how to fix.... If the product is more than the amount in the gift cert ... If the customer checks the 'tick' to use the gift cert, but forgets to check how to pay for the remaining balance, When he clicks 'redeem' or 'continue', instead of giving an error and staying on this page, it kicks the customer out to the login screen, but he can't login again.. unless he closes the browser and starts over. Conditions: 1. Gift Cert balance 2. Purchase is more than Gift Cert Balance 3. No additional payment type selected 4. Clicks 'redeem' or 'continue' Result: Kicked out and locked up Should be: Display error and stay on page. How can this be fixed? Thanks Nancy Quote Link to comment Share on other sites More sharing options...
♥Vger Posted October 27, 2006 Author Share Posted October 27, 2006 If you're getting kicked out to the login screen then it means that your site is dropping the session - and that's all to do with the site and nothing to do with CCGV(trad). Vger Quote Link to comment Share on other sites More sharing options...
NancyL7 Posted October 27, 2006 Share Posted October 27, 2006 If you're getting kicked out to the login screen then it means that your site is dropping the session - and that's all to do with the site and nothing to do with CCGV(trad). Vger But, It works fine when I click an *additional* payment method. It only 'breaks' when there isn't a 'check', paypal or CC radio button choosen (and the amount is greater than the gift certificate). It also works fine, when no gift certificate is selected. -- If no payment is selected, a pop-up box is displayed indicating that a payment must be selected. BUT, when only the gift cert "tick" is checked - and no payment is selected... it bombs. Since the only thing that "breaks" the process is checking the gift cert ... this is why I think there is something 'funny' here... If the gift cert isn't greater than/equal to the payment due, and no payment is selected.... shouldn't there be the same "pop up" message displayed and return to the screen?? This is the way it works without the gift cert...... Don't mean to be 'difficult' but I really think there is a problem I double checked.. and it doesn't drop the 'session' when gift cert is NOT checked... ???? Nancy Quote Link to comment Share on other sites More sharing options...
NancyL7 Posted October 27, 2006 Share Posted October 27, 2006 But, It works fine when I click an *additional* payment method. It only 'breaks' when there isn't a 'check', paypal or CC radio button choosen (and the amount is greater than the gift certificate). It also works fine, when no gift certificate is selected. -- If no payment is selected, a pop-up box is displayed indicating that a payment must be selected. BUT, when only the gift cert "tick" is checked - and no payment is selected... it bombs. Since the only thing that "breaks" the process is checking the gift cert ... this is why I think there is something 'funny' here... If the gift cert isn't greater than/equal to the payment due, and no payment is selected.... shouldn't there be the same "pop up" message displayed and return to the screen?? This is the way it works without the gift cert...... Don't mean to be 'difficult' but I really think there is a problem I double checked.. and it doesn't drop the 'session' when gift cert is NOT checked... ???? Nancy I just checked... It also happens if the gift cert amount is GREATER than the amount due on the purchase. You HAVE to check another payment method.. But, it would still be workable, if the 'pop up' box would come up.. Quote Link to comment Share on other sites More sharing options...
chooch Posted October 28, 2006 Share Posted October 28, 2006 I just checked... It also happens if the gift cert amount is GREATER than the amount due on the purchase. You HAVE to check another payment method.. But, it would still be workable, if the 'pop up' box would come up.. is is CCGV(trad) or the other version that you have installed? Quote Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH Link to comment Share on other sites More sharing options...
♥Vger Posted October 29, 2006 Author Share Posted October 29, 2006 Well, CCGV(trad) doesn't have the pop-up because everything is auto-queued. Vger Quote Link to comment Share on other sites More sharing options...
NancyL7 Posted October 29, 2006 Share Posted October 29, 2006 Well, CCGV(trad) doesn't have the pop-up because everything is auto-queued. Vger I installed CCGV Traditional installed. Don't know why I get a pop up (stating that I must select a payment button).. but I do, but only when I don't check the Gift Cert 'tick'.. and don't check a payment button I was thinking, that possibly when the Gift Cert was checked.. and there wasn't a payment button checked.. that CCGV doesn't know how to handle the pop up code.. and that is why it is bombing???? Just thinking outloud.. I'm using the latest patch level.. 060817 ... do you think that may make a difference???? And payment module PayPal IPN.. Quote Link to comment Share on other sites More sharing options...
chooch Posted October 29, 2006 Share Posted October 29, 2006 (edited) I'm using the latest patch level.. 060817 ... do you think that may make a difference???? And payment module PayPal IPN.. I don't know what you mean by 060817, but Paypal IPN should make no difference about the pop-ups. You have obviously added other contributions that affect the checkout - that/those are causing the problem. Edited October 29, 2006 by chooch Quote Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH Link to comment Share on other sites More sharing options...
♥Vger Posted October 29, 2006 Author Share Posted October 29, 2006 I get a pop up (stating that I must select a payment button).. but I do, but only when I don't check the Gift Cert 'tick' Then either your payment modules or CCGV(trad) are not installed correctly. Vger Quote Link to comment Share on other sites More sharing options...
NancyL7 Posted October 30, 2006 Share Posted October 30, 2006 I don't know what you mean by 060817, but Paypal IPN should make no difference about the pop-ups. You have obviously added other contributions that affect the checkout - that/those are causing the problem. You are probably right about the "other contribution".... Or its interaction with this contrib. FYI: 060817 = the latest update release for the osCommerce 2.2 milestone See: http://www.oscommerce.com/solutions/downloads Quote Link to comment Share on other sites More sharing options...
NancyL7 Posted October 30, 2006 Share Posted October 30, 2006 Then either your payment modules or CCGV(trad) are not installed correctly. Vger Vger, A fresh install of osCommerce milestone 2.2 with update level 060817, with NO modifications Does indeed, have the 'popup' action I described. I've attached a Screen Print. Therefore, it is not merely another contribution that adds the popup, but the official osCommerce release (060817). I truly believe that there is some incompatibility with the 'pop up'. Because CCGV works PERFECTLY when the pop up is not employed (ie. another payment method is selected) - but bombs when the popup is suppose to appear. Since you said earlier that "Well, CCGV(trad) doesn't have the pop-up because everything is auto-queued." I'm thinking that these may be incompatible. I'm hoping that you will work (with me if necessary) to find a solution to this problem, so that CCGV will be compatible with more contributions and/or the new official update. If it is not the update, and it is another contrib, then it would be beneficial to find out what it is, to see if it can be corrected. - or at least document the contrib not compatible with this modification. I am trying to get a php editor installed and working to attempt to debug this.. but, am having a frustrating time. I would really appreciate your help with this problem - I'm an old programmer, current dba, but am very new to php programming and osCommerce. You, on the other hand, have a wealth of expertise and experience. Vger, A fresh install of osCommerce milestone 2.2 with update level 060817, with NO modifications Does indeed, have the 'popup' action I described. I've attached a Screen Print. Therefore, it is not merely another contribution that adds the popup, but the official osCommerce release (060817). I truly believe that there is some incompatibility with the 'pop up'. Because CCGV works PERFECTLY when the pop up is not employed (ie. another payment method is selected) - but bombs when the popup is suppose to appear. Since you said earlier that "Well, CCGV(trad) doesn't have the pop-up because everything is auto-queued." I'm thinking that these may be incompatible. I'm hoping that you will work (with me if necessary) to find a solution to this problem, so that CCGV will be compatible with more contributions and/or the new official update. If it is not the update, and it is another contrib, then it would be beneficial to find out what it is, to see if it can be corrected. - or at least document the contrib not compatible with this modification. I am trying to get a php editor installed and working to attempt to debug this.. but, am having a frustrating time. I would really appreciate your help with this problem - I'm an old programmer, current dba, but am very new to php programming and osCommerce. You, on the other hand, have a wealth of expertise and experience. Thank you, Nancy Thank you, Nancy Quote Link to comment Share on other sites More sharing options...
chooch Posted October 30, 2006 Share Posted October 30, 2006 (edited) Vger, A fresh install of osCommerce milestone 2.2 with update level 060817, with NO modifications Does indeed, have the 'popup' action I described. I've attached a Screen Print. I never knew there were any updates to MS2.2 after November 2005, however the new download is NOT casuing the problem. From your image all it shows is that you have NOT selected a method of payment, which in your case as the image shows has to be cash or credit card and tried to press continue. The same pop-up occurs to all osC sites with or without the latest download if you try to continue with checkout without selecting a form of payment. Do you have an image from your own site with CCGV installed where this problem is happening? Edited October 30, 2006 by chooch Quote Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH Link to comment Share on other sites More sharing options...
NancyL7 Posted October 30, 2006 Share Posted October 30, 2006 I never knew there were any updates to MS2.2 after November 2005, however the new download is NOT casuing the problem. From your image all it shows is that you have NOT selected a method of payment, which in your case as the image shows has to be cash or credit card and tried to press continue. The same pop-up occurs to all osC sites with or without the latest download if you try to continue with checkout without selecting a form of payment. Do you have an image from your own site with CCGV installed where this problem is happening? Thank you for the information. I did not know that other releases had popups at this point. Yes, I know I had not selected the "payment option" This is what I've been trying to say!!!!!!!!! That osC does have popups. it is at this point (the popup) that the code fails for me. That if the customer selects the "gift cert" tick, without selecting a "payment option" CCGV SHOULD WORK JUST LIKE osCOMMERCE!!!!! and give this popup BUT IT IS BOMBING! It doesn't like the popup code evidently (at least that is a theory) To say what I've been saying all along: If a customer checks the "use my gift cert balance" AND does NOT check another payment option it bombs (kicks customer out of osC) If a customer selects "use my gift cert balance" AND DOES check another payment option - it works PERFECTLY If a customer DOES NOT select "use my gift cert balance" it works PERFECTLY. -Nancy I Quote Link to comment Share on other sites More sharing options...
♥Vger Posted October 30, 2006 Author Share Posted October 30, 2006 Okay - one more time. I have (again) installed CCGV(trad) on the latest version of osCommerce (last month). No modifications other than CCGV(trad) applied. Scenario 1. I go through checkout to the Checkout Payment page, enter a Discount Voucher code, click on the Redeem button without selecting a payment method and get the expected error message in red at the top of the page "Please select a payment method for your order". Scenario 2. I go through the checkout process to the Checkout Payment page, tick the Redeem box for a Gift Voucher (this time), click to Continue or to Redeem and get the "Please select a payment method for your order" error message in red at the top of the page. Vger Quote Link to comment Share on other sites More sharing options...
NancyL7 Posted October 30, 2006 Share Posted October 30, 2006 Okay - one more time. I have (again) installed CCGV(trad) on the latest version of osCommerce (last month). No modifications other than CCGV(trad) applied. Scenario 1. I go through checkout to the Checkout Payment page, enter a Discount Voucher code, click on the Redeem button without selecting a payment method and get the expected error message in red at the top of the page "Please select a payment method for your order". Scenario 2. I go through the checkout process to the Checkout Payment page, tick the Redeem box for a Gift Voucher (this time), click to Continue or to Redeem and get the "Please select a payment method for your order" error message in red at the top of the page. Vger Thank you for this - I know your time is valuable and I appreciate your checking. It was kind. May I ask, 1. why you get a "red error message" at the top of the page, rather than the error pop up box? Does CCGV change this behavior, or is there some other reason? 2. Where in the code do I look for the "red error message" code? Would you tell me that if you know, so that I can try to track this down? And find out just what is causing my code to abort. 3. If you do not put a discount voucher, or tick the Redeem box, nor select a payment type, do you get the "red error message" or a pop up box? My interest, is because it is at this exact place that my code bombs. The popup is what the osC does without this CCGV installed (per virgin install and chooch conversation). Thank you, Nancy Quote Link to comment Share on other sites More sharing options...
♥Vger Posted October 30, 2006 Author Share Posted October 30, 2006 includes/languages/english.php: define('JS_ERROR_NO_PAYMENT_MODULE_SELECTED', '* Please select a payment method for your order.\n'); Please don't tell me that we've gone through all this because you're using Firefox with Javascript disabled!! Vger Quote Link to comment Share on other sites More sharing options...
chooch Posted October 30, 2006 Share Posted October 30, 2006 (edited) May I ask, 1. why you get a "red error message" at the top of the page, rather than the error pop up box? Does CCGV change this behavior, or is there some other reason? 2. Where in the code do I look for the "red error message" code? Would you tell me that if you know, so that I can try to track this down? And find out just what is causing my code to abort. 3. If you do not put a discount voucher, or tick the Redeem box, nor select a payment type, do you get the "red error message" or a pop up box? My interest, is because it is at this exact place that my code bombs. The popup is what the osC does without this CCGV installed (per virgin install and chooch conversation). 1. CCGV doesn't change the behaviour, all it does is NOT include the command for the form check file in catalog/includes/form_check.js 2. You can find the 'red error message & redeem code text' in catalog/includes/add_ccgvdc_english.php BUT that file will not help you if you want the 'error' messages to show in a pop-up instead of a red header. 3. If no method of payment is selected and then a stock osC pop-up appears but if GV is checked or the redeem button pressed then the red header error banner is shown. It's like that for all of us. There is no 'BOMB', all osC sites with CCGV do that because no-one has added the pop-up code in the form_check.js If you want to make the checkout_payment universal pop-up free then do this: </table></form></td> <?php require('includes/form_check.js.php'); ?> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> NOTE: only add the line in bold to the footer of your checkout_payment.php file. I know it isn't the perfect fix but it works, anyway if it helps us move on to other issues so we can forget about the time devoted to the 'pop-up or not to pop-up' messages on this thread - then it is good :D Edited October 30, 2006 by chooch Quote Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH Link to comment Share on other sites More sharing options...
NancyL7 Posted October 31, 2006 Share Posted October 31, 2006 includes/languages/english.php: define('JS_ERROR_NO_PAYMENT_MODULE_SELECTED', '* Please select a payment method for your order.\n'); Please don't tell me that we've gone through all this because you're using Firefox with Javascript disabled!! Vger No, I'm using MSIE 6+ Java scripts in other places are working fine. Thanks for the thought though. -Nancy Quote Link to comment Share on other sites More sharing options...
NancyL7 Posted November 1, 2006 Share Posted November 1, 2006 1. CCGV doesn't change the behaviour, all it does is NOT include the command for the form check file in catalog/includes/form_check.js 2. You can find the 'red error message & redeem code text' in catalog/includes/add_ccgvdc_english.php BUT that file will not help you if you want the 'error' messages to show in a pop-up instead of a red header. 3. If no method of payment is selected and then a stock osC pop-up appears but if GV is checked or the redeem button pressed then the red header error banner is shown. It's like that for all of us. There is no 'BOMB', all osC sites with CCGV do that because no-one has added the pop-up code in the form_check.js If you want to make the checkout_payment universal pop-up free then do this: </table></form></td> <?php require('includes/form_check.js.php'); ?> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> NOTE: only add the line in bold to the footer of your checkout_payment.php file. I know it isn't the perfect fix but it works, anyway if it helps us move on to other issues so we can forget about the time devoted to the 'pop-up or not to pop-up' messages on this thread - then it is good :D Thank you very much for the information. I really don't care if the "red error message" appears or the pop up box. Either or both is fine.. as long as it works. It seems on my site, that when the "red error message" tries to appear, the customer get's kicked out of osC and can't get back in without closing the browser and starting a new browser session. Everything works fine on my site with CCGV, until it tries to display the "red error message". Again, thanks so much for the information.. it may help me in tracking this down. If you have any other ideas.. let me know!!! And, thanks for the snippet of code.. I'll look at it!!! -Nancy PS. Something else I thought of.. was to just default to have a payment method checked. Everything works fine if a payment method is checked... no popups or red messages to worry with. What do you think of that?? Quote Link to comment Share on other sites More sharing options...
NancyL7 Posted November 3, 2006 Share Posted November 3, 2006 Woo! I finally figured it out!!! Does anyone else have Ultimate SEO URLs v2.1 installed? Are you running ok with it? Because I found that Ultimate SEO URLs, changed the tep_href_link.. when I changed that one function back, voila! No more problems!!! VGER.. you may want to make a note of this on the instruction doc.. as Ultimate SEO URLs is a popular mod. I'll bet-ya the other CGV has the same issue with Ultimate SEO.... unless for some reason, it is only my installation that isn't compatible! Wow.. I'm so excited! I've been working on this way too long! Yippee... I'm going out to celebrate. Thanks Vger and Chooch!! for all your help. -Nancy Quote Link to comment Share on other sites More sharing options...
hankster6911 Posted November 4, 2006 Share Posted November 4, 2006 I've installed CCGV on two sites, one is working correctly so far thru my testing the other I am having a little bit of an issue when placing an order. When I place the order no order number is produced, it is a 0, the purchased gift certificate is placed in the query, all emails are sent but the order does not show up in my admin under customers/orders. This is with an order with just the voucher or an order with the voucher and other products. I am not really thinking this is a CCGV issue unless I missed something in the install but perhaps more of another mod conflicting, just thought I would start here and see if this has been heard of. Thanks Wendy Quote Link to comment Share on other sites More sharing options...
NancyL7 Posted November 4, 2006 Share Posted November 4, 2006 I've installed CCGV on two sites, one is working correctly so far thru my testing the other I am having a little bit of an issue when placing an order. When I place the order no order number is produced, it is a 0, the purchased gift certificate is placed in the query, all emails are sent but the order does not show up in my admin under customers/orders. This is with an order with just the voucher or an order with the voucher and other products. I am not really thinking this is a CCGV issue unless I missed something in the install but perhaps more of another mod conflicting, just thought I would start here and see if this has been heard of. Thanks Wendy In the admin console.. under modules/gift vouchers.. do you have queued purchased = true? If so, nothing will be done until the admin releases the gift cert. (this is done from the admin console.. Gift Voucher Queue -Nancy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.