Post by asparcilius » Wed Dec 21, 2016 4:48 pm

He all, Im implementing in oc 2 an invoice sistem.I have a problem when trying to get the order details.For example in the admin panel ---> view order(admin/view/template/sale/order_info.tpl), I inserted on the bottom of the page this code to generate the "payment city" <?php echo $payment_city; ?> and I'm getting this error Notice: Undefined variable: payment_city in.In oc 1.6 that code works ..

I checked the controller file and there seems to be these codes:

$data['payment_city'] = $order_info['payment_city'];
$data['payment_city'] = '';
'city' => $order_info['payment_city'],

Is there a way from the order to get the city,country etc..? In oc 2 all the order details for the location of the order are in one single function $payment_address; but i need payment_city,payment_country etc...

Newbie

Posts

Joined
Mon Jun 22, 2015 10:43 pm

Post by paulfeakins » Wed Dec 21, 2016 7:30 pm

Code: Select all

$data['payment_city'] = $order_info['payment_city'];
$data['payment_city'] = '';
Well you're setting payment_city and then immediately setting it to a blank string below, why are you doing that?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by asparcilius » Wed Dec 21, 2016 7:34 pm

$data['payment_city'] = $order_info['payment_city'];
$data['payment_city'] = '';

This code in in the default opencart order.php admin controler....

Newbie

Posts

Joined
Mon Jun 22, 2015 10:43 pm
Who is online

Users browsing this forum: No registered users and 49 guests