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

Modifying the Admin Packing Slip

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 05-25-2016, 08:35 AM
 
BrandonLR BrandonLR is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 161
 

Default Re: Modifying the Admin Packing Slip

Quote:
Originally Posted by razortw
Sorry for the radio silence.
Replace the following templates with attached, and you will be fine.
1. /skins/admin/en/order/packing_slip/parts/head/head.title.tpl
2. skins/admin/en/order/packing_slip/parts/body/items.tpl
After that re-deploy your store cache.
Of course, I recommend to wrap these changes into a module, so that they remain intact during upgrades.

I don't know why but I didn't get a notification of your response here, so...sorry about that.

I'm going to give these a try right now and will let you know how it turns out.

Here's my problem with making these changes a module.
I don't entirely understand HOW this module system works and how to make sure these changes are being pointed to where they need to be going.
__________________
X-Cart Business 5.4.1.29
Reply With Quote
  #12  
Old 05-25-2016, 08:44 AM
 
BrandonLR BrandonLR is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 161
 

Default Re: Modifying the Admin Packing Slip

Quote:
Originally Posted by razortw
Sorry for the radio silence.
Replace the following templates with attached, and you will be fine.
1. /skins/admin/en/order/packing_slip/parts/head/head.title.tpl
2. skins/admin/en/order/packing_slip/parts/body/items.tpl
After that re-deploy your store cache.
Of course, I recommend to wrap these changes into a module, so that they remain intact during upgrades.

Worked like a charm! Perfect-o!
__________________
X-Cart Business 5.4.1.29
Reply With Quote
  #13  
Old 05-26-2016, 02:36 PM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Modifying the Admin Packing Slip

Quote:
Originally Posted by BrandonLR
I don't know why but I didn't get a notification of your response here, so...sorry about that.

I'm going to give these a try right now and will let you know how it turns out.

Here's my problem with making these changes a module.
I don't entirely understand HOW this module system works and how to make sure these changes are being pointed to where they need to be going.
Thank you for you reply.
I am glad I could help.
We have few articles in our knowledge base that describe the basics of working with X-Cart modules, please have a look.
* http://kb.x-cart.com/display/XDD/Step+1+-+creating+simplest+module
* http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes
* http://kb.x-cart.com/display/XDD/Developer+docs
If you are familiar with PHP, creating such module should not turn into a big problem.
Let me know if you have any questions.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #14  
Old 08-30-2016, 11:04 AM
 
BrandonLR BrandonLR is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 161
 

Default Re: Modifying the Admin Packing Slip

Quote:
Originally Posted by razortw
Thank you for you reply.
I am glad I could help.
We have few articles in our knowledge base that describe the basics of working with X-Cart modules, please have a look.
* http://kb.x-cart.com/display/XDD/Step+1+-+creating+simplest+module
* http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes
* http://kb.x-cart.com/display/XDD/Developer+docs
If you are familiar with PHP, creating such module should not turn into a big problem.
Let me know if you have any questions.

So for some reason, the totals that are appearing on the packing slip are rounded.
For example, if any order total is $240.33 - the packing slip will say $240.3295

Same kind of rounding happens for the shipping on the packing slip as well.
__________________
X-Cart Business 5.4.1.29
Reply With Quote
  #15  
Old 08-30-2016, 11:46 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Modifying the Admin Packing Slip

In the templates, try to wrap all sums into the "formatPrice(....,order.getCurrency())" modifier.

For example, replace this:
Code:
<strong>{surcharge.name}:</strong> ${surcharge.cost}
with this:
Code:
<strong>{surcharge.name}:</strong> ${formatPrice(surcharge.cost,order.getCurrency())}
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



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:39 PM.

   

 
X-Cart forums © 2001-2020