Everything is working but I get this code after I reg to my webstore
Code: Select all
Warning: sprintf(): Too few arguments in /home/r269737/public_html/kauppa/catalog/controller/account/success.php on line 26
Thanks!!
Code: Select all
Warning: sprintf(): Too few arguments in /home/r269737/public_html/kauppa/catalog/controller/account/success.php on line 26
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
$data['text_message'] = sprintf($this->language->get('text_message'), $this->url->link('information/contact'));
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
<?php
// Heading
$_['heading_title'] = 'Your Account Has Been Created!';
// Text
$_['text_message'] = '<p>Congratulations! Your new account has been successfully created!</p> <p>You can now take advantage of member privileges to enhance your online shopping experience with us.</p> <p>If you have ANY questions about the operation of this online shop, please e-mail the store owner.</p> <p>A confirmation has been sent to the provided e-mail address. If you have not received it within the hour, please <a href="%s">contact us</a>.</p>';
$_['text_approval'] = '<p>Thank you for registering with %s!</p><p>You will be notified by e-mail once your account has been activated by the store owner.</p><p>If you have ANY questions about the operation of this online shop, please <a href="%s">contact the store owner</a>.</p>';
$_['text_account'] = 'Account';
$_['text_success'] = 'Success';
Code: Select all
<?php
// Heading
$_['heading_title'] = 'Tilisi on luotu!';
// Text
$_['text_message'] = '<p>Onnittelut! Uusi tilisi on luotu onnistuneesti!</p> <p>Olet nyt %s Kumppani </p> <p>Jos sinulla on kysyttävää, lähetä sähköpostia kaupan ylläpitäjälle.</p> <p>Vahvistus lähetetään sähköpostiosoitteeseen. Jos et ole saanut sitä tunnin sisällä, ota <a href="%s"> yhteyttä meihin</a>.</p>';
$_['text_approval'] = '<p>Kiitos rekisteräinnistäsi %s!</p><p>Sinulle ilmoitetaan sähköpostitse, kun tilisi on aktivoitu.</p><p>Jos sinulla on kysyttävää verkkokauppamme toiminnasta, ole hyvä <a href="%s"> Ota yhteyttä meihin</a>.</p>';
$_['text_account'] = 'Oma tili';
$_['text_success'] = 'Onnistui';
Code: Select all
<?php
class ControllerAccountSuccess extends Controller {
public function index() {
$this->load->language('account/success');
$this->document->setTitle($this->language->get('heading_title'));
$data['breadcrumbs'] = array();
$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_home'),
'href' => $this->url->link('common/home')
);
$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_account'),
'href' => $this->url->link('account/account', '', true)
);
$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_success'),
'href' => $this->url->link('account/success')
);
if ($this->customer->isLogged()) {
$data['text_message'] = sprintf($this->language->get('text_success'), $this->url->link('information/contact'));
} else {
$data['text_message'] = sprintf($this->language->get('text_approval'), $this->config->get('config_name'), $this->url->link('information/contact'));
}
if ($this->cart->hasProducts()) {
$data['continue'] = $this->url->link('checkout/cart');
} else {
$data['continue'] = $this->url->link('account/account', '', true);
}
$data['column_left'] = $this->load->controller('common/column_left');
$data['column_right'] = $this->load->controller('common/column_right');
$data['content_top'] = $this->load->controller('common/content_top');
$data['content_bottom'] = $this->load->controller('common/content_bottom');
$data['footer'] = $this->load->controller('common/footer');
$data['header'] = $this->load->controller('common/header');
$this->response->setOutput($this->load->view('common/success', $data));
}
}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Please post the [ code ] and [ /code ] tags (without spaces) when posting codes!
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: Mike Guenther, paulfeakins and 463 guests