Post by jurpro » Thu Jun 11, 2015 1:48 pm

Hello. Recently I update from OC 2.0.2 to OC 2.0.3.1.

I got this error code. Someone can help? Thank you.

Notice: Undefined variable: frauds in /home/xxxxxxxxx/public_html/xxxxxx.com/admin/view/template/sale/order_info.tpl on line 31
Notice: Undefined variable: frauds in /home/xxxxxxxx/public_html/xxxxxx.com/admin/view/template/sale/order_info.tpl on line 389

Cari album edisi luar negeri? Atau dalam negeri juga bisa. Kunjungi saja http://www.sawios.com Semoga bisa membantu. :)


User avatar
Active Member

Posts

Joined
Wed Jun 06, 2012 6:17 pm

Post by IP_CAM » Fri Jun 12, 2015 3:46 am

FRAUDS is a v.2.0.3.x variable/thing, probably not included, at least not with this NAME, in your older v.2.x version.

Code: Select all

<?php if ($frauds) { ?>
          <?php foreach ($frauds as $fraud) { ?>
          <div class="tab-pane" id="tab-<?php echo $fraud['code']; ?>">
          <?php echo $fraud['content']; ?>
          </div>
          <?php } ?>
          <?php } ?>

Code: Select all

<?php foreach ($frauds as $fraud) { ?>
          <li><a href="#tab-<?php echo $fraud['code']; ?>" data-toggle="tab"><?php echo $fraud['title']; ?></a></li>
          <?php } ?>
You probably have to add some table, or Table Sub-things, into your DB, to make it work.
Or then, remove the portions (untested!), shown, above, from the file:

Code: Select all

opencart-2.0.3.1\upload\admin\view\template\sale\order_info.tpl
as strictly 'temporary' measure, if the file still functions..., afterwards... ;)
Good Luck!
Ernie
hitline.info/os/
PS: MAKE SURE, not to have ANY Mod's installed, possibly not working with OC v.2.0.3.x
Theres is a Mod, updating your DB, hopefully as well, somewhere in the Extension Section, for such.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by jurpro » Mon Jun 15, 2015 12:26 pm

Hello. Is there any simple instruction? Sorry I a little bit risky to add some table because I don't know what to do with add table. just add or spesipic table or what.
it's screenshot the error from order list.
error-fraud.jpg

error-fraud.jpg (55.88 KiB) Viewed 2143 times


Cari album edisi luar negeri? Atau dalam negeri juga bisa. Kunjungi saja http://www.sawios.com Semoga bisa membantu. :)


User avatar
Active Member

Posts

Joined
Wed Jun 06, 2012 6:17 pm

Post by IP_CAM » Mon Jun 15, 2015 12:55 pm

I meant, adding a table to the Database, and since you seem to be active with Opencart since 2012, I figured, you would know, what I was trying to tell you! Sorry ;D
one nevers knows!
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by pm-netti » Wed Jun 24, 2015 4:05 am

IP_CAM wrote:I meant, adding a table to the Database, and since you seem to be active with Opencart since 2012, I figured, you would know, what I was trying to tell you! Sorry ;D
one nevers knows!
Ernie
One option (version 2.0.3.1 is not need table `order_fraud`):
Cut this code from admin/controller/sale/order.php line 1436:

Code: Select all

  $data['frauds'] = array();
paste this to line 920:

Code: Select all

  $data['frauds'] = array();
  $order_info = $this->model_sale_order->getOrder($order_id);

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by jurpro » Sun Jun 28, 2015 9:47 pm

pm-netti wrote:
IP_CAM wrote:I meant, adding a table to the Database, and since you seem to be active with Opencart since 2012, I figured, you would know, what I was trying to tell you! Sorry ;D
one nevers knows!
Ernie
One option (version 2.0.3.1 is not need table `order_fraud`):
Cut this code from admin/controller/sale/order.php line 1436:

Code: Select all

  $data['frauds'] = array();
paste this to line 920:

Code: Select all

  $data['frauds'] = array();
  $order_info = $this->model_sale_order->getOrder($order_id);
Sorry, it still the same error. But thanks for help

Cari album edisi luar negeri? Atau dalam negeri juga bisa. Kunjungi saja http://www.sawios.com Semoga bisa membantu. :)


User avatar
Active Member

Posts

Joined
Wed Jun 06, 2012 6:17 pm
Who is online

Users browsing this forum: No registered users and 7 guests