I am posting this here because I seem to be blocked from the Drilpine Forum - "You cannot read posts in this forum." "... do not have the permissions..."
Anyway
There is a post on the forum about stopping the User Defined date selected by Datepicker being editable in the Shopping Cart.
My client uses the User Defined field in Checkout Page 0 for his Datepicker as he is selling perishable goods and only deapatches certain days.
His problem was that people would select the available days on Datepicker then edit them as they wished, giving a day that delivery is no available on.
Further when they placed a subsequent order the Datepicker field remembered a previously entered date and then continued with that even though it was not an available delivery day.
I solved the problem by editing the Both Addresses User Defined Field thus - the delivery side is hidden as there are only one delivery date options regardless of delivery address:
Thank you.
Anyway
There is a post on the forum about stopping the User Defined date selected by Datepicker being editable in the Shopping Cart.
My client uses the User Defined field in Checkout Page 0 for his Datepicker as he is selling perishable goods and only deapatches certain days.
His problem was that people would select the available days on Datepicker then edit them as they wished, giving a day that delivery is no available on.
Further when they placed a subsequent order the Datepicker field remembered a previously entered date and then continued with that even though it was not an available delivery day.
I solved the problem by editing the Both Addresses User Defined Field thus - the delivery side is hidden as there are only one delivery date options regardless of delivery address:
Code:
<tr> <td> <actinic:block if="%3cactinic%3avariable%20name%3d%22InvoicePrompt014Required%22%20%2f%3e" /><span class="actrequired"></actinic:block> <Actinic:Variable Name="InvoicePrompt014"/> <actinic:block if="%3cactinic%3avariable%20name%3d%22InvoicePrompt014Required%22%20%2f%3e" />*</span></actinic:block> </td> <td id="nooneedits" class="InvoiceField"> <input type="text" id="datepicker" name="INVOICEUSERDEFINED" size="20" maxlength="255" value="00-00-0000" > </td> <actinic:block if="%3cactinic%3avariable%20name%3d%22InvoicePrompt016Visible%22%20%2f%3e"> <td id="nooneedits" class="DeliverField"> <actinic:block if="%3cactinic%3avariable%20name%3d%22DeliverPrompt013Visible%22%20%2f%3e"><input type="hidden" id="datepicker" name="DELIVERUSERDEFINED" size="20" maxlength="255" value="00-00-0000" ></actinic:block> </td> </actinic:block> </tr> <script> $(function() { // disable input fields $( "#nooneedits input" ).prop('readonly', true); $( "#nooneedits input" ).attr("autocomplete", "off"); }); </script>
Comment