Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Adding Copy of shipping address to packing slip at bottom

 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 12-27-2019, 11:48 PM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,506
 

Default Adding Copy of shipping address to packing slip at bottom

Hi,

When we are packing up multipole orders, we have nothing to put on the outside of the package to know which one is which.

I have some paper with integrated labels that I would like to use for packing slips, duplicating the shipping address to where the label area is at the bottom of the page.

I have tried to find the right template to edit with no luck.

The visual editor isn't available for this, and looking in the skins/admin/order/packing_slip/ doesn't seem to give me a layout template other than the items table.

Which file do I need to edit to copy the shipping address section to another area?

Thanks,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #2  
Old 01-05-2020, 09:29 PM
 
Triple A Racing Triple A Racing is offline
 

X-Adept
  
Join Date: Jul 2008
Location: Manchester UK
Posts: 832
 

Default Re: Adding Copy of shipping address to packing slip at bottom

Quote:
Originally Posted by amy2203
... duplicating the shipping address to where the label area is at the bottom of the page.... ~ ... and looking in the skins/admin/order/packing_slip/ doesn't seem to give me a layout template other than the items table...
Not 100% sure we've understood your post correctly, but regardless, the suggestions below are assuming that you are using XC 5.4.* now.

There is a standard, default 'Packing Slip" (which you can customise - as we have done) It is generated using the "Print Packing Slip" icon on the top right hand side of each order's detail page. In theory there is a way to trace the templates used in XC 5.4.* admin via this free module: https://market.x-cart.com/addons/webmaster-kit.html but... it can be hit 'n miss sometimes. You can't use the Customs Skins module: https://market.x-cart.com/addons/custom-skin.html that's mentioned though, as that doesn't work in XC 5.4.*. You would normally need to provide your own custom module to add customisation and/or make changes in all XC admin.php areas. FWIW Customisation and/or making changes in all XC service.php areas is still pretty much, locked down in XC 5.4.* but that shouldn't affect you in this case anyway, fortunately.

Then again, maybe, you only want to extract the shipping address details from each order and then print those details onto your own custom labels instead?

If this is your choice, then both the /skins/admin/order/packing_slip/parts/addresses/purchaser.address.shipping.twig file and the /skins/common/order/invoice/parts/bottom.address.shipping.twig file source each individual order's shipping address details, but they both only do this by using {% for idx, field in this.getAddressSectionData(this.saddress) %} so sourcing these twig file on their own, won't be enough in this case, to just extract just the shipping address details. If it really is just extracting specific order's shipping address details, then in that case, it might be much easer and much less work, to use the output of a purpose written MySQL query, which is then exported each time and the results printed directly on to your labels?
__________________
Live & Dev Stores: XC Business 5.4.0.9
Ubuntu 18.04.3 LTS (HWE 5.3.0-46.38 Kernel) / Plesk Obsidian
Nginx 1.16.1 / Apache 2.4.29 (Ubuntu Backported) / MariaDB 10.3.22 / PHP 7.3.16
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:03 PM.

   

 
X-Cart forums © 2001-2020