The wholesale portal section, as submitted. Flag every real problem; leave correct calls unflagged.
{% assign trade_price = product.price | times: 75 | divided_by: 100 %}
<p class="portal-trade js-wholesale-only" hidden>
Wholesale: {{ trade_price | money }}
</p>
{% if customer and customer.tags contains "wholesale" %}
<section class="wholesale-portal">
<p class="portal-buyer">Signed in as {{ customer.name }}</p>
<section class="portal-terms">
<h3>Order terms</h3>
{% if product.metafields.wholesale.min_qty %}
<p>Minimum order: {{ product.metafields.wholesale.min_qty }} bags</p>
{% endif %}
{% if product.metafields.wholesale.case_size %}
<p>Ships in cases of {{ product.metafields.wholesale.case_size }}</p>
{% endif %}
</section>
{% form 'contact' %}
<input type="hidden" name="contact[product]" value="{{ product.title }}">
<label for="QuoteEmail">Work email</label>
<input type="email" id="QuoteEmail" name="contact[email]" value="{{ customer.email }}" required>
<button type="submit">Request a quote</button>
{% endform %}
{% if customer.tags == "net-30" %}
<p class="portal-note">Net-30 invoicing active on this account</p>
{% endif %}
</section>
{% else %}
<div class="nw-callout">
<h2>Wholesale partners only</h2>
<a href="/account/login">Log in</a>
<a href="{{ routes.account_register_url }}">Apply for an account</a>
</div>
{% endif %}