Co sa stalo?
Co sa stalo?
Cafte,
volal mi zakaznik ze sa mu neda objednat tovar. Tak som to teda testol, a co nevidim - zvolil som sposob dopravy a platby a zrazu:
Warning: Cannot modify header information - headers already sent by (output started at /home/t/o/topmotosk/public_html/catalog/language/slovak/payment/bank_transfer.php:1) in /home/t/o/topmotosk/public_html/system/engine/controller.php on line 27
Do vcera fungovalo vsetko OK a ani som nic nemenil. Co to moze byt? Pozeral som v controller.php riadok 27 vyzera takto:
header('Location: ' . str_replace('&', '&', $url));
ale v tom sa ja moc nevyznam.
volal mi zakaznik ze sa mu neda objednat tovar. Tak som to teda testol, a co nevidim - zvolil som sposob dopravy a platby a zrazu:
Warning: Cannot modify header information - headers already sent by (output started at /home/t/o/topmotosk/public_html/catalog/language/slovak/payment/bank_transfer.php:1) in /home/t/o/topmotosk/public_html/system/engine/controller.php on line 27
Do vcera fungovalo vsetko OK a ani som nic nemenil. Co to moze byt? Pozeral som v controller.php riadok 27 vyzera takto:
header('Location: ' . str_replace('&', '&', $url));
ale v tom sa ja moc nevyznam.
Re: Co sa stalo?
Akú verziu používate?
Hoďte sem aj celý kód z bank_transfer.php.
Hoďte sem aj celý kód z bank_transfer.php.
Re: Co sa stalo?
Zdravim,
este len uvediem ze som prave zistil, ze sa to deje len pri registr. zakaznikoch.
Nakup bez registracie funguje bez problemov.
cely bank transfer:
<?php
// Text
$_['text_title'] = 'Bankový prevod';
$_['text_instruction'] = 'Prosíme o bankový prevod celkovej sumy na náš bankový účet.';
$_['text_payment'] = 'Vaša objednávka nebude akceptovaná, pokiaľ nebude tovar zaplatený.';
?>
cely controller:
<?php
abstract class Controller {
protected $registry;
protected $id;
protected $template;
protected $children = array();
protected $data = array();
protected $output;
public function __construct($registry) {
$this->registry = $registry;
}
public function __get($key) {
return $this->registry->get($key);
}
public function __set($key, $value) {
$this->registry->set($key, $value);
}
protected function forward($route, $args = array()) {
return new Action($route, $args);
}
protected function redirect($url) {
header('Location: ' . str_replace('&', '&', $url));
exit();
}
protected function render($return = FALSE) {
foreach ($this->children as $child) {
$action = new Action($child);
$file = $action->getFile();
$class = $action->getClass();
$method = $action->getMethod();
$args = $action->getArgs();
if (file_exists($file)) {
require_once($file);
$controller = new $class($this->registry);
$controller->index();
$this->data[$controller->id] = $controller->output;
} else {
exit('Error: Could not load controller ' . $child . '!');
}
}
if ($return) {
return $this->fetch($this->template);
} else {
$this->output = $this->fetch($this->template);
}
}
protected function fetch($filename) {
$file = DIR_TEMPLATE . $filename;
if (file_exists($file)) {
extract($this->data);
ob_start();
require($file);
$content = ob_get_contents();
ob_end_clean();
return $content;
} else {
exit('Error: Could not load template ' . $file . '!');
}
}
}
?>
este len uvediem ze som prave zistil, ze sa to deje len pri registr. zakaznikoch.
Nakup bez registracie funguje bez problemov.
cely bank transfer:
<?php
// Text
$_['text_title'] = 'Bankový prevod';
$_['text_instruction'] = 'Prosíme o bankový prevod celkovej sumy na náš bankový účet.';
$_['text_payment'] = 'Vaša objednávka nebude akceptovaná, pokiaľ nebude tovar zaplatený.';
?>
cely controller:
<?php
abstract class Controller {
protected $registry;
protected $id;
protected $template;
protected $children = array();
protected $data = array();
protected $output;
public function __construct($registry) {
$this->registry = $registry;
}
public function __get($key) {
return $this->registry->get($key);
}
public function __set($key, $value) {
$this->registry->set($key, $value);
}
protected function forward($route, $args = array()) {
return new Action($route, $args);
}
protected function redirect($url) {
header('Location: ' . str_replace('&', '&', $url));
exit();
}
protected function render($return = FALSE) {
foreach ($this->children as $child) {
$action = new Action($child);
$file = $action->getFile();
$class = $action->getClass();
$method = $action->getMethod();
$args = $action->getArgs();
if (file_exists($file)) {
require_once($file);
$controller = new $class($this->registry);
$controller->index();
$this->data[$controller->id] = $controller->output;
} else {
exit('Error: Could not load controller ' . $child . '!');
}
}
if ($return) {
return $this->fetch($this->template);
} else {
$this->output = $this->fetch($this->template);
}
}
protected function fetch($filename) {
$file = DIR_TEMPLATE . $filename;
if (file_exists($file)) {
extract($this->data);
ob_start();
require($file);
$content = ob_get_contents();
ob_end_clean();
return $content;
} else {
exit('Error: Could not load template ' . $file . '!');
}
}
}
?>
Re: Co sa stalo?
Potrebujem vedieť, akú verziu OpenCart používate.
Re: Co sa stalo?
verzia v1.4.9.3 - a nedavno som stahoval najnovsi language pack (z tejto SK podpory) ale s tym to nesuvisi, pretoze medzi tym objednavky dosli bez problemov
Re: Co sa stalo?
Používajte len preklad, ktorý je aktualizovaný pre danú verziu. To znamená pre verziu v1.4.9.3 používajte preklad v1.4.9.3. Nie iný!
Nakopírujte súbor, ktorý Vám prikladám v prílohe na server. Možno je problém zo zle nastaveným kódovaním súboru. Do catalog > language > slovak > payment.
Nakopírujte súbor, ktorý Vám prikladám v prílohe na server. Možno je problém zo zle nastaveným kódovaním súboru. Do catalog > language > slovak > payment.
- Prílohy
-
- bank_transfer.rar
- (294 Bajtov) 128 stiahnutí
Re: Co sa stalo?
Dakujem pekne !!!
Pomohlo to ! Aktualizacia slovenciny v tomto pripade asi nebol rozumny krok bez aktualizacie systemu ?!
Pomohlo to ! Aktualizacia slovenciny v tomto pripade asi nebol rozumny krok bez aktualizacie systemu ?!
Re: Co sa stalo?
Ako som písal vyššie.
„Používajte len preklad, ktorý je aktualizovaný pre danú verziu. To znamená pre verziu v1.4.9.3 používajte preklad v1.4.9.3. Nie iný!“
„Používajte len preklad, ktorý je aktualizovaný pre danú verziu. To znamená pre verziu v1.4.9.3 používajte preklad v1.4.9.3. Nie iný!“