View Single Post
  #1  
Old 04-09-2016, 06:01 PM
  christindall's Avatar 
christindall christindall is offline
 

eXpert
  
Join Date: Dec 2007
Location: Everett, WA
Posts: 264
 

Angry Printable Drop Ship Form, Pull Lists

So. I'm running 4.7.2 and I have this working, and for the life of me I can't get it to work in 4.7.5.

I need to have the ability to print a drop ship form (that I send in to my drop ship vendors) as well as a Pull List that I use to then go pull my items from my warehouse.

In the past, I've used Balinor's old code (https://forum.x-cart.com/showthread.php?t=60671).

Essentially, you edit include/history-order.php to add a couple of lines:
Quote:
First, open up include/history-order.php. Find this code around line 56:

Code:
if (
in_array(
$mode,
array(
'invoice',
'label',
'history',
)
)

Replace with:

Code:
if (
in_array(
$mode,
array(
'invoice',
'label',
'history',
'packing',
)
)

Next, find this code around line 143:

Code:
} elseif ($mode == 'label') {

func_display('main/order_labels_print.tpl',$smarty);

replace with:

Code:

} elseif ($mode == 'label') {

func_display('main/order_labels_print.tpl',$smarty);

} elseif ($mode == 'packing') {

func_display('main/order_invoice_packing.tpl',$smarty);

Then you create a new file and upload it to the appropriate locations.

Since that didn't work, I tried taking the existing files (stock 4.7.5 files) and made a copy that I then renamed:
skin/common_files/mail/html/order_data_packing.tpl -> order_data_dropship.tpl
skin/common_files/mail/html/order_invoice_packing.tpl -> order_invoice_dropship.tpl
skin/common_files/main/order_invoice_packing.tpl -> order_invoice_dropship.tpl


Basically, I replicated all the filenames, but using the files that I know work in the 4.7.5 branch.

When I then click on the buttons that should launch that new dropship file, it goes to a blank page - in reality, it should just load the exact same thing as when I click on the invoice.

So, for some reason, it's not loading the new files / pages / forms / whatever even though I KNOW they work because it's existing files with no changes.

Is there somewhere else I need to be editing now (that I didn't in 4.7.2???) in order to do this?

I hope all that makes sense - I've been banging my brains against the wall...
__________________
Chris Tindall
x-cart 4.7.5 Gold Plus
www.theweedpatchstore.com
AlteredCart: On-Sale, One Page Checkout, Checkout One Payments (although that's not working yet)
BCSE: Back in stock Notify, Checkbox Radio Mod, Upselling Links
SMACK: CDSEO Pro, Product Map
X-Cart: Gold+, Mobile
(still trying to get working: Gahela Support Suite)
Reply With Quote