-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Gift card] Follow up tasks #2454
Comments
#2458 First crack at A11y improvements for collapsible recipient form |
Also noticed we're not using pointer cursor for the checkbox and we probably should be (our other custom checkboxes do) |
@ludoboludo Can you remind us what this point was referring to?
|
Wondering if we were wanting to support that checkbox/workflow to send a gift card to someone for the featured product section. |
@mzarud I've added another point that we weren't tracking in the issue:
Just FYI |
Since we know the property names in English and that they are static, I used a Case/When to handle the translations on the cart page. It's not pretty, but it's effective. {% case property.first %}
{% when "Recipient email" %}
{% assign property_label = 'recipient.form.email_label' | t %}
{% when "Recipient name" %}
{% assign property_label = 'recipient.form.name_label' | t %}
{% when "Message" %}
{% assign property_label = 'recipient.form.message_label' | t %}
{% when "Send on" %}
{% assign property_label = 'recipient.form.send_on_label' | t %}
{% else %}
{% assign property_label = property.first %}
{% endcase %}
<div class="product-option">
<dt>{{ property_label }}:</dt>
... |
The issue with this approach is that the properties will only be translated in the cart and not at checkout see screenshot. It may still be okay as a workaround. |
Follow ups opportunities
Higher priorities
Lower priority
customer
templates and this form. - Gift cards/add recipient #2412 (comment)Version information (Dawn, browsers and operating systems)
The text was updated successfully, but these errors were encountered: