#1 (permalink)  
Old 09-28-2008, 08:46 AM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default Modifying Invoice

HI,

When you check the view invoice in the admin area, I need to add the URL Address and the sites / Listing Title to the invoice so it is easier to identfy.

Any idea how I can add that to the theme / invoice.html?

Code:
Content visible to License Owner only.
But I want to add the following;

Title:
URL:

I tried this but didn't work!

Code:
Content visible to License Owner only.
Any idea what is the correct code please?

Cheers
Mitchell
Reply With Quote
  #2 (permalink)  
Old 09-28-2008, 12:40 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

title and url are not avaialble variables, you would have to add them to invoice.php
Reply With Quote
  #3 (permalink)  
Old 09-28-2008, 10:53 PM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

Code:
Content visible to License Owner only.
Is it just simply done by adding;
<%$title%> or <%$url%> to the invoice.html file or there is more to it? I did try that and didn't work, I also added some code to the invoice.php file as well but no luck.
Reply With Quote
  #4 (permalink)  
Old 09-28-2008, 11:07 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

Using <%$title%> or <%$url%> on invoice.html is called the variable, but on the invoice.php there has to be a function that makes them available.

I've never tried to modify invoice.php as I've never had the need to do it. From the code in invoice.php it looks like it's pulling all the data from idx_invoice and idx_invoice_config. You would have to modify the script a bit so you could merge idx_link and pull the url and title
Reply With Quote
  #5 (permalink)  
Old 09-29-2008, 02:32 AM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

May I suggest to add that to the standard version of Indexu?

In the invoice there is a field which says Description, I do not think that is necessary as a description could be a page or two long and it doesn’t look good in the invoice, but The Listing name and URL address is very useful for every one so they can identify the owner of the invoice easily.

One individual can have more than one listing, so just having their name there wouldn't be enough and link ID is not some thing that every one can remember but the listing TITLE and URL will be very easy for identifying the listing.
Reply With Quote
  #6 (permalink)  
Old 09-29-2008, 03:30 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

I can sure mention it. Not sure why it wouldn't be there, perhaps I'll find out when I ask about it.
Reply With Quote
  #7 (permalink)  
Old 10-06-2008, 02:39 AM
dody's Avatar
Nicecoder Team
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,292
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

We're working on it today. Please wait.
Reply With Quote
  #8 (permalink)  
Old 10-06-2008, 04:06 AM
nakos's Avatar
Nicecoder Team
 
Join Date: Aug 2008
Posts: 20
nakos is on a distinguished road
Default

your request has been updated, you can check it on svn (885).
Reply With Quote
  #9 (permalink)  
Old 10-06-2008, 08:01 AM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

Code:
Content visible to License Owner only.
Hi,

Now it shows the "Title:" and "URL:" but not the actual title and URL;
Have a look here please;

http://www.directoryonly.com.au/invoice.php?id=35875
Reply With Quote
  #10 (permalink)  
Old 10-06-2008, 12:35 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

I'll leave this one with Dody and make sure he takes a look when he's online tonight.
Reply With Quote
  #11 (permalink)  
Old 10-07-2008, 12:46 AM
nakos's Avatar
Nicecoder Team
 
Join Date: Aug 2008
Posts: 20
nakos is on a distinguished road
Default

hello mitchell,

you have to create the new one, because the old data un include the link_id.

note: we have commited the invoice update at svn (887)
Reply With Quote
  #12 (permalink)  
Old 10-07-2008, 03:20 AM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

Code:
Content visible to License Owner only.
Hi Nakos,
thank you, I have updated it to the new one and added a new listing but still the same!!
I tired it on two different sites, hosted in two different countries.
http://www.weddingsonly.com.au/invoice.php?id=89442
http://www.directoryonly.com.au/invoice.php?id=58571
Do I have to change the database as well?
Cheers
Mitchell

Last edited by Mitchell; 10-07-2008 at 03:30 AM.
Reply With Quote
  #13 (permalink)  
Old 10-07-2008, 04:03 AM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

Another issue,
After adding these fields (SVN887) now when I create a new invoice, I receive an email that there is a new invoice but it is not in the admin's unpaid or overdue invoices and the amount, issue date and due dates are not there either;
Here it s sample
http://www.weddingsonly.com.au/invoice.php?id=80458
Reply With Quote
  #14 (permalink)  
Old 10-07-2008, 12:09 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

Nakos will answer definitavely, but I would guess that there are database changes to be made.
Reply With Quote
  #15 (permalink)  
Old 10-09-2008, 06:01 PM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

any update on this yet?
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying Codes Mitchell INDEXU DELUXE v1.x 3 05-03-2008 10:03 AM
Modifying Mod-rewrite azul Blocks and Modification 5 01-21-2008 05:06 AM
Modifying <%link%> color tyersin v5.x 2 08-20-2005 05:03 PM
How do i solve the problem of modifying Templates ? older v5.x 1 09-22-2003 01:14 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 06:18 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate