Guest Posted July 28, 2004 Posted July 28, 2004 In the Admin panel, I enabled 3 payment methods to test this cart: PayPal, Cash on Delivery, and Check/Money Order. When I try purchasing a tape for 89 cents, oscommerce lets me enter my shipping address and select my shipping method. At the second checkout page at the Payment Information in the Payment Method box it says "This is currently the only payment method available to use on this order." and nothing more. The payment method isn't listed or anything. I've gone back to the Admin control panel and it doesn't change. Is there anyway for me to fix this without knowing PHP? (read on) I am a :blink: Newbie who has a friend, Dave, who knows PHP. Dave is also new to osCommerce so I usually surf the posts and give them to Dave to implement. As a newbie, I'll read any link you send my way and continue to understand how this works. Are there any good overviews you can recommend for either of us? B) I am happy to make graphics in return! Adding Payment Methods to checkout_payment.php I gather that the responsible php file is called checkout_payment.php? How does this file need to be fixed to work? Is there anyway to get the Admin panel to make these changes so I don't have to bug Dave? Please post some information about what we can try to fix this. PayPal Ultimately, we want to get the cart started by first accepting PayPal. In the Admin Panel, they only asked for the PayPal's merchant account email. Is that enough to make it work? From what I read (with minimal understanding) there seems to be more involved. If we need to do further PHP coding, please point Dave and I in the right direction! PayPal Extras I have read posts mentioning passing variables from the cart into paypal so the customer doesn't have to re-enter the information (which sounds great) but unable to find a comprehensive explanation that I could give Dave. (Any links to that would be awesome!) Other posts cited Pablo's contribution about IPN's so I'll give that to Dave. checkout_payment.php If it needs to be fixed, please answer because my friend, Dave, will be able to adjust the php coding for this. Thanks in advance! Mary Quote
Guest Posted July 28, 2004 Posted July 28, 2004 I'm still hoping for answers but I do have more questions. Is a "checkout_payment.php" supposed to be in both the main store folder AND in the Includes -->Languages --> English --> Modules folder? Upon looking at the PHP file in Modules folder - it never gets called but should. My cart never asks the user to 'Please select the preferred payment method to use on this order.' What PHP file is supposed to call the checkout_payment.php file from the Modules folder? Could that be where the error is? Quote
pronane Posted June 5, 2006 Posted June 5, 2006 i have the exact same problem but its just with paypal and i cant figure itout. Quote
Guest Posted June 8, 2006 Posted June 8, 2006 The following correspondences solved the problem. First use the control panel to get the check/money order working. After I did that, the PayPal worked! Check/Money Order Below are email correspondences with Kerry Watson, the author of The osCommerce Technical Manual -------------------------------------------------------------------------------- Kerry, ... none of the payment methods show... -------------------------------------------------------------------------------- Mary, ...a quick guess would be that in the administrative module you have set all payment methods to (sort order) zero or to the same sort order. Go into the admin module and select Modules-payment and check the sort order. Of course that might be way too easy. ;-) -------------------------------------------------------------------------------- Kerry, I did check the sort orders and they were set fine 1,2 and 3. The second screen to checking out has a box for Payment Method, but merely displays a sentence 'This is currently the only payment method available to use on this order.' However, no method is displayed, not even the "only payment method" that is supposed to be available. ... -------------------------------------------------------------------------------- Mary, ...Have you manually messed with the code in either of the checkout_payment.php files? Have you installed any contributions that would have, especially ZONE PAYMENT which is buggy? I would UNINSTALL ALL payment methods but cash/check, and try a test order that way. If that works I'd install one payment module at a time until it breaks again. -------------------------------------------------------------------------------- Hi Kerry, It worked! with some glitches First, I uninstalled all payment methods except cash/check (Sort Order 1). In the payment method box, it only stated 'This is currently the only payment method available to use on this order.' It never stated that the method was cash/check. I want to fix that. For cash/check, I want to add some notes like you have on your cart that the order will be sent after the funds clear. But it appeared to go through. Second, I installed PayPal with sort order 0 and keeping cash/check as sort order 1. I went to make a purchase and the same error occurred. The payment method box stated 'This is currently the only payment method available to use on this order.' It should have given me a choice, but didn't. I kept going and sure enough, PayPal opened up and it went through! Third, I installed cash/check with sort order 1 and PayPal with sort order 2. In the payment method box, it only stated 'This is currently the only payment method available to use on this order.' AND it listed PAYPAL below that sentence. Finally, customers know what payment method they can use! I do want customers to have a choice of different methods. Fourth, I installed cash/check with sort order 3 and PayPal with sort order 2. Again, in the payment method box, it only stated 'This is currently the only payment method available to use on this order.' AND it listed PAYPAL below that sentence. Fifth, I uninstalled cash/check and installed Cash On Delivery with sort order 1 keeping sort order 2 for PayPal. In the payment method box, BOTH were listed in the right order with the radio buttons to select! Sixth, I tried to add the check/money order, but no luck. I guess this is the problem. What do you suggest? Can I fix this without reinstalling the entire cart? Dave is my PHP guy, but I need to tell him what files to work on because he doesn't know oscommerce. Mary -------------------------------------------------------------------------------- Awesome, Mary!!!!!! Congrats! I find that very few people actually pay with check because of the delays, but sometimes they have no other choice. Now, this does not FIX your check problem, but it does allow folks to order while you solve it. You might try doing what I do: adding a page to your InfoBox called "Payment Methods." Customers *want* to know what payment methods there are BEFORE they are at the end of checkout, anyway! Take a look at my site... http://www.oscommerceusersguide.com and see the Information box on the left. You can copy the language I use if you like! Because it's important to inform them about the long delays involved with cash/check, otherwise it is the method MOST susceptible to fraud. If it is not too late, you might consider installing a "Loaded" version of osCommerce which has all this stuff pre-sorted out for you. I really, really like AABox's MS2-MAX version. Dave will have a fun time looking at the stuff they have done to it, too! Let me know if you want the link to MS2-MAX download, it's hard to find but I will dig it out of the advanced Technical Manual for you. Kerry -------------------------------------------------------------------------------- Hi Kerry, I found the link to the MS2-MAX download. Didn't I order the advanced Technical Manual? Do you sell two Technical Manuals? Dave told me to buy the most advanced book I could find. The forums want me to review one of your books, but didn't say which one. Do you use the OSC Affiliate? I was looking into using H4H Affiliate Program so I wanted to know how they compared. It would be easier to install it in a loaded version of osCommerce. I only have 4 products entered in the current shopping cart. I would need to re-do the style sheet, buttons, header, footer, title bar ... Can I cut and paste these? It looks like a days work but if you think it would be worth it, I'll give it a shot. In your chapter on it you explain that the files are substantially altered. Would I be able to have Dave add on an oscommerce contribution that wasn't already installed on the osc loaded version? Would I be able to past in the header and footer file that I already altered in osCommerce? I already added html to make the header and footer fit into my store. If I didn't want to use a template, can I use a blank format and build as I did the site I already have? Any ideas about why the check/money order payment method isn't working? You are right to have an infobox posted on the site before getting to the checkout. If I don't use the loaded verion, where can I find it in your book? Mary -------------------------------------------------------------------------------- Yes, I use OSC Affiliate and love it. You don't have to install it yourself if you get a loaded version! It's already installed and debugged for you. I highly recommend the loaded versions. Did I already mention that? ;-) As long as you always have backups you can try uploading your old style sheet, buttons, etc.... I go into detail how to do that in the technical manual. Check/money order... that is a huge file (checkout_process.php?), and there are many contributions that touch it. If you installed any contributions that touch it, that is why. Backups, m'dear. Adding links to an infobox IS in the technical manual. Take care! Kerry -------------------------------------------------------------------------------- Question about the loaded versions: Your book says that "You MUST follow the Loaded vendor's instrctions on editing of osComerce files, because they are SUBSTANTIALLY ALTERED FROM STANDARD OSCOMMERCE FILES." If I install a loaded version, can I add and additional oscommerce contribution to it? Or, is the loaded version so different that it would be nearly impossible to follow the instructions of an oscommerce contribution? The check/money order files should be intact. I didn't install any contributions. The only files I manipulated are the stylesheet.css and the html sectoins of the header and footer. I also deleted one background table image and created custom buttons for the cart. That is it. Your suggestions worked to reset the payment methods in the Admin area. Is there any way to get the check/money order method working? Thanks in advance, Mary -------------------------------------------------------------------------------- Hi Mary, In my book there are often two sets of directions: one for a "virgin" oscommerce site, the other to a site that has had files altered. When you use a loaded version, it is by definition not a virgin site. Yes, you can add contributions to a loaded version, but you have to hand-add them in and expect to have some conflicts to sort out. In the technical manual I recommend writing a plan for adding contributions so you don't finish with a contribution that has 76 files to hand-edit. The main difference between standard osc and loaded is the template system, either STS (simple template system) or BTS (basic template system). BTS is more complicated but more widely used now. You just end up If you have difficulty modifying a loaded version, I recommend using the support forums for the LOADED versions, not the standard osc forums. Of course you KNOW that before you start you should already have a full backup of your website AND your database. Then I recommend doing your experimentation on a mirror test store rather than your live store. Once you have it functioning on your mirror store, then you can do what was successful to your live store after making sure you have the appropriate backups. If you haven't done any of this then don't go any further until you do. In order to get check/money order going, you will need to backtrack to the last reliable version. Was check/money order EVER tested and found to be functioning correctly? Were they changed since then? If you check the dates of the files and see that they have absolutely not been changed, then it is likely a conflict in your administrative module (that's covered in the users manual). If you find the administrative module in order then a full reinstall to a different directory and an immediate test of the check/money order module is in order. If it's any consolation I was up all night creating a new osCommerce website to replace an original site that is beyond repair. People seem to bring me a lot of sites to repair or replace. I have to finish it after I get a few hours sleep so I can get the new site live asap. I think I've given you as much advice as I can out of context and in the middle of your project. I hope my free advice helps! Because after this I've run completely out of ideas. Kerry -------------------------------------------------------------------------------- Hi Kerry, You have been wonderful! I appreciate all of your free advice and will ask no more. I look forward to receiving your book! Mary -------------------------------------------------------------------------------- Hi Mary, Hey, this is what I love to do and I have a fun time with it. I do want to spread the word about osc because I truly think it's the direction the world is headed. And I have enjoyed helping you and hoped that you would send me an email with lots of exclamation points saying it was solved. Kerry Quote
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.
Note: Your post will require moderator approval before it will be visible.