Opencart 1.5.1.3 Undefined Variable when registering
$30-250 USD
Sürüyor
İlan edilme: neredeyse 11 yıl önce
$30-250 USD
Teslimde ödenir
PHP Notice: Undefined variable: payment_address in /home5/skyview2/public_html/catalog/controller/checkout/[login to view URL] on line 89
Here is whats going on.
A. At first i was getting the errors below so i searched google and found a so called solution
Problem : message in the error log on fresh opencart install
Undefined index: payment_address_id ...... checkout/[login to view URL] on line 11
Undefined index: shipping_address_id ...... checkout/[login to view URL] on line 11
Solution:
1. EDIT: catalog/controller/checkout/[login to view URL]
2. FIND:
Code: Select all
if ($this->customer->isLogged()) {
3. REPLACE WITH:
Code: Select all
if ($this->customer->isLogged() && isset($this->session->data['shipping_address_id'])) {
4. EDIT: catalog/controller/checkout/[login to view URL]
5. FIND:
Code: Select all
if ($this->customer->isLogged()) {
6. REPLACE WITH:
Code: Select all
if ($this->customer->isLogged() && isset($this->session->data['payment_address_id'])) {
B. Now that i did the above code update i get another message below i have not way of solving .
PHP Notice: Undefined variable: payment_address in /home5/skyview2/public_html/catalog/controller/checkout/[login to view URL] on line 89
C. I also had the below issue that i think i solved by finding a solution online but i rather you fix it.
PHP Notice: Undefined index: zone_id in /home3/xxxxx/public_html/xxxxx/catalog/controller/account/[login to view URL] on line 322 the online solution is below
Your registration control is looking for a variable in your registration form that is not there:
Code: Select all
if ($this->request->post['zone_id'] == '') {
$this->error['zone'] = $this->language->get('error_zone');
}
AND THIS:
if (isset($this->request->post['zone_id'])) {
$this->data['zone_id'] = $this->request->post['zone_id'];
} else {
$this->data['zone_id'] = '';
}
Make sure this line of code is in your registration form:
Code: Select all
*
File: catalog/view/theme/your_theme/template/account/[login to view URL]
Here is what i want ...i want opencart 1.5.1.3 with full stable checkout module working without problems. Fix the solution and give me the files to upload to live site. ATTENTION. The errors are all from default checkout module not modules added. To see the error you must always register a new member on the checkout page and complete a checkout with payment module set on cash on delivery. ....Also test the checkout with products requiring shipping and products not requiring shipping...this can effect the error output.