Jump to content
  • 0

Validation przestało działać.


Bitoslaw

Question

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

  • 0

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

  • 0

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ł... :P

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...