Thanks for that, I have added it to the Prof. Invoice and Packingslip ExtensionTalonRAge wrote:Here is the vQmod file that handles both the invoices and packing slips since your latest release.

Thanks for that, I have added it to the Prof. Invoice and Packingslip ExtensionTalonRAge wrote:Here is the vQmod file that handles both the invoices and packing slips since your latest release.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
The code for images are found in the \admin\view\template\sales\order_packingslip.tpl and the \admin\view\template\sales\osc_order_invoice.francoisv wrote:Hi there.
Thx for the mod. I am rather new at this.
I installed it and made all the changes to the files.
I have a few problems. The alignment of the button seems to be a bit off. See attached picture.
Also, how do I change the logo and the images at the bottom? It shows the default logo and not my company logo.
How do I change the line in yellow or remove it if I don't want it.
Sorry if I sound like a noob.
Thx
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Op al uw computervragen een antwoord -- Extigo Computers
http://www.extigo.nl
Using OC 1.4.9.4
It says where to put it + it has the <div> and </div> in place.extigo wrote:In the manual it does not say you have to edit another div. I had the same problem because I put the input code in the same div as the original buttons. In the code you have to create a div for every button separately.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Op al uw computervragen een antwoord -- Extigo Computers
http://www.extigo.nl
Using OC 1.4.9.4
Code: Select all
admin/view/template/sale/order_list.tpl
Code: Select all
<div class="buttons">
<a onclick="$('#form').attr('action', '<?php echo $invoice; ?>'); $('#form').attr('target', '_blank'); $('#form').submit();" class="button"><span><?php echo $button_invoices; ?></span></a>
<!-- webme - osCommerce Invoice - mod - start -->
<a onclick="$('#form').attr('action', '<?php echo $osc_invoices; ?>'); $('#form').attr('target', '_blank'); $('#form').submit();" class="button"><span><?php echo $button_osc_invoices; ?></span></a>
<!-- webme - osCommerce Invoice - mod - end -->
<!-- webme - Packingslip - mod - start -->
<a onclick="$('#form').attr('action', '<?php echo $packingslips; ?>'); $('#form').attr('target', '_blank'); $('#form').submit();" class="button"><span><?php echo $button_packingslips; ?></span></a>
<!-- webme - Packingslip - mod - end -->
<a onclick="$('#form').attr('action', '<?php echo $delete; ?>'); $('#form').attr('target', '_self'); $('#form').submit();" class="button"><span><?php echo $button_delete; ?></span></a>
</div>
Code: Select all
admin/view/template/sale/order_form.tpl
Code: Select all
<div class="buttons">
<a onclick="window.open('<?php echo $invoice; ?>');" class="button"><span><?php echo $button_invoice; ?></span></a>
<!-- webme - osCommerce Invoice - mod - start -->
<a onclick="window.open('<?php echo $osc_invoice; ?>');" class="button"><span><?php echo $button_osc_invoice; ?></span></a>
<!-- webme - osCommerce Invoice - mod - end -->
<!-- webme - Packingslip - mod - start -->
<a onclick="window.open('<?php echo $packingslip; ?>');" class="button"><span><?php echo $button_packingslip; ?></span></a>
<!-- webme - Packingslip - mod - end -->
<a onclick="location = '<?php echo $cancel; ?>';" class="button"><span><?php echo $button_cancel; ?></span></a>
</div>
Русское коммьюнити разработчиков OpenCart - myopencart.ru
some useful mods:
[Released] Orders and Comments AT-A-GLANCE, [Released] Prof. Invoice and Packingslip, [Released] Recently viewed
My commercial modules: [W]ebme Compare Products, [W]ebme Bought With This
step #0 (one for both)the changes are almost the same for both "mods"
Code: Select all
admin/model/sale/order.php
Code: 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'];
}
Code: 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>
Русское коммьюнити разработчиков OpenCart - myopencart.ru
some useful mods:
[Released] Orders and Comments AT-A-GLANCE, [Released] Prof. Invoice and Packingslip, [Released] Recently viewed
My commercial modules: [W]ebme Compare Products, [W]ebme Bought With This
the text is in your language files:How do I change the line in yellow or remove it if I don't want it.
Code: Select all
$_['entry_yellow_line'] = 'blah-blah-blah. Yellow line text. It is from the language file.';
Code: Select all
<tr>
<td><img src="view/osc_invoice/pixel_trans.gif" alt="" width="1" border="0" height="5"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="2" cellspacing="0">
<tbody><tr>
<td class="main-payment2"><?php echo $entry_yellow_line; ?></td>
</tr>
</tbody></table></td>
</tr>
Code: Select all
admin/view/osc_invoice/stylesheet.css
Русское коммьюнити разработчиков OpenCart - myopencart.ru
some useful mods:
[Released] Orders and Comments AT-A-GLANCE, [Released] Prof. Invoice and Packingslip, [Released] Recently viewed
My commercial modules: [W]ebme Compare Products, [W]ebme Bought With This
If you are going to use the [MOD] - VirtualQMod "vQmod" Virtual File Modification System then yes, you need them both.megahuman wrote:Hey,
I want to install this mod but I'm just curious what the difference between the two download files are?
Prof. Invoice & Packingslip 1.3
or the Prof. Invoice & Packingslip 1.3 vQmod?
Do I need them both?
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
But is their any benefits using that or is it just easier to install the normal mod?i2Paq wrote:If you are going to use the [MOD] - VirtualQMod "vQmod" Virtual File Modification System then yes, you need them both.megahuman wrote:Hey,
I want to install this mod but I'm just curious what the difference between the two download files are?
Prof. Invoice & Packingslip 1.3
or the Prof. Invoice & Packingslip 1.3 vQmod?
Do I need them both?
If you need just "new lines" - no problem:fiona86 wrote:Is it possible for us to add it a few more lines of text to the yellow box? I'm sure many of us would need more space type instructions and bank information for the customers to make payment.
Code: Select all
admin/language/YOUR_LANG/sale/osc_order.php
Code: Select all
$_['entry_yellow_line'] = 'blah-blah-blah. Yellow line text. It is from the language file.';
Code: Select all
$_['entry_yellow_line'] = 'blah-blah-blah. Yellow line text. It is from the language file.<br /><br />blah-2<br />blah-3<br /><br />...<br /><br />blah-n';
and here is a result But if you need some "positioning" within that "line", you will need some more markup-changes within template...is a "line breaker".Code: Select all
<br />
each <br /> means "new line"
Русское коммьюнити разработчиков OpenCart - myopencart.ru
some useful mods:
[Released] Orders and Comments AT-A-GLANCE, [Released] Prof. Invoice and Packingslip, [Released] Recently viewed
My commercial modules: [W]ebme Compare Products, [W]ebme Bought With This
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Code: Select all
<?php foreach ($order['total'] as $total) { ?>
<?php echo $total['title']; ?>
<?php echo $total['text']; ?>
<?php } ?>
Code: Select all
<?php foreach ($order['total'] as $total) { ?>
<tr>
<td class="smallText" align="right"><?php echo $total['title']; ?></td>
<td class="smallText" align="right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
Code: Select all
<?php foreach ($order['total'] as $total) { ?>
<?php if ($total['title'] == "Total:") { ?>
<tr>
<td class="smallText" align="right"><?php echo $total['title']; ?></td>
<td class="smallText" align="right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
<?php } ?>
Русское коммьюнити разработчиков OpenCart - myopencart.ru
some useful mods:
[Released] Orders and Comments AT-A-GLANCE, [Released] Prof. Invoice and Packingslip, [Released] Recently viewed
My commercial modules: [W]ebme Compare Products, [W]ebme Bought With This
Users browsing this forum: No registered users and 6 guests