Community Store Saving Order Attribute Issue
Permalink
Hi,
I have a website running Community Store. I have added an order attribute called "receive_marketing" in the dashboard and some code on the checkout page:
I have also added some code to the dashboard order single page:
I don't think this is saving because if I enter "yes" into the field on checkout, it always returns: Receive Newsletters: No
How can I change this to work as an order attribute and save the value entered into the input?
thanks
Dave
I have a website running Community Store. I have added an order attribute called "receive_marketing" in the dashboard and some code on the checkout page:
<?= $form->text('receive_marketing', $customer->getValue('receive_marketing'), array('required' => 'required')); ?>
I have also added some code to the dashboard order single page:
I don't think this is saving because if I enter "yes" into the field on checkout, it always returns: Receive Newsletters: No
How can I change this to work as an order attribute and save the value entered into the input?
thanks
Dave