Search the Community
Showing results for tags 'form field'.
-
I have no idea how to do this plz help me. I failed to finding the tpl file of contact form. the class or controller of contact form. pleas help me how to do this task, I am new in prestashop. what is my problem ? see to picture. I want to do this but have no idea help help
- 1 reply
-
- contact form 1.7
- contact form edit
- (and 4 more)
-
How to change the order of fields for customer registration form (Tested with v1.7+) Simply change the order in the following class (Override class is recommended) classes/form/CustomerFormatter.php public function getFormat() { $format = []; //#1 field $format['id_customer'] = (new FormField()) ->setName('id_customer') ->setType('hidden'); //#2 field $genders = Gender::getGenders($this->language->id); if ($genders->count() > 0) { $genderField = (new FormField()) ->setName('id_gender') ->setType('radio-buttons') ->setLabel( $this->translator->trans( 'Social title', [], 'Shop.Forms.Labels' ) ); foreach ($genders as $gender) { $genderField->addAvailableValue($gender->id, $gender->name); } $format[$genderField->getName()] = $genderField; } //#3 field $format['firstname'] = (new FormField()) ->setName('firstname') ->setLabel( $this->translator->trans( 'First name', [], 'Shop.Forms.Labels' ) ) ->setRequired(true); //#4 field $format['lastname'] = (new FormField()) ->setName('lastname') ->setLabel( $this->translator->trans( 'Last name', [], 'Shop.Forms.Labels' ) ) ->setRequired(true); For example if lastname should be displayed before firstname move code $format['lastname']... before $format['firstname']... //#3 field $format['lastname'] = (new FormField()) ->setName('lastname') ->setLabel( $this->translator->trans( 'Last name', [], 'Shop.Forms.Labels' ) ) ->setRequired(true); //#4 field $format['firstname'] = (new FormField()) ->setName('firstname') ->setLabel( $this->translator->trans( 'First name', [], 'Shop.Forms.Labels' ) ) ->setRequired(true);
-
Why is there no email field for brand & suppliers ? rgds Michael O'Donovan
-
custom field in adress I am trying to adding a field on quick order page to customer gst tin number but unable to add. i follow http://nemops.com/new-customer-address-fields-prestashop/#.Wi-I2nbhWM8 this post but nothing is showing in the post
-
- form field
- gst input field
-
(and 2 more)
Tagged with:
-
Hi again im back with a small notice from a shop's visitor who pointed to me that one small part is not translated. I have a contact form on my ps and in that form there is a button with Choose File and a field where it says No file choosen. I cant find how to translate that to Serbian , i have attached a picture
- 5 replies
-
- button
- form field
-
(and 1 more)
Tagged with:
-
Hi, I am trying to create a module that allows users to upload image file. These images will not be attached to any products. For each picture to be uploaded I'd like to collect and store the the following configuration info: Path to file (text) Display order (number) Active/Inactive flag (1 or 0) Description(text) I am creating a back office configuration page for this module, and I have been able to render all the attributes (i.e. form fields) except the one for the image file itself. I imagine the field for uploading the file itself will be an input element of type "file" i.e. <input type="file"/>. My questions are: how do I specify (in my module's php code) a location where the file ends up in my and how do I get the path to the file location so I can store it as an attribute in the database (also within my php code) ? If anyone can point me to sample code that does this or respond with code snippets, I'd really appreciate it. Thanks. Andrew.
- 4 replies
-
- Photo upload
- image upload
-
(and 2 more)
Tagged with: