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

Module change invoice field

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-19-2016, 05:48 AM
 
rafaelcpalmeida rafaelcpalmeida is offline
 

Member
  
Join Date: Feb 2016
Posts: 12
 

Default Module change invoice field

Hello,

I'm developing an offline payment module and I want to change the invoice. Is there a way to do this programatically?
__________________
X-Cart 5.2.13
Reply With Quote
  #2  
Old 02-19-2016, 07:59 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Module change invoice field

Rafael,
Can you expound on what you mean? Yes your module can affect the invoice, you can add templates or classes to the lists that are used to make up the invoice.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
rafaelcpalmeida (02-19-2016)
  #3  
Old 02-19-2016, 08:16 AM
 
rafaelcpalmeida rafaelcpalmeida is offline
 

Member
  
Join Date: Feb 2016
Posts: 12
 

Default Re: Module change invoice field

Mike,

Thanks for your quick reply!

I want to add a field in my invoice, if the payment module I'm developing is selected, that shows you the reference to pay. It's an offline payment system in Portugal, similar to wire transfer as I need to show the final costumer some details.

Can you please tell me how I can do this?
__________________
X-Cart 5.2.13
Reply With Quote
  #4  
Old 02-19-2016, 09:13 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Module change invoice field

Hello!

I believe you should add a new template with the text and inject it into the invoice by using the @ListChild tag.

Where do you want the reference to be inserted?
__________________
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

The following user thanks qualiteam for this useful post:
rafaelcpalmeida (03-01-2016)
  #5  
Old 03-01-2016, 12:59 AM
 
rafaelcpalmeida rafaelcpalmeida is offline
 

Member
  
Join Date: Feb 2016
Posts: 12
 

Default Re: Module change invoice field

Hello all,

I would like to add the custom text just before the invoice footer.
I'll look further onto @LastChild
__________________
X-Cart 5.2.13
Reply With Quote
  #6  
Old 03-01-2016, 06:24 AM
 
rafaelcpalmeida rafaelcpalmeida is offline
 

Member
  
Join Date: Feb 2016
Posts: 12
 

Default Re: Module change invoice field

I've successfully appended the fields I wanted to the invoices
But now how can I override checkout to create an offline payment reference?
__________________
X-Cart 5.2.13
Reply With Quote
  #7  
Old 03-09-2016, 05:10 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Module change invoice field

Quote:
Originally Posted by rafaelcpalmeida
But now how can I override checkout to create an offline payment reference?

I think it makes sense to discuss this in the other forum thread that you created on this topic:
https://forum.x-cart.com/showthread.php?t=73681
__________________
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 12:05 PM.

   

 
X-Cart forums © 2001-2020