i added a new field to be filled by my customers at checkout page ,,, and in order to approve their payment and change the order status to paid i need to check the input of that field per each order ,,
after i added it i placed an order to check my orders table and i couldn't find the data of the field
that means i need to add a corresponding column to hold the data !!!
i need your help so that i can go through safe and efficient steps to do so ...
i added it as html blcok then i added the html code below
(
Enter Trx ID :
)
Simply adding HTML code will not store the passed data in the database of your store.
Could you please let me know, why the default feature of adding new customer's profile fields, does not suit you, so I can try to offer you the best solution?
Simply adding HTML code will not store the passed data in the database of your store.
Could you please let me know, why the default feature of adding new customer's profile fields, does not suit you, so I can try to offer you the best solution?
hello ,,,
i solve it by adding a new profile field to store the data i need
,,, at first i thought every block i add will automatically be added as form field and will be submitted to order data table ,,,
Simply adding HTML code will not store the passed data in the database of your store.
Could you please let me know, why the default feature of adding new customer's profile fields, does not suit you, so I can try to offer you the best solution?
how can i add some validation to specific field like input must be numbers and for example only 20 digits are allowed not less or more
where should i add this i could not find cm class @ my jJS files !
also
is this correct ??
am sorry my platform is already live ,, so i need to solve this issue badly
thank for penitence
In case you are adding the new input via your own code, as eComLabs has correctly stated, for and id should match. Also in the script, you need to replace the text elm_id with actual element ID, in your case it has to be xx.
In case you will add the new profile field using built-in tools, you may need to make additional changes in the design/themes/responsive/templates/views/profiles/components/profile_fields.tpl template. To be more specific, you can use the hook profiles:profile_fieldsprofiles:profile_fields to override it where you need to make changes to the default code where label elementis defined:
{$field.description}
In a way, that the cm-regexp class will be added to the profile field, which requires validation.