Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    This feature will be in the next Premium release. (It has been coded, but not yet released. I will be released before 1 Jan – probably today). The feature is more sophisticated than the above description, and *also* allows you to *require* a VAT number – i.e. forbid non-exempt sales, and thus relieve you of the burden of collecting VAT (i.e. deal with B2B customers only).

    Using CSS to hide the field is already possible; it has a unique CSS ID.

    David

    Thread Starter gunther12

    (@gunther12)

    Still, I’d like to hide this part completely and not display anything about VAT Number entering. I’d need an additional DIV to be able to properly hide that.

    Currently it looks like this:


    <div id="woocommerce_eu_vat_compliance">
    -----<div id="B2BVAT>----
    <h3>EU USt.-ID (falls vorhanden)</h3>
    <p>
    <small>Wenn Sie als Unternehmen Ihren Sitz in der EU haben, k?nnen Sie ihre USt.-ID unten eintragen.</small>
    </p>
    <p id="vat_number" class="form-row">This shop does not allow the entry of EU VAT numbers for VAT exemption.</p>
    -----</div>----------
    <p id="vat_self_certify_field" class="form-row update_totals_on_change address-field form-row-wide">

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    So, if you want to use CSS to hide that part, then what’s wrong with…

    #woocommerce_eu_vat_compliance h3, #woocommerce_eu_vat_compliance .vat-number { display: none; }

    ?? It works for me. Screenshot: https://snag.gy/Ufxs4.jpg

    David

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Though, better than using CSS to hide it, is using the setting in the back-end, and setting it to “Never”.

    Thread Starter gunther12

    (@gunther12)

    Sure, I did that but the labels still appear. I’ve hidden them via css but it’s somewhat nasty – would be easier and safer to have that additional div.

    I know this is old but…
    Don’t use css to remove(hide) fields. As much as you can use regular php. CSS is only for styling, the field will be loaded anyway. There is no reason to first load a field and then hide it with css, load time will even be increased this way.

    //Simon

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Option to disable B2B VAT Number field/check’ is closed to new replies.