You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if you guys have also the same error when adding a product to cart with customer option (File type) with Sylius >= v1.10
it say a form error : The value is not valid.
I was able to fix it by replacing this line in Form\product_theme.html.twig : <input type="hidden" name="{{full_name ~ '[data]' }}" id="{{ id ~ '_data'}}" />
To <input type="hidden" name="{{full_name }}" id="{{ id ~ '_data'}}" />
If yes, I will do a PR to fix it.
Thanks for your feedback :)
The text was updated successfully, but these errors were encountered:
Hi and thanks @Loocos for the tips but did you figured it out when the file option is mean to be required ?
Symfony Form absolutely wants to validate the file input (The value is not valid) as it is an array [ data => imgFile... ])
whereas CustomOptionPlugin validates the requirement (brille24.form.customer_options.required) but it is incompatible with setting the same input name.
Hi there,
I'm wondering if you guys have also the same error when adding a product to cart with customer option (File type) with Sylius >= v1.10
it say a form error : The value is not valid.
I was able to fix it by replacing this line in Form\product_theme.html.twig :
<input type="hidden" name="{{full_name ~ '[data]' }}" id="{{ id ~ '_data'}}" />
To
<input type="hidden" name="{{full_name }}" id="{{ id ~ '_data'}}" />
If yes, I will do a PR to fix it.
Thanks for your feedback :)
The text was updated successfully, but these errors were encountered: