Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Search
Search


Forum Index » Templates

Post new topic   Reply to topic
Xsl code for payment type
View previous topic :: View next topic  
Author Message
webtree



Joined: 13 Aug 2005
Posts: 12

PostPosted: Wed Nov 09, 2005 9:49 am    Post subject: Xsl code for payment type Reply with quote

We need to have the payment type printed out on our invoice templete could you give us the code to do this

Thanks sooo much :)

Sue :D
Back to top
View user's profile
Brian
ShipWorks Staff


Joined: 30 Jul 2004
Posts: 3608

PostPosted: Wed Nov 09, 2005 7:18 pm    Post subject: Reply with quote

Are you wanting to just display like "Credit Card" vs. "Check".
What cart are you using, and what version of ShipWorks?

Thanks,
Brian
Back to top
View user's profile
webtree



Joined: 13 Aug 2005
Posts: 12

PostPosted: Wed Nov 09, 2005 7:21 pm    Post subject: code to display payment type Reply with quote

Hi,

All we need to know is if they paid by check, paypal, or credit card it does not have to say what type of credit card.

Thanks,

Sue
Back to top
View user's profile
Brian
ShipWorks Staff


Joined: 30 Jul 2004
Posts: 3608

PostPosted: Wed Nov 09, 2005 7:24 pm    Post subject: Reply with quote

The code for that does depend on the cart you are using and if you are using ShipWorks 2.1 or higher.

Thanks,
Brian
Back to top
View user's profile
webtree



Joined: 13 Aug 2005
Posts: 12

PostPosted: Wed Nov 09, 2005 7:26 pm    Post subject: code for payment type Reply with quote

we have the newest version of shipworks, and use yahoo
to process our orders


thanks,
Sue
Back to top
View user's profile
Brian
ShipWorks Staff


Joined: 30 Jul 2004
Posts: 3608

PostPosted: Wed Nov 09, 2005 7:33 pm    Post subject: Reply with quote

Depending on what template you are using, and where you will be adding the code, it will be something like:

Code:
<xsl:value-of select="Payment/Detail[Label='XYZ']/Value" />


And XYZ is the name of the payment detail you want to display. To determine this name, look in the Payments panel for the name that the payment type is displayed as.

Thanks,
Brian
Back to top
View user's profile
webtree



Joined: 13 Aug 2005
Posts: 12

PostPosted: Wed Nov 09, 2005 7:36 pm    Post subject: Code Reply with quote

Great,

Thanks
Back to top
View user's profile
webrabb



Joined: 05 Oct 2004
Posts: 20

PostPosted: Wed Feb 22, 2006 8:05 am    Post subject: Reply with quote

And the same code for MIVA?

Cool
Back to top
View user's profile Visit poster's website
Brian
ShipWorks Staff


Joined: 30 Jul 2004
Posts: 3608

PostPosted: Wed Feb 22, 2006 7:27 pm    Post subject: Reply with quote

Yes, should be. Whatever the label is in the Payment Details panel would be what you put as your XYZ.

Brian
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic     Forum Index » Templates All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  

Powered by phpBB © 2001, 2002 phpBB Group