Re: [Released] Prof. Invoice and Packingslip
When generating packing slip the text is in english (same as admin language) but my productlines are in dutch. How can I get these productlines also in english on the packing slip?
thanks!
OpenCart Community Forum - Discuss shopping cart and e-commerce solutions.
https://forum.opencart.com/
This is because you Admin has the English as language while the order has been placed using the Dutch language.JonathanRR wrote:my product on my webshop are in 2 languages, English and dutch.
When generating packing slip the text is in english (same as admin language) but my productlines are in dutch. How can I get these productlines also in english on the packing slip?
thanks!
Then you should hire someone that will code "something" to make it work for youqnxmore wrote:I have a shop in 4 languages, I can not change every time administration language when I want to generate invoice in different languages.
Thanks.qnxmore wrote:Yes, it's works like charm, and I think, it's resolv many many admins problems
Code: Select all
---------- Date: 2013-04-05 14:02:56 ~ IP : 174.10.10.254 ----------
REQUEST URI : /admin/index.php?route=sale/order&token=24c1b8524143760e6ae22e0962b17e3a
MOD DETAILS:
modFile : C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\xxx.ro\vqmod/xml/prof-invoice_packingslip.xml
id : Prof. Invoice and Packing slip for 1.5.1.3- reqires uploads from jstrouse
version : 1
vqmver : 2
author : olimax for jstrouse
SEARCH NOT FOUND (ABORTING MOD): 'href' => $this->url->link('sale/order', 'token=' . $this->session->data['token'], 'SSL'),
SEARCH NOT FOUND (ABORTING MOD): 'href' => $this->url->link('sale/order', 'token=' . $this->session->data['token'], 'SSL'),
afwollis wrote:for those who want to see SKU...
step #0 (one for both)the changes are almost the same for both "mods"
openafter (near the end of file)Code: Select all
admin/model/sale/order.php
addCode: Select all
public function getTotalSalesByYear($year) { $query = $this->db->query("SELECT SUM(total) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id > '0' AND YEAR(date_added) = '" . (int)$year . "'"); return $query->row['total']; }
...in their invoicesCode: Select all
/* webme - get sku - for osC-invoice or Packingslip - mod - start */ public function wbm_getSKU($prodID) { $query = $this->db->query("SELECT `sku` FROM `" . DB_PREFIX . "product` WHERE `product_id` = '".(int)$prodID."' LIMIT 1"); return $query->row['sku']; } /* webme - get sku - for osC-invoice or Packingslip - mod - end */
...in their packingslipsstep #1
openfind functionCode: Select all
admin/controller/sale/order.php
inside itCode: Select all
public function osc_invoice() {
afteraddCode: Select all
$this->data['column_comment'] = $this->language->get('column_comment');
scroll downCode: Select all
$this->data['column_sku'] = $this->language->get('column_sku');
after (somewhere around the line 1109)addCode: Select all
'model' => $product['model'],
step #2Code: Select all
'sku' => $this->model_sale_order->wbm_getSKU($product['product_id']),
openadd anywhereCode: Select all
admin/language/english/sale/osc_order.php
step #3Code: Select all
$_['column_sku'] = 'SKU';
openafterCode: Select all
admin/view/template/sale/osc_order_invoice.tpl
addCode: Select all
<td class="dataTableHeadingContent-invoice"><?php echo $column_model; ?></td>
afterCode: Select all
<td class="dataTableHeadingContent-invoice"><?php echo $column_sku; ?></td>
addCode: Select all
<td class="dataTableContent" valign="top"><?php echo $product['model']; ?></td>
replaceCode: Select all
<td class="dataTableContent" valign="top"><?php echo $product['sku']; ?></td>
toCode: Select all
<td colspan="8" align="right"><br> <table border="0" cellpadding="2" cellspacing="0">
Code: Select all
<td colspan="9" align="right"><br> <table border="0" cellpadding="2" cellspacing="0">
step #1
openfind functionCode: Select all
admin/controller/sale/order.php
inside itCode: Select all
public function packingslip() {
addafterCode: Select all
$this->data['column_sku'] = $this->language->get('column_sku');
scroll downCode: Select all
$this->data['column_comment'] = $this->language->get('column_comment');
after (somewhere around the line 1327)addCode: Select all
'model' => $product['model'],
step #2Code: Select all
'sku' => $this->model_sale_order->wbm_getSKU($product['product_id']),
openadd anywhereCode: Select all
admin/language/english/sale/packingslip.php
step #3Code: Select all
$_['column_sku'] = 'SKU';
openafterCode: Select all
admin/view/template/sale/order_packingslip.tpl
addCode: Select all
<td class="dataTableHeadingContent-invoice"><?php echo $column_model; ?></td>
afterCode: Select all
<td class="dataTableHeadingContent-invoice"><?php echo $column_sku; ?></td>
addCode: Select all
<td class="dataTableContent" valign="top"><?php echo $product['model']; ?></td>
Code: Select all
<td class="dataTableContent" valign="top"><?php echo $product['sku']; ?></td>