| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Printable Packing Slip - 4.0.x | ||||
|
|
Thread Tools | Search this Thread |
#31
|
|||||||
|
|||||||
Re: Printable Packing Slip - 4.0.x
There was interest above, why don't you post the code?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#32
|
|||||||||
|
|||||||||
Re: Printable Packing Slip - 4.0.x
Hi All, I have been following this thread and I am excited that it now can work with batch and on 4.19. Could someone post the finished code and instructions. I am a little lost with all the discussion.
Thanks Bob
__________________
All-Natural Healing Skin and Pet Care Products 4.6.0 Gold, ShipWorks 3 |
|||||||||
#33
|
|||||||
|
|||||||
Re: Printable Packing Slip - 4.0.x
Pinestream that sounds great, I am very interested can you upload the code changes here as I know a couple of people were looking for this.
Thanks
__________________
Chris Barber Version 4.1.9 MOD - BCSE Shipping Estimator MOD - Shopzilla Feed MOD - Price Match with Captcha MOD - Links Manager 2008 MOD - One Page Checkout MOD - Sitemap |
|||||||
#34
|
|||||||
|
|||||||
Re: Printable Packing Slip - 4.0.x
Quote:
I have version 4.1.8 and this worked perfectly for me: (I followed much of the information from the beginning with a few modifications) TAKEN FROM ORIGINAL POST First, we need to add a new mode to order.php. To do this, we need to edit include/history_order.php: FIND THIS: Code:
REPLACE WITH THIS: Code:
FIND THIS: Code:
REPLACE WITH THIS: Code:
Next, we need to add a button to the order page of your admin area. Open skin1/main/history_order.tpl. FIND THIS: Code:
ADD THIS AFTER THE ABOVE: Code:
Next, you will need to create a new label for the packing slip button: 1) Under the "Administration" heading on the admin side, select "Languages" 2) Under the "Edit language" heading, select "English" 3) Scroll to the bottom and add a new entry with the following information: Variable: lbl_print_packing4) Click add Now we need to create the new templates we just called. In the skin1/main/ directory, create a template called order_packing_print.tpl. Put this code in it: Code:
AT THIS POINT, YOU CAN CONTINUE TO FOLLOW THE ORIGINAL POST... Next, we need to create the unique invoice template and data template. Extract the two files in the attached zip.....
__________________
Samz -------------------------------------- Heavily modified X-Cart Gold v4.1.10 |
|||||||
#35
|
|||||||
|
|||||||
Re: Printable Packing Slip - 4.0.x
I second the batch modification. Please let us know..
Thanks! Quote:
__________________
Samz -------------------------------------- Heavily modified X-Cart Gold v4.1.10 |
|||||||
#36
|
|||||||
|
|||||||
Re: Printable Packing Slip - 4.0.x
OK, I finally spent some time looking at this because it really needs to be done to make this the really worthwhile mod it is.
So got 20 mins to look at it today. First create a label called lbl_packing_for_selected and enter the text as Print packing slips for selected. Then edit the /include/process_order.php Find Quote:
and immediately below it copy and paste Quote:
Then edit /skin1/main/order_list.tpl Find Quote:
then immediately below it copy & paste Quote:
make sure this is before the {/if} If you have already installed this mod and packing slips are working then that is it, you can now batch print packing slips based on selection just like invoices. Sorry it's taken me so long to even look at this but I'm pleased that I now have it working, it will really save me time, I hope it does the same for you.
__________________
Chris Barber Version 4.1.9 MOD - BCSE Shipping Estimator MOD - Shopzilla Feed MOD - Price Match with Captcha MOD - Links Manager 2008 MOD - One Page Checkout MOD - Sitemap |
|||||||
#37
|
|||||||
|
|||||||
Re: Printable Packing Slip - 4.0.x
Can I use this in 4.1.8? with the additonal change mentioned
__________________
4.710 |
|||||||
#38
|
|||||||
|
|||||||
Re: Printable Packing Slip - 4.0.x
Post #34 covers 4.1.8
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#39
|
|||||||
|
|||||||
Re: Printable Packing Slip - 4.0.x
OK thanks. Is post 34 just mentioning changes to the original code you created, or is it all i need.
__________________
4.710 |
|||||||
#40
|
|||||||
|
|||||||
Re: Printable Packing Slip - 4.0.x
Hey Telimon,
Post 34 contains all the updated code, except for the 2 sample Order Data files in the zip-file at the end of Post 1. There's really not that many changes between the 4.0.x and 4.1.x branches in this part of the code, so if you go step-by-step, it's real easy to implement. You don't even need to create the language label as you can hard-code that in (i.e. button_title="Print Packing Slip"). This mod is a lot easier if you have experience modifying the mail/html template files and seeing how the invoice pulls up the order data. If you haven't tried altering mail templates yet, you might want to experiment to see the results and give your store a more personalized and custom look. Good luck! Robert
__________________
X-cart 4.1.10 |
|||||||
|
|||
X-Cart forums © 2001-2020
|