Bitoslaw Posted August 21, 2017 Share Posted August 21, 2017 Witam,Sklep normalnie dział, aż dziś znikąd w ostatnim kroku zakupu gdy przechodzi do validation wyskakuje tylko takie coś.?php class Mail extends MailCore { public static function Send($id_lang, $template, $subject, $template_vars, $to, $to_name = null, $from = null, $from_name = null, $file_attachment = null, $mode_smtp = null, $template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null) { if($template == 'order_conf' && empty($template_vars['{message}'])){ $context = Context::getContext(); if(!empty($context->cart->id)){ $message = Message::getMessageByCartId($context->cart->id); $template_vars['{message}'] = empty($message['message']) ? '' : $message['message']; } } return parent::Send($id_lang, $template, $subject, $template_vars, $to, $to_name, $from, $from_name, $file_attachment, $mode_smtp, $template_path, $die, $id_shop); } }Ktoś wie jak to naprawić? Link to comment Share on other sites More sharing options...
0 e_com Posted August 21, 2017 Share Posted August 21, 2017 Ktoś skasował ostry nawias w skrypcie php. Powinno być: <?php a nie ?php Link to comment Share on other sites More sharing options...
0 Bitoslaw Posted August 21, 2017 Author Share Posted August 21, 2017 Ktoś skasował ostry nawias w skrypcie php. Powinno być: <?php a nie ?php Ehhh zaś ktoś jak mnie nie było grzebał, bez pytania. Sam dopiero Preste ogarniam bo głównie jestem grafikiem, ale nie psuje kodu i nie zostawiam jak ci nowi... A podpowiesz mi w jakim to pliku szukać? Link to comment Share on other sites More sharing options...
0 e_com Posted August 21, 2017 Share Posted August 21, 2017 Wygląda to na /override/classes/Mail.php Jak jest kupa "grzebaczy" w kodzie sklepu, to i z tego sklepu będzie kupa Link to comment Share on other sites More sharing options...
0 Bitoslaw Posted August 21, 2017 Author Share Posted August 21, 2017 Wygląda to na /override/classes/Mail.php Jak jest kupa "grzebaczy" w kodzie sklepu, to i z tego sklepu będzie kupa Dzięki za pomoc już znalazłem to. Dodali kod który był nie potrzebny w mail.php bo taki moduł do tego wgrałem w czwartek i im się sypło. I zgadzam się z twoją opinią. Mówię im nie raz że jak mnie nie ma a szef im coś da nie umieją to niech lepiej mi zadzwonią i zdalnie z domu to zrobię, niż mają próbować i 20 innych rzeczy zepsuć... Szefowi też idzie tłumaczyć żeby mi dzwonił... Link to comment Share on other sites More sharing options...
Question
Bitoslaw
Witam,
Sklep normalnie dział, aż dziś znikąd w ostatnim kroku zakupu gdy przechodzi do validation wyskakuje tylko takie coś.
?php class Mail extends MailCore { public static function Send($id_lang, $template, $subject, $template_vars, $to, $to_name = null, $from = null, $from_name = null, $file_attachment = null, $mode_smtp = null, $template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null) { if($template == 'order_conf' && empty($template_vars['{message}'])){ $context = Context::getContext(); if(!empty($context->cart->id)){ $message = Message::getMessageByCartId($context->cart->id); $template_vars['{message}'] = empty($message['message']) ? '' : $message['message']; } } return parent::Send($id_lang, $template, $subject, $template_vars, $to, $to_name, $from, $from_name, $file_attachment, $mode_smtp, $template_path, $die, $id_shop); } }
Ktoś wie jak to naprawić?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now