• I have inserted the following PayPal code in an Html block on a Page. When my client opens the page in admin, the “form” and “input” lines disappear. This does not happen when I open the admin page. We are both administrator-level and using PCs, not Macs. Why would this be happening to her and how can we prevent the loss?

    <div class="paypal">
    Purchase through PayPal:
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
    <input name="cmd" type="hidden" value="_s-xclick"> 
    <input name="hosted_button_id" type="hidden" value="removed_for_privacy">
    <table>
    <tbody>
    <tr>
    <td><input name="on0" type="hidden" value="Size">Size</td>
    <td><select name="os0">
    <option value="1 oz">1 oz $24.00 USD</option>
    <option value="2 oz">2 oz $42.00 USD</option>
    <option value="4 oz">4 oz $72.00 USD</option>
    </select></td></tr>
    </tbody>
    </table>
    <input name="currency_code" type="hidden" value="USD"> 
    <input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" type="image"> 
    <img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" alt="" width="1" height="1" border="0">
    </form>
    </div>
    • This topic was modified 4 years, 9 months ago by madriverweb.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • lisa

    (@contentiskey)

    which browsers are in use when the problem happens?
    does this happen for all devices using client’s login credentials?
    does the same thing happen if block is added to any pages and posts?
    does the html block work for all other things (Excluding paypal button/code?)

    (I see a variety of console errors. Might be possibly be impacting.)

    do you have a staging site to test with all plugins deactivated and default theme active?

    • This reply was modified 4 years, 9 months ago by lisa.
    • This reply was modified 4 years, 9 months ago by lisa.
    Thread Starter madriverweb

    (@madriverweb)

    Thank you, Lisa. We were able to better isolate the problem.

    She tried all three browsers: Edge, Firefox, Chrome on Windows 10, all the same, wouldn’t save.

    However, when I logged in with her credentials on my machine, I experienced the same problem. She is an administrator, but this is a multi-site. I happened to notice also that she does not have access to Customizer Additional CSS.

    I cannot make her a super-admin. I hope we can find a way for her credentials as an admin to allow her the simple task of putting PayPal buttons on her site.

    We did try this on a separate page and experienced the same problem. We did not do the last troubleshooting step, but will do so if you think it is still important.

    Thread Starter madriverweb

    (@madriverweb)

    Lisa, Before I go to more extreme and time-consuming measure of testing block with other content or setting up a staging site, do you have any comment on whether an admin has fewer privileges in a multi-site than in an individual site?

    Re: console errors, every one of these is from the two other WORDPRESS embeds we have in this page. None of the offending URLs exist in our source code. I verified also by removing the embeds. It would be a shame to have to remove them and simply post the links since they display so nicely. Do you have an opinion about this problem?

    Thread Starter madriverweb

    (@madriverweb)

    OK, so I just found in this (poorly displayed) page, https://www.ads-software.com/support/article/roles-and-capabilities/#unfiltered_html, that admins of a sub-site do indeed have fewer capabilities. How can an admin possibly administer their site and change the styling if they don’t have this type of access. This limits them entirely to the theme’s styling and makes it impossible to add a PayPal button without a plugin. I think this clearly falls within the “fix WordPress” category, but if you disagree, is there a particular a role-changing plugin or a PayPal button plugin that you would recommend?

    Thread Starter madriverweb

    (@madriverweb)

    Hi Lisa, I have a solution that is acceptable for us for now. I created a reusable block for my client that does not break in her login. But this means she is still dependent on me to do that for her every time she establishes a new product and PayPal button within her PayPal console.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Block loses PayPal code upon opening admin page’ is closed to new replies.