I've updated this for v1.5.1.3 here. Please let me know if it works for other versions.
http://www.opencart.com/index.php?route ... on_id=4121
http://www.opencart.com/index.php?route ... on_id=4121
Thankyou very muchjstrouse wrote:I've updated this for v1.5.1.3 here. Please let me know if it works for other versions.
http://www.opencart.com/index.php?route ... on_id=4121
Please note: The original file I uploaded for 1.5.1.3 had the wrong install instructions, the correct instructions have been added the upload corrected.
jstrouse wrote:I've updated this for v1.5.1.3 here. Please let me know if it works for other versions.
http://www.opencart.com/index.php?route ... on_id=4121
Hi there!
Great mod! Some issues though... I am running OC 1.4.9.1, so I installed your module and it is working great but it is not showing the fields after subtotal: delivery cost, tax and total is not calculating correctly. It displays as subtotal the price w/o VAT, after that the delivery cost and after that, as a total, again the price w/o VAT.
I am not a programmer, but my guess is that something here:
is not working. Any ideas?
Great mod! Some issues though... I am running OC 1.4.9.1, so I installed your module and it is working great but it is not showing the fields after subtotal: delivery cost, tax and total is not calculating correctly. It displays as subtotal the price w/o VAT, after that the delivery cost and after that, as a total, again the price w/o VAT.
I am not a programmer, but my guess is that something here:
Code: Select all
<?php foreach ($order['total'] as $total) { ?><tr>
<td class="smallText" align="right"><b><?php echo $total['title']; ?></b></td>
<td class="smallText" align="right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
Version? What page are you on or what are you doing when it gives you the error? Did you copy the upload files where they go? (specifically, the admin/language/YOUR_LANGUAGE/sale/packingslip.php file)? I think that's the file that's missing.aspman wrote:hi
i did everything but not working :
Notice: Error: Could not load language sale/packingslip! in /home/#####/public_html/store/system/library/language.php on line 26
.
thx sir... really need help about print buttonjstrouse wrote:Next week sometime, I'll look and get you an answer. The name oscommerce is in one of the lines you added in the language files. Find and change that to change the label on the button.

For those of you having issues with line 11 on order_info.tpl, although I don't know what the issue is, a workaround would be to replace
<?php echo $button_osc_invoice; ?>
with
osCommerce Invoice (or whatever label you want the button to have)
Also, if there's an error with packingslips, replace
<?php echo $button_packingslip; ?>
with
Packingslip (or again whatever label you want on the button)
<?php echo $button_osc_invoice; ?>
with
osCommerce Invoice (or whatever label you want the button to have)
Also, if there's an error with packingslips, replace
<?php echo $button_packingslip; ?>
with
Packingslip (or again whatever label you want on the button)
For those of you having issues with line 11, the following code in admin/controller/sale/order.php around line 1200 has been placed in the wrong location. Note there are a number of different matching breadcrumb lines in that file and placing it near the wrong one will cause the error given.
The documentation in the download has been updated with a warning message.
The documentation in the download has been updated with a warning message.
Very useful MOD but I have found an error in the invoicing
version 1.5.1.3
The tax values are completely wrong.
It occurs here:
As I think has been pointed out before $product['tax'] is the total amount for the products, not the tax rate.
OC doesn't store the tax rate as a value at time of sale I don't think
So if you want to show the Unit price including tax you need to divide the 'tax' by the quantity then add this to the Net unit cost
Then you need to change this line in the $product_data array below
As the 'tax' column is the Total Tax for the product row it would make sense to move this column to between Total exc and Total inc and label it as such
or divide it by the quantity and label the column 'Unit Tax'
NB This all occurs twice in the script though I am not sure the other occurrence does anything
I have made a vQmod for this but I just wanted to make sure I have this right before I upload it
Discuss..
version 1.5.1.3
The tax values are completely wrong.
It occurs here:
Code: Select all
if ($product['tax'] > 0) {
$price_inc = $product['price'] + (($product['price'] / 100) * $product['tax']);
$prod_tax = (float) $product['tax']."%xxx";
} else {
$price_inc = $product['price'];
$prod_tax = "";
}
$total_inc = $price_inc * $product['quantity'];
OC doesn't store the tax rate as a value at time of sale I don't think
So if you want to show the Unit price including tax you need to divide the 'tax' by the quantity then add this to the Net unit cost
Code: Select all
if ($product['tax'] > 0) {
$unit_tax = $product['tax'] / $product['quantity'];
$price_inc = $product['price'] + $unit_tax;
// $prod_tax = $product['tax'];// dont need this - see below
}
else {
$price_inc = $product['price'];
//$prod_tax = "";
}
$total_inc = $product['total'] + $product['tax'];
Code: Select all
// 'tax' => $prod_tax,//wrong
'tax' => $this->currency->format($product['tax'], $order_info['currency_code'], $order_info['currency_value']),
or divide it by the quantity and label the column 'Unit Tax'
NB This all occurs twice in the script though I am not sure the other occurrence does anything
I have made a vQmod for this but I just wanted to make sure I have this right before I upload it
Discuss..
Who is online
Users browsing this forum: No registered users and 7 guests