Support » Fixing WordPress » Google Checkout Buttons stop working after editing page.

  • grunest

    (@grunest)


    Anyone else hae the problem of Google Checkout Buttons not working after editing the page they are on using the editor built into WordPress?

    <input> tag value parameters disappearing.

    The Details:
    After generating my Google Checkout button code on Google Checkout’s API pages, I then paste it into my WordPress page. (either in the wp-admin IDE, or via a blog editor such as LiveWriter). I hit “publish” and the button works until the page is edited again (either via the mini-editor built into WP or LiveWriter). It appears as though something in WP is removing the value parameter from ALL the <input> tags in my forms. This results in my google checout button failing when pressed.
    I’ve tried editing in “code” and “visual” modes using the WP IDE. It doesn’t seem to matter.

    I.E.

    Before: <input name=”item_currency_1″ type=”hidden” value=”USD”/>
    After: <input name=”item_currency_1″ type=”hidden” />

    More info:
    I’ve got 4 WP sites all running various versions of WP (2.2.0 or higher). All of them have this problem. I’ve searched the support forums and found NUMEROUS entires relating to code mangling using the editor in WordPress but none relating to <INPUT> tags. I’ve sought out and found hundreds of WP sites using Google Checkout buttons. They all seem to work. What am I missing? I feel like this should be a simple fix that I’m just overlooking somehow.

    Thanks – Greg

Viewing 3 replies - 1 through 3 (of 3 total)
  • Greg, I am getting exactly the same problem with one of my sites. the google pay buttons work perfectly for a while then (and i’m assuming it must be after the page is reedited) all the values disappear. Have you come any closer to a solution?

    John

    I am also having the same problem. When a client changes the page that contains the google pay script, (even when they don’t touch the google code), the button no longer works.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    My recommendation is not to put too much HTML code directly into a page like that, because you can never tell what the editor is going to do.

    If you’re going to make forms and such, do yourself a favor and use a Page Template or edit the correct template in the theme instead. This gives you absolute control over the page content.

    The editor was made for text and minor HTML in the form of images and text formatting. It was not designed for javascript, forms, and other heavy lifting HTML code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Google Checkout Buttons stop working after editing page.’ is closed to new replies.