Hello there,
I want to remove email obligativity for quests from checkout. Im using opencart 3.0.3.2 with Journal Theme 3.
I tried https://stackoverflow.com/questions/631 ... t-checkout, but is not working. The error message is still there, also this code removes completly email, i just want to make it optional.
I want to remove email obligativity for quests from checkout. Im using opencart 3.0.3.2 with Journal Theme 3.
I tried https://stackoverflow.com/questions/631 ... t-checkout, but is not working. The error message is still there, also this code removes completly email, i just want to make it optional.
Last edited by doghi22 on Wed Jan 19, 2022 12:21 am, edited 1 time in total.
Contact Journal support: https://support.journal-theme.com
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
They don't provide assistance for this matter.paulfeakins wrote: ↑Mon Jan 17, 2022 8:23 pmContact Journal support: https://support.journal-theme.com
Have you refresh your modifications and clear the theme cache after changes in code?
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Then most likely you have made changes to different files.
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
No, the modifications from that link aplies, no email is displayed in checkout as guest, also no error displayed anymore. But in console i have an js error from checkout.js about email is required, even with those changes.
After some changes i manage to cancel the errors from checkout.js
Now i can send the order without email warning, but i got error cause website cant sent email, becose is empty.
File: system/library/mail.php Change:
$this->to = $to;
To:
if ($to != '') {$this->to = $to;} else { $this->to = 'myemail@email.com';}
This code not working, i need to send it to a default adress if its empty..
Now i can send the order without email warning, but i got error cause website cant sent email, becose is empty.
File: system/library/mail.php Change:
$this->to = $to;
To:
if ($to != '') {$this->to = $to;} else { $this->to = 'myemail@email.com';}
This code not working, i need to send it to a default adress if its empty..
Ofcorse, you are right.
I did follow this : https://stackoverflow.com/questions/631 ... t-checkout
Code: Select all
I did not do this step : if ($to != '') {$this->to = $to;} else { $this->to = 'web-and-seo@itech.bg';}
cause not working,
/ocartdata/storage/modification/catalog/controller/mail/order.php
Code: Select all
I added this condition:
if (empty($order_info['email'])) {
$finalemail= "info@mywebsite.com";}
else {
$finalemail= $order_info['email'];
}
Code: Select all
and changed :
$mail->setTo($order_info['email']);
to
$mail->setTo($finalemail);
Glad your issue is resolved now. Kindly add word [SOLVED] at the beginning of the post title.
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Not really, i did deleted and refreshed modifications a few times. My code is still there, maybe this file no regenerating ?
I think you are right in the end.
so change this
public_html/catalog/controller/mail/order.php
Who is online
Users browsing this forum: No registered users and 407 guests