You mean, guest checkout? Yes, is possible by editing corresponding core files.
Cheers
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
find:
Code: Select all
<div class="form-group required">
Code: Select all
<div class="form-group">
find:
Code: Select all
if ((utf8_strlen($this->request->post['email']) > 96) || !filter_var($this->request->post['email'], FILTER_VALIDATE_EMAIL)) {
$json['error']['email'] = $this->language->get('error_email');
}
Code: Select all
/*
if ((utf8_strlen($this->request->post['email']) > 96) || !filter_var($this->request->post['email'], FILTER_VALIDATE_EMAIL)) {
$json['error']['email'] = $this->language->get('error_email');
}
*/
cheers
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
I did that but i still see "required" at my email...
The url path at my browse at checkout is "/index.php?route=checkout/checkout".
You wrote bellow to replace with
Code: Select all
<div class="form-group">
Also i'm using Journal2 theme. I replaced in catalog/view/theme/journal/template/checkout/guest.twig
and then at catalog/view/theme/default/template/checkout/guest.twig
but still nothing...
kestas wrote: ↑Thu Sep 20, 2018 5:44 pmin catalog/view/theme/default/template/checkout/guest.twig
find:replace with:Code: Select all
<div class="form-group required">
in catalog/controller/checkout/guest.phpCode: Select all
<div class="form-group">
find:replace with:Code: Select all
if ((utf8_strlen($this->request->post['email']) > 96) || !filter_var($this->request->post['email'], FILTER_VALIDATE_EMAIL)) { $json['error']['email'] = $this->language->get('error_email'); }
then clear your cache in admin dashboard and refresh modifications.Code: Select all
/* if ((utf8_strlen($this->request->post['email']) > 96) || !filter_var($this->request->post['email'], FILTER_VALIDATE_EMAIL)) { $json['error']['email'] = $this->language->get('error_email'); } */
cheers
Yes You are right. It is my fault... i have not indicated which tag.. I replaced only the email field. Am i right?
You not mentioned about which theme you are using...
So you need in journal theme controller file comment this also.
in: catalog/controller/journal2/checkout.php
find:
Code: Select all
if ((utf8_strlen($data['email']) > 96) || !preg_match('/^[^\@]+@.*.[a-z]{2,15}$/i', $data['email'])) {
$errors['email'] = $this->language->get('error_email');
} else if ($register && $this->model_account_customer->getTotalCustomersByEmail($data['email'])) {
$errors['email'] = $this->language->get('error_exists');
}
Code: Select all
/*
if ((utf8_strlen($data['email']) > 96) || !preg_match('/^[^\@]+@.*.[a-z]{2,15}$/i', $data['email'])) {
$errors['email'] = $this->language->get('error_email');
} else if ($register && $this->model_account_customer->getTotalCustomersByEmail($data['email'])) {
$errors['email'] = $this->language->get('error_exists');
}
*/
Cheers
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
If i complete anything at email field, not necessary a valid email, then i don't have the error...
Something is wrong...
I think it can't be null... As i see at firefox console, i have the error "TypeError: "json is null""
kestas wrote: ↑Thu Sep 20, 2018 6:15 pmYes You are right. It is my fault... i have not indicated which tag.. I replaced only the email field. Am i right?
You not mentioned about which theme you are using...
So you need in journal theme controller file comment this also.
in: catalog/controller/journal2/checkout.php
find:and replace with:Code: Select all
if ((utf8_strlen($data['email']) > 96) || !preg_match('/^[^\@]+@.*.[a-z]{2,15}$/i', $data['email'])) { $errors['email'] = $this->language->get('error_email'); } else if ($register && $this->model_account_customer->getTotalCustomersByEmail($data['email'])) { $errors['email'] = $this->language->get('error_exists'); }
do not forget clear cache and refresh modificationsCode: Select all
/* if ((utf8_strlen($data['email']) > 96) || !preg_match('/^[^\@]+@.*.[a-z]{2,15}$/i', $data['email'])) { $errors['email'] = $this->language->get('error_email'); } else if ($register && $this->model_account_customer->getTotalCustomersByEmail($data['email'])) { $errors['email'] = $this->language->get('error_exists'); } */
Cheers
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
My OC is 3.0.2.0 , im using Journal2 2.7.6 and quick checkout.
Thank you very much!
Waiting for your reply...
in: catalog/controller/journal2/checkout.php
find:
Code: Select all
Code: Select all
if ((utf8_strlen($data['email']) > 96) || !preg_match('/^[^\@]+@.*.[a-z]{2,15}$/i', $data['email'])) {
$errors['email'] = $this->language->get('error_email');
} else if ($register && $this->model_account_customer->getTotalCustomersByEmail($data['email'])) {
$errors['email'] = $this->language->get('error_exists');
}
Code: Select all
Code: Select all
/*
if ((utf8_strlen($data['email']) > 96) || !preg_match('/^[^\@]+@.*.[a-z]{2,15}$/i', $data['email'])) {
$errors['email'] = $this->language->get('error_email');
} else if ($register && $this->model_account_customer->getTotalCustomersByEmail($data['email'])) {
$errors['email'] = $this->language->get('error_exists');
}
*/
You can use only first my suggestion for the default checkout.
I have checked and It's best to ask for help this theme developer. If they not help you can back here.
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
Users browsing this forum: No registered users and 84 guests