oc-shopaholic / oc-bootstrap-shopaholic-theme

🅱️ Free basic theme based on Bootstrap 4 framework
GNU General Public License v3.0
22 stars 12 forks source link

[Ask] How add phone field in checkout form? #39

Open laginru opened 4 years ago

laginru commented 4 years ago

Try this:

<div class="form-group mb-3">
<label class="sr-only" for="inlineFormInputGroup">Phone</label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text"><i class="fa fa-phone"></i></div>
</div>
<input type="text" class="form-control" id="inlineFormInputGroup" name="phone" placeholder="Phone" required>
<div class="invalid-feedback">Please add your phone</div>
</div>
</div>

but phone field is empty in order

kharanenka commented 4 years ago

Hi! How do you create order?

laginru commented 4 years ago

Hi, I just add code to checkout form of bootstrap-theme.

Emilianissimo commented 4 years ago

Hi! How do you create order?

So, same problem. In admin panel i'm making special property for admin side and front side, gaven them names and saw phone already exist, but when i'm input same code from above inside your form it's not working. There are no any examples in your docs or answers. Please help. Заранее большое спасибо. Реально беда, понять не могу, доки тоже порой весьма сложно понять, если что-то по типу туториалов?

snipiba commented 3 years ago

probably wrong question, but... orders have multiple fields, that are blank on submit default order from this bootstrap theme, then question is, if there are way how to get full featured form with all fields from backend?

for example:

billing vs shipping address, phone number, ... this fields are fields from toolbox if i correctly "read" that "language preffix"