W Twojej sesji brakuje niezbędnych danych, dlatego przekierowaliśmy Cię na początek procesu. Jeśli problem się powtórzy, napisz do nas na info@useme.com i podaj, w którym etapie proces się przerywa.

WooCommerce required checboxes when ordering

Closed job
no avatar
Niko
Employer
2 deals
Job category:
Online shops
Expected budget:

Negotiable

Published:
Valid until:

Job description

I am looking for a person to add checkboxes to woocommerce like:

1. I have read and agree to the terms and conditions and privacy policy * (preferably on one line, as woocommerce only adds the terms and conditions).

2. I agree that the digital content covered by the order will be delivered to me before the end of the withdrawal period. I am aware that by doing so, I forfeit my right to withdraw from the sales contract.*.

3 I agree to the processing of my personal data by [my data], for the purpose of sending me newsletters, i.e. information about blog products, services, promotions or news and webinars in accordance with the Privacy Policy (optional)

The Privacy Policy and Terms and Conditions page is on the site.

When I added something like this in function.php

add_action( 'woocommerce_review_order_before_submit', 'bbloomer_add_checkout_privacy_policy', 9 );

function bbloomer_add_checkout_privacy_policy() {

woocommerce_form_field( 'privacy_policy', array(

'type' => 'checkbox',

'class' => array('form-row privacy',)

'label_class' => array('woocommerce-form__label woocommerce-form__label-for-checkbox checkbox'),

'input_class' => array('woocommerce-form__input woocommerce-form__input-checkbox input-checkbox'),

'required' => true,

'clear' => true,

'label' => 'Przeczytałem/am i akceptuję <a href="https://nikodemmarszalek.pl/?page_id=2412" target="_blank" > "regulamin" </a> oraz

<a href="https://nikodemmarszalek.pl/?page_id=2410" target="_blank" > "politykę prywatności".</a>',

));

}

Ignorował checbox, a muszą one (1. i 2.) być zaznaczone żeby zrealizować zamówienie. Dodatkowo będę miał jeszcze do zlecenia (ale to później) integracje z przelewy24.

Required functions:

additional api, woocommerce,

Template / individual design:

wordpress