Forum
Adding an Order Instruction field.
Hello,
Is it possible to add an Order Instructions field to an order? Just a text-box would be fine. We've so-far tried to add one in two ways, but can't seem to get it to work.
The first way was to add it to the Cart in a similar way to the Discount Code field. However, it seems just adding the field to the template doesn't make it save anywhere.
The second way was to add it to the Customer Address details when creating the passwordless user on checkout. This saves the instruction field in the database, but it doesn't seem to be visible anywhere in the backend. When looking in the database it saves the instruction data in the 'addressDynamicFields' field of perch2_shop_addresses. However, it doesn't seem the that these fields are visible anywhere in the Perch Admin.
Looking at the 'View Order' page for a sample order, the instruction field isn't visible. After digging a little, it seems that the 'View Order' page itself isn't template based - it looks to be built with a series of 'echos' in the order.detail.post.php. This page itself - seems to ignore the address dynamic fields entirely.
With that being said, is there somewhere in the Perch Admin where the fields in 'perch2_shop_addresses' 'addressDynamicFields' can be viewed?
Thanks in advance for any assistance.
Add it as a cart property. In any shop form:
Similar to this: https://docs.grabaperch.com/addons/shop/examples/order-confirmation/