Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    New Coder
    Join Date
    Aug 2011
    Location
    Chicago, IL
    Posts
    19
    Thanks
    8
    Thanked 0 Times in 0 Posts

    HTML mode not converting in WordPress

    Can anyone explain why this code works in the html mode but not in WordPress?

    To see what should happen in WordPress goto: http://hrirrigation.com/payonline.html. Then click on "click here to pay online"

    The form code used in the HTML mode is: <form action="https://www.myvirtualmerchant.com/VirtualMerchant/process.do" method="POST"><div align="center"><input type="hidden" name="ssl_merchant_id" value="561258">
    <input type="hidden" name="ssl_user_id" value="website">
    <input type="hidden" name="ssl_pin" value="K266PU">
    <input type="hidden" name="ssl_show_form" value="true">
    <input type="hidden" name="ssl_test_mode" value="false">
    <input type="hidden" name="ssl_transaction_type" value="CCSALE">
    <input type="hidden" name="ssl_amount" value="Enter Amount">
    <input name="submit" type="image" src="http://hrirrigation.com/images/buttons/invoiceButton2.png" alt="Click here pay online" />
    </div>
    </form>

    Error Messages when trying to activate in WordPress:

    Error Message: Error Code : 4000
    Error Name : VID Not Supplied
    Error Message : The VirtualMerchant ID was not supplied in the authorization request.

    Thanks in advance,
    J

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,954
    Thanks
    9
    Thanked 724 Times in 718 Posts
    Works OK when I click on the link from your WP page. Where are you seeing the error?
    Edit: Ah, that's not your WP page. Can you post a link to it?

  • #3
    New Coder
    Join Date
    Aug 2011
    Location
    Chicago, IL
    Posts
    19
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Here's the link to the WordPress page: http://hrirrigation.com/wpsite/payonline/

  • #4
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,954
    Thanks
    9
    Thanked 724 Times in 718 Posts
    OK, the WP page just has a simple link to the payment site:

    Code:
    <a href="https://www.myvirtualmerchant.com/VirtualMerchant/process.do">Click here to pay online</a>
    rather than a form whcih submits all the data as your html version does. You'd need to include the form on your Wordpress page as well.

  • #5
    New Coder
    Join Date
    Aug 2011
    Location
    Chicago, IL
    Posts
    19
    Thanks
    8
    Thanked 0 Times in 0 Posts
    I did and received the same error message. Check again if you can.
    Thanks in advance,
    J

  • #6
    New Coder
    Join Date
    Aug 2011
    Location
    Chicago, IL
    Posts
    19
    Thanks
    8
    Thanked 0 Times in 0 Posts
    In fact, I copied the entire code from the HTML version to WP

  • #7
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,954
    Thanks
    9
    Thanked 724 Times in 718 Posts
    Something's gone wrong in that process then, because if I view the source of your WP page it does not include the form.

  • #8
    New Coder
    Join Date
    Aug 2011
    Location
    Chicago, IL
    Posts
    19
    Thanks
    8
    Thanked 0 Times in 0 Posts
    You are correct. This is weird. When I input the code via WordPress it appears to be there in the admin section but when I view the page, I'm seeing a different code.

  • #9
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,954
    Thanks
    9
    Thanked 724 Times in 718 Posts
    The admin section? I'd have thought you need to be pasting the form html into the HTML tab, not the Visual tab of a page.

  • #10
    New Coder
    Join Date
    Aug 2011
    Location
    Chicago, IL
    Posts
    19
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Actually, that is what I meant to imply. I have posted the code via HTML tab in WordPress. It almost appears that it is being override by a redirect code. Or the new code is not taken. This is a challenge
    Last edited by allbusiness; 05-12-2012 at 11:06 PM.

  • #11
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,954
    Thanks
    9
    Thanked 724 Times in 718 Posts
    I'm struggling to think WP is making this conversion itself - you should be able to paste the html form fine. I've certainly done this in WP before. Just tried it on a vanilla WP installation and there's no problem.

    I'd be tempted to make a small change to the URL in the form html, repaste the code and check whether the change is indeed propagated into a link, just to rule out the possibility of some other factor.

    If it is, the only other thing I can think of is that you've got a plugin somewhere which is effecting the change.

  • Users who have thanked SB65 for this post:

    allbusiness (05-14-2012)

  • #12
    New Coder
    Join Date
    Feb 2012
    Location
    Finland
    Posts
    59
    Thanks
    3
    Thanked 9 Times in 9 Posts
    There is issues with WordPress HTML editor, it does mess up some HTML tags if not builded exactly correct for WordPress. HTML can still run them but WP will mess it up for some reason.

    What I suggest you to do is build a new template file for you form site and "hard code" the form on the .php file instead of making it content from WP admin panel.

    I always put content that doesn't have to be updated or has to be updated rarely in the .php files so wordpress or client doesn't mess up my beautiful code :P

    -Riku

  • Users who have thanked Riku for this post:

    allbusiness (05-14-2012)

  • #13
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Wordpress will strip off any inputs in forms. They either want you to use some kind of form builder plugin or find another way to get into your posts.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    allbusiness (05-14-2012)

  • #14
    New Coder
    Join Date
    Aug 2011
    Location
    Chicago, IL
    Posts
    19
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Does anyone have any suggestions on how to get this code to work in WordPress?

    The form code used in the HTML mode is: <form action="https://www.myvirtualmerchant.com/VirtualMerchant/process.do" method="POST"><div align="center"><input type="hidden" name="ssl_merchant_id" value="561258">
    <input type="hidden" name="ssl_user_id" value="website">
    <input type="hidden" name="ssl_pin" value="K266PU">
    <input type="hidden" name="ssl_show_form" value="true">
    <input type="hidden" name="ssl_test_mode" value="false">
    <input type="hidden" name="ssl_transaction_type" value="CCSALE">
    <input type="hidden" name="ssl_amount" value="Enter Amount">
    <input name="submit" type="image" src="http://hrirrigation.com/images/buttons/invoiceButton2.png" alt="Click here pay online" />
    </div>
    </form>

  • #15
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I just added your code to a post and it worked fine. Of course I got an invalid referrer because obviously it wasn't meant for my site. Can you give us the url to your post? You could also try using the Raw HTML plugin.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  
    Page 1 of 2 12 LastLast

    Tags for this Thread

    Posting Permissions

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