Post by vimobe » Thu Jan 11, 2018 10:36 pm

Hi,

I'm quite new with opencart and finding difficulties solving the problem, even after days of searching for solutions.
- Customer unable to add new address in the address book.

Error 404 with log as follow:

Code: Select all

PHP Notice:  Undefined variable: insert in /home/virtualj/public_html/xxxxx/catalog/view/theme/xxxxx/template/account/address_list.tpl on line 39
content of address_list.tpl as follow

Code: Select all

<div class="pull-right"><a href="<?php echo $insert; ?>" class="btn btn-primary"><?php echo $button_new_address; ?></a></div>
Any advice or solution very much appreciated.

Thanks

Newbie

Posts

Joined
Thu Jan 11, 2018 12:29 am

Post by Johnathan » Sat Jan 13, 2018 12:56 am

1. Please make sure you post your specific OpenCart version when requesting help. Sometimes even a minor version change affects the code, so it's helpful to know.

2. This is an error in your theme. The error message is saying that it wants to use the $insert variable, but it hasn't been created in the relevant controller file. The default address_list.tpl file does not use an $insert variable, so your theme is probably for the wrong OpenCart version (since I think $insert was in OpenCart 1.5, but isn't in OpenCart 2), or it's just a mistake in that template file. Contact your theme developer for support.

Image
Image Image Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by josephfoster » Mon Jan 22, 2018 8:55 pm

Jonathan, thanx a lot for these advices!

Hello! Somebody can help me to choose beste online casinos site? Thanks in advance!


Newbie

Posts

Joined
Mon Jan 22, 2018 8:11 pm
Who is online

Users browsing this forum: coldmolasses, support_cs and 91 guests