Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I want to make custom shipping consignment note using this file :
admin/view/template/sale/order_shipping.twig
i would like to get postcode from order to display on my consignment note , therefore i need to know what keyword do i have to put to display postcode?
Thank you
find in admin/controller/sale/order.php
line arround 1835 find:
Code: Select all
'shipping_method' => $order_info['shipping_method'],
Code: Select all
'postcode' => $order_info['shipping_postcode'],
Cheers
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
In my example postcode defined like postcode. So you should use {{ order.postcode }}
Cheers
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
Step 1 : Navigate to file admin/controller/sale/order.php and search for:
$this->response->setOutput($this->load->view('sale/order_shipping', $data));
Add before:
$data['postcode'] = $order_info['shipping_postcode'];
Step 2 : Navigate to file admin/view/template/sale/order_shipping.twig do some changes:
Search : <td><b>{{ column_model }}</b></td>
Add After : <td><Consignment Note</b></td>
Search : <td>{{ product.model }}</td>
Add After : <td>{{ postcode }}</td>
Now you can see a column after “Model” with name “Consignment Note” and postal code as its value.
NOTE: Do not forget to clear your dashboard to see the changes.
Opencart Expert | sales[at]ost.agency
Skype - manish.osuniverse | Gtalk - manishmt
Extensions for Opencart @ https://www.ost.agency/product/product- ... extensions
ost.agency - ecommerce website design, development and digital company
it is not necessary if you want it retrieve like:ostechnologies wrote: ↑Fri Jul 13, 2018 7:57 pmYou need to perform some changes
Step 1 : Navigate to file admin/controller/sale/order.php and search for:
$this->response->setOutput($this->load->view('sale/order_shipping', $data));
Add before:
$data['postcode'] = $order_info['shipping_postcode'];
Step 2 : Navigate to file admin/view/template/sale/order_shipping.twig do some changes:
Search : <td><b>{{ column_model }}</b></td>
Add After : <td><Consignment Note</b></td>
Search : <td>{{ product.model }}</td>
Add After : <td>{{ postcode }}</td>
Now you can see a column after “Model” with name “Consignment Note” and postal code as its value.
NOTE: Do not forget to clear your dashboard to see the changes.
Code: Select all
{% for order in orders %}
{{ order.postcode }}
{% endfor %}
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
Users browsing this forum: No registered users and 411 guests