Zen Cart Logo
Forums / All Other Contributions/Addons / Popup Print Invoice Version 1.1

Popup Print Invoice Version 1.1

Locked

Views: 5,639

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
4 Apr 2008, 3:32 PM
#1
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Popup Print Invoice Version 1.1

I downloaded this mod from this link:

http://www.pluscom.us/contrib/popup_print_invoice_v1.1.zip

Running it on Zencart 1.3.8 and it works great except that on the invoice the text [Print Order Invoice] doesn't show, instead it shows a link under TEXT_PRINT_RECEIPT TEXT_ACCOUNT_INVOICE_PRINT.

As instructed, I've added the define text lines on account_history_info.php and checkout_success.php both on my template and the main file but it still doesn't work. :blink:

There is probably a simple solution to this but I'm not familiar with php enough to know where to look.

I was wondering if anyone can help me on this? Thanks!

Does it have something to do with this code:

<!--bof added lines by popup_invoice_print_v1.1 module box -->
<div class="centerColumn" id="accountHistInfo" colspan="1" align="center">
<?php echo '<br />'; echo '<hr witdth=100%>'; echo TEXT_CHECKOUT_PRINT_ALERT; echo '<h4>'; echo '<br />'; echo '<a href="javascript:popupWindow(\'' . zen_href_link('popup_print_invoice&order_id='. $zv_orders_id) . '\')">' . TEXT_PRINT_RECEIPT . '</a>'; ?> <!--eof added lines by popup_invoice_print_v1.1 module box -->
4 Apr 2008, 3:53 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Popup Print Invoice Version 1.1

Decostyle:

... on the invoice the text [Print Order Invoice] doesn't show, instead it shows a link under TEXT_PRINT_RECEIPT TEXT_ACCOUNT_INVOICE_PRINT.

As instructed, I've added the define text lines on account_history_info.php and checkout_success.php both on my template and the main file but it still doesn't work.It seems that the edits you were to make for the language files haven't "taken". Either they were made in the wrong files or the upload of the changes was unsuccessful.

4 Apr 2008, 4:40 PM
#3
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Popup Print Invoice Version 1.1

Any quick fix for this? Anyone else use this? It's a simple and clean mod and I do wish to use it if I can get this thing fixed!

4 Apr 2008, 5:25 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Popup Print Invoice Version 1.1

Quick fix? Sure. Put the defines in the right files, and ensure that the changes get uploaded to your server successfully.
As you say, it's a simple mod.

4 Apr 2008, 5:41 PM
#5
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Popup Print Invoice Version 1.1

wouldnt it be just as easy to create a new add-ons.php language file and place the defines there.

It will then auto load, and also gives a great place to put any other custom language defines

1 Jul 2008, 2:56 PM
#6
djjase avatar

djjase

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

Re: Popup Print Invoice Version 1.1

Hi, I have got this working great, but it is using the wrong invoice.

I have Super Orders 2 installed, when I print the invoice from admin it is correct but this script seems to bring up another invoice.

I changed the bit where it said order.php to super_order.php but the screen just stayed blank

On the Popup Print version it shows:

Item Name:1 x Allure Sensuelle by Chanel Eau de Parfum for Women (100ml) Model: HBALLURESEN100
Tax:None!
Unit Price: $200.00
Total: $200.00

Where I need it to be like the admin one which is like:

Products: 1 x Allure Sensuelle by Chanel Eau de Parfum for Women (100ml) Model:HBALLURESEN100
Tax:10%
Price (ex) $200.00
Price (inc) $220.00
Total (ex) $200.00
Total (inc) $220.00

What do I need to change for this script to pick up the correct invoice?

1 Jul 2008, 9:09 PM
#7
craft_magick avatar

craft_magick

Zen Follower

Join Date:
Nov 2007
Posts:
166
Plugin Contributions:
0

Re: Popup Print Invoice Version 1.1

I am having the opposite problem... my invoices are suddenly printing with SEVEN columns across as follows:

Products
Model
Tax
Price (ex)
Price (inc)
Total (ex)
Total (inc)

Not sure what happened or why the layout has suddenly changed.

They used to print the way I wanted them with only 3 columns across:

Products
Price
Total

I haven't installed any additional mods in the past couple days that would have caused this change.

Any suggestions to getting the invoices to printing the way they used to would be appreciated.

Zencart ROCKS!

9 Jul 2008, 1:35 PM
#8
fuzzybunny avatar

fuzzybunny

New Zenner

Join Date:
Sep 2007
Location:
Melbourne Australia
Posts:
60
Plugin Contributions:
0

Re: Popup Print Invoice Version 1.1

DJ Jase,

Completely different files, so if you want them to look the same you will have to change them manually - which is not a big hassle - but getting the "PAID" and "BALANCE" info from superorders to the front seems to be a bit more difficult.

9 Jul 2008, 1:36 PM
#9
fuzzybunny avatar

fuzzybunny

New Zenner

Join Date:
Sep 2007
Location:
Melbourne Australia
Posts:
60
Plugin Contributions:
0

Re: Popup Print Invoice Version 1.1

Craft Magick,

If there are no customisations and it worked fine before just reinstall the contribution and it will go back to new again.

10 Jul 2008, 11:34 PM
#10
craft_magick avatar

craft_magick

Zen Follower

Join Date:
Nov 2007
Posts:
166
Plugin Contributions:
0

Re: Popup Print Invoice Version 1.1

Craft Magick:

I am having the opposite problem... my invoices are suddenly printing with SEVEN columns across as follows:

Products
Model
Tax
Price (ex)
Price (inc)
Total (ex)
Total (inc)

Not sure what happened or why the layout has suddenly changed.

They used to print the way I wanted them with only 3 columns across:

Products
Price
Total

I haven't installed any additional mods in the past couple days that would have caused this change.

Any suggestions to getting the invoices to printing the way they used to would be appreciated.

Zencart ROCKS!

bumping this up in case anyone has any clue how to get the invoices to only show 1 price column and 1 total column. Anybody???

15 Feb 2009, 7:14 PM
#11
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: Popup Print Invoice Version 1.1

I imagine you figured it out by now, but for others- I took the simple approach thanks to my limited programming skills and blanked the define names in popup_print_invoice.php, making sure to leave ''. Example-

define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');

became

define('TABLE_HEADING_PRODUCTS_MODEL', '');

Then for the values, I'll use my example where I didn't want the model number shown so I took line 141 from print_invoice.php-

<td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";

and deleted model leaving just ''

<td class="dataTableContent" valign="top">' . $order->products[$i][''] . '</td>' . "\n";

I tried blocking out whole lines with <!-- //--> but it was taking a long time with trial and error and I realized the above satisfies my simple needs.

Robbie

15 Feb 2009, 7:28 PM
#12
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: Popup Print Invoice Version 1.1

What I'm having trouble with is making the invoice show the price for any attributes, as it does on the Cart Contents page. Now it doesn't show anything, but adds the price to the Sub-Total. Hm...

R