Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter cmnzadmin

    (@cmnzadmin)

    You’re right. I just copied and pasted, so I don’t know how those ‘&’ got in there. Anyway, I tried again and it worked this time. However, the formatting is a bit off.

    I actually don’t need a checkbox for “Please send me the following ministry updates” but just for the individual options. What change do I make for that? And can we get the checkbox to show up to the left of the option on the same line? Currently, they show up on the right and on a higher line. I can send a screenshot if you tell me how.

    Here’s what I have right now; I made a slight adjustment to the wording:
    /**
    * This snippet adds the HTML for a MailChimp interest groups to your WooCommerce checkout.
    */
    add_action( ‘woocommerce_after_order_notes’, ‘mc4wp_show_interest_group_in_checkout’ );
    function mc4wp_show_interest_group_in_checkout() { ?>

    <!– Subscription Checkbox –>
    <p class=”mc4wp-checkbox mc4wp-checkbox-woocommerce”>
    <label>
    <?php //<input type=”checkbox” name=”_mc4wp_subscribe_woocommerce” value=”1″> ?>
    <input type=”checkbox” name=”mc4wp-subscribe” value=”1″>
    <span>Please send me the following ministry updates.</span>
    </label>
    </p>

    <!– Interest Groups –>
    <p class=”form-row form-row ” id=”_mc4wp_subscribe_woocommerce_checkout_field”>
    <label class=”checkbox “>
    <input name=”mc4wp-INTERESTS[d69e60bdf2][]” type=”checkbox” value=””5bf5fd71ff””> <span>Scott Brown’s Newsletter</span>
    <input name=”mc4wp-INTERESTS[d69e60bdf2][]” type=”checkbox” value=””f84bb5eabf””> <span>Zohar Gonen’s Newsletter</span>
    </label>
    </p>

    <?php
    }

    Thread Starter cmnzadmin

    (@cmnzadmin)

    The code snippet you are trying to save produced a fatal error on line 4:
    syntax error, unexpected ‘&’. FYI, I’m using the Code Snippets plugin. Please advise.

    I had a similar problem. I have the 1.12.38 version, but I’m still getting an error when I try to link Dropbox with UpdraftPlus:

    dropbox error: set_options() requires an instance ID, but was called without setting one (either directly or via set_instance_id()) (0) (Apr 01 05:43:40)

    • This reply was modified 9 years, 2 months ago by cmnzadmin.
    • This reply was modified 9 years, 2 months ago by cmnzadmin.
Viewing 3 replies - 16 through 18 (of 18 total)