{% set show_validation = false %}

{% if added_to_basket is not empty or size_error is not empty or basket_has_nhs_items is not empty %}
    {% set show_validation = true %}
{% endif %}


{% if added_to_basket is not empty %}
    <div class="validationWrap hasSuccess">

        <div class="wrapper">
            
            <div class="success">
                Item added to bag. <a href="/shop/checkout/basket.php">Click here to view bag.</a>
            </div>

        </div> <!-- .wrapper -->

    </div> <!-- .validationWrap hasSuccess -->
{% elseif size_error is not empty or basket_has_nhs_items is not empty  %}
    <div class="validationWrap hasError">

        <div class="wrapper">
            
            {% if size_error is not empty %}
                <div class="error">
                    Please select a size from to proceed.
                </div>
            {% endif %}
    
            {% if basket_has_nhs_items is not empty %}
                <div class="error">
                    There are NHS prescriptions in your basket. Please complete the order first or remove NHS prescriptions from the basket.
                </div>
            {% endif %}

        </div> <!-- .wrapper -->

    </div> <!-- .validationWrap hasSuccess -->
{% endif %}
