• I have added a Checkbox to the Default Checkout Forms. I would like to have this automatically box checked when the shopping cart is displayed and leave it up to the customer to uncheck the box.

    I have tried several different values in the “Value” box in the expanded options for the line. I have used a 1, 0, YES, yes, y and Y with no luck. In looking at the page source, the value is being transferred to the checkout page, however I am not getting a check in the box.

    The site is https://creativeinfoproducts.com and you will need to add a book to your cart before going to the cart.

    Here is a snippet of code from the page when it is displayed:

    <td class=’wpsc_checkout_form_20′>
    <label for=’wpsc_checkout_form_20′>
    Join Our Mailing List for Special Offers <span class=”asterix”>*</span> </label>
    </td>
    <td>
    <label>
    <input class=”wpsc-visitor-meta” data-wpsc-meta-key=”join-our-mailing-list-for-special-offers” type=”checkbox” name=”collected_data[20][]” value=”YES” />
    </label>
    </td>
    </tr>

    Thanks in advance for the help.

    https://www.ads-software.com/plugins/wp-e-commerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter MTKBillH

    (@mtkbillh)

    Any Help??

    Thread Starter MTKBillH

    (@mtkbillh)

    ANY HELP, PLEASE??????

    if you are doing this with code, just add “checked” to that input field. I am assuming that this is being done in the checkout template for your theme:

    <input class=”wpsc-visitor-meta” data-wpsc-meta-key=”join-our-mailing-list-for-special-offers” type=”checkbox” name=”collected_data[20][]” value=”YES” checked />

    Hope this helps, cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Checkbox on Shopping Cart not Checked’ is closed to new replies.