Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Show errors in customer address forms #577

Merged
merged 1 commit into from
Sep 29, 2016
Merged

Conversation

schaeken
Copy link
Contributor

Shopify's liquid checklist requires that errors are outputted properly on the customer/addresses.liquid file. This PR makes Timber comply with Shopify's theme requirements.

https://screenshot.click/13-43-2ert2-dnbfl.png

@cshold for review

{% form 'customer_address', customer.new_address %}

{% form 'customer_address', customer.new_address %}
<div id="AddAddress" class="form-vertical" {% unless form.errors %}style="display:none;"{% endunless %}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, with the form wrapped around this we'll always have the element visible on the page (though empty). I can't think of another way (without JS) so as long as this doesn't effect the layout, 👍

@cshold cshold merged commit e5395f3 into master Sep 29, 2016
@cshold cshold deleted the fix-customer-addresses branch September 29, 2016 13:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants