{% set show_validation = false %}

{% if added_to_basket is not empty or size_error 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 %}
    <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 %}

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

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