Enable deliveries for specific vendors

Follow

Comments

2 comments

  • Avatar
    Korumburra Florist

    Can this be applied to delivery also?

  • Avatar
    Andrew Cargill

    Absolutely! You'd just need to change the word "disable_delivery" to "disable_pickups".

    {% capture disable_pickup %}true{% endcapture %}
    {% for item in cart.items %}
    {% if item.product.vendor contains "Apple" or item.product.vendor contains "Microsoft" or item.product.vendor contains "Samsung" %}
    {% capture disable_pickup %}false{% endcapture %}
    {% endif %}
    {% endfor %}

Please sign in to leave a comment.