Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 04-16-2009 15:05:21

picstart
Member
From: United Kingdom
Registered: 07-11-2006
Posts: 428

modify printable invoice to show payment method

Is it possible to modify the printable invoice to show payment method like it shows on the screen version, it only has to say what method was used, this will help speed up our order entrysoftware


"It may be my worst nightmare at present..... but soon it will be my dream"

Offline

 

#2 04-16-2009 15:14:10

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: modify printable invoice to show payment method

In the "Order Summary (Printable XHTML Invoice)" XHTML include in admin under Home > ClickCartPro (GBU) > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes the variable $order['order']['paymethod'] should be available for you to add/print where desired.  It's only going to be the identifier of the payment method not the full name of the method (which can be quite long).

Offline

 

#3 04-16-2009 16:33:36

picstart
Member
From: United Kingdom
Registered: 07-11-2006
Posts: 428

Re: modify printable invoice to show payment method

Hi Dave,
cant see any mention of the above variable in that file (uk version) tried adding it it just did not show but as i have no idea with php any chance of a little more help

Regards Picstart


"It may be my worst nightmare at present..... but soon it will be my dream"

Offline

 

#4 04-17-2009 05:44:53

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: modify printable invoice to show payment method

You wouldn't see it in there since it isn't used/printed.  You'd have to add it where ever you wanted it to be printed.  For example:

Code:

print $order['order']['paymethod'];

Offline

 

#5 04-17-2009 07:25:41

picstart
Member
From: United Kingdom
Registered: 07-11-2006
Posts: 428

Re: modify printable invoice to show payment method

Hi Dave,
tried putting      print $order['order']['paymethod'] '    in and get this error

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/sites/***********.co.uk/public_html/khxc-private/apps/gbu0/GBU/includes/ordersummaryprint.php on line 484

Last edited by picstart (04-17-2009 07:26:15)


"It may be my worst nightmare at present..... but soon it will be my dream"

Offline

 

#6 04-17-2009 07:45:18

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: modify printable invoice to show payment method

It needs a ; at the end so it's like

Code:

print $order['order']['paymethod'];

John

Last edited by dh783 (04-17-2009 09:02:02)

Offline

 

#7 04-17-2009 08:03:22

picstart
Member
From: United Kingdom
Registered: 07-11-2006
Posts: 428

Re: modify printable invoice to show payment method

all because of a  ; who would have thought it

thanks john


"It may be my worst nightmare at present..... but soon it will be my dream"

Offline

 

#8 04-17-2009 08:20:30

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: modify printable invoice to show payment method

Sorry, my fault, I made a typo in my example which I've corrected.

Offline

 

#9 04-19-2009 16:41:19

wyattea
Member
Registered: 01-07-2006
Posts: 1650

Re: modify printable invoice to show payment method

Dave, is it possible to use the 'printable invoice' script or code to make ANY page of ccp a printable page? I'd like my customers to have the option of printing a product detail page, or category page for example.

James...

Offline

 

#10 04-19-2009 16:58:04

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: modify printable invoice to show payment method

Define "printable page".  There's really no reason someone couldn't print the page they are viewing.  Other than that it would take a namespace and modification to the product and category displays to hook into the new namespace.

Offline

 

#11 04-19-2009 17:01:09

wyattea
Member
Registered: 01-07-2006
Posts: 1650

Re: modify printable invoice to show payment method

well, a printable page is a printable page, NOT just click on file/print through the browser. What's the point of a printable invoice feature that already exists, since the user can just file/print the screen when they have their invoice onscreen. Same thing.

Offline

 

Board footer