• Resolved topfgartenwelt

    (@topfgartenwelt)


    Hi, according to European, especially German / Austrian law is it necessary that the buyer of digital products has to accept to reject the warranty before buying the product. It should be a checkbox. Without ticking it, on buying of the product should be impossible. Also there has to be a checkbox that the terms and conditions were accepted before the purchase. Does the plugin offer that?

    Greetings Kathrin

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Mihai Joldis

    (@misulicus)

    Hi @topfgartenwelt

    The plugin does offer you the option to display 2 checkbox on the Checkout page, for Terms & Conditions on Privacy Policy.

    Once installed, go to the Downloads > Settings > Policies page and enable them.

    Thread Starter topfgartenwelt

    (@topfgartenwelt)

    Ok, but I would need a separate checkbox that must be ticked on that the customer knows that there is no warranty for digital stuff.

    And is it possible to use Schema Markup for a small shop with your plugin?

    Greetings K.

    Plugin Support Mihai Joldis

    (@misulicus)

    You could put that text inside your Terms and Conditions page and not have to add another checkbox for the user. If you do really want to have another box, then it would require custom code development to build it.

    EDD does have output Structured Data schema that you can see here https://github.com/awesomemotive/easy-digital-downloads/blob/main/src/Structured_Data.php

    Thread Starter topfgartenwelt

    (@topfgartenwelt)

    Thank you for your reply. The problem is, it isn’t enough to have it in the Terms and Conditions the purchaser has to tick it actively. Otherwise the exclusion isn’t applicable and he can persist on a refund. Unfortunetely this is valid German / Austrian E-Commerce law.

    Is another checkbox much custom developement? And is there an option to do not charge VAT. Because I have a small business and I am exempt from VAT.

    Greetings Kathrin

    Plugin Support Mihai Joldis

    (@misulicus)

    You have 2 options to add a field to the checkout page.

    1. Use the Checkout Fields Manager extension
    2. Add the field using Custom code. You can try the code below as an example. Add it to your site’s theme functions.php file.
    function edd_custom_checkout_box_fields() {
    	?>
    	<fieldset id="edd_custom_digital_check_box">
    		<p>
    			<input name="edd_custom_digital_check_box" id="edd_custom_digital_check_box" type="checkbox" value="1"/>
    			<label for="edd_custom_digital_check_box">This is a digital donwload file</label>
    		</p>
    	</fieldset>
    	<?php	
    
    }
    add_action( 'edd_purchase_form_before_submit', 'edd_custom_checkout_box_fields', 100 );
    
    function edd_custom_checkout_box_validation( $user, $data, $posted ) {
    	// User did not agree
    	if ( ! isset( $posted['edd_custom_digital_check_box'] ) || $posted['edd_custom_digital_check_box'] != 1 ) {
    		edd_set_error( 'agree_custom_check_box', 'You must agree to the custom box' );
    	}
    }
    add_action( 'edd_checkout_user_error_checks', 'edd_custom_checkout_box_validation', 10, 3 );

    As for the VAT option, you can enable taxes only if you wish inside the EDD settings.

    Thread Starter topfgartenwelt

    (@topfgartenwelt)

    Oh, thank you very much, I will try it. Can I configure the checkboxes in a way that they are mandatory? If they are not ticket there should be no purchase possible.

    Greetings Kathrin

    Plugin Support Mihai Joldis

    (@misulicus)

    The code snippet I provided adds a new checkbox that if left unchecked will show an error message and the user will not be able to complete the purchase.

    Thread Starter topfgartenwelt

    (@topfgartenwelt)

    Oh great, thank you very much! That’s what I need!

    I will try the plugin and code on weekend / next week.

    Greetings Kathrin

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘European Law’ is closed to new replies.