Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2008
    Posts
    29
    Plugin Contributions
    0

    Default I broke the payment options...

    Hi All,

    I had PayPal express checkout working using PayPal sandbox. I was working on a non zen cart payment option module (direct bank deposit), changing some of the text in the php files. Well, I stupidly uploaded the php file while simultaneously tinkering with the payment option on the testsite. Now I have lost about 4 or more different payment options in the admin area (they don't even appear as an option), and I can't progress to checkout on the test site.

    How do I recover? I see the php files still seem to be on the server and I can open them okay (i.e. they don't seem to be corrupted) - so I suspect I will need to replace some/all of the sql database tables. However, I'm new to working with sql databases. I have backed up my database however, when I try to restore it tells me the first file (table?) on the list already exists and doesn't allow me to continue. I suspect I may not have properly backed up the database. Can I get around the issue by selectively restoring tables (my preference since I have made I lot of changes since the last backup that I would prefer not to loose - still not the end of the world)? If so, how? Do I need to delete files/tables first before trying to restore the database?

    Sorry if this is in the wrong section.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: I broke the payment options...

    Payment modules consist of pairs of files: the "module" file, and its corresponding language file. If either of those is missing or contains errors, you'll get the symptoms you describe.
    Also, if you have any *.php files (even so-called "backup" files which you've left with a .php extension), those will be attempted also, and if they have errors or no matching language/module pair, then you'll get those symptoms as well.

    Ref: http://www.zen-cart.com/content.php?124-blank-page
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: I broke the payment options...

    Thanks for your reply.

    To confirm, you're suggesting that initially I try replacing all the payment module php files (the twin module/language files for each module) via fpt (and do not try reinstalling the sql database)? As well as removing any miscellaneous php files that might be creating problems.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: I broke the payment options...

    I would put the files back into the state they were before you made changes that broke things.

    The technical info I offered earlier simply helps you start in the folders related to those modules and their language content. If you need to do broader cleanup than that, that's up to you and whatever changes you've been making.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: I broke the payment options...

    All fixed. Removed and replaced dodgy payment module php files in the locations specified. No sql restore needed.

    Thank you!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: I broke the payment options...

    Thanks for confirming that cleaning up the files solved the problem.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Is it possible to limit the payment options based on the product?
    By brimstone in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 9 Mar 2010, 09:25 AM
  2. Two credit card payment options fields on the payment page??
    By linda408 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Sep 2009, 11:56 PM
  3. No Payment Options - This is currently the only payment method available to use on ..
    By keeno79 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 11 May 2009, 02:58 PM
  4. Adding info in the Payment options
    By scottypmiz in forum Customization from the Admin
    Replies: 0
    Last Post: 6 Feb 2008, 04:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg