Results 1 to 10 of 84

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    604
    Plugin Contributions
    0

    Default Re: All Invoices Report

    Hi There,

    I installed the All Invoices Report Module.

    It partially loads but I get an error:

    SOLD TO:
    Customer
    1 test street
    testville, 6000
    Western Australia, Australia


    [email protected]
    SHIP TO:
    Customer
    1 test street
    testville, 6000
    Western Australia, Australia



    Invoice No. 23
    Date Ordered: Tuesday 06 April, 2010
    Payment Method: PayPal


    THEN ERROR part below:

    Qty Model Products Price Total
    1 x my Product
    Fatal error: Call to undefined function dmc_ProductName() in H:\wamp\www\zencart\myadminfoldername\includes\templates\tpl_all_invoices.php on line 181

    Any ideas?

    LINE 181 from the tpl_all_invoices.php

    echo ' <td class="dataTableContent" valign="top" align="left">' . dmc_ProductName($order->products[$i]['name']);
    Last edited by Muzz; 7 Apr 2010 at 06:44 AM.
    That wasn't the plan!

  2. #2
    Join Date
    Mar 2006
    Location
    Wolverhampton, UK
    Posts
    31
    Plugin Contributions
    0

    Default Re: All Invoices Report

    Yes, my error ... I didn't notice the custom function in there that is being called (dmc_productname). I'll get that updated for you and upload a revised version.

    Thanks
    Mat

  3. #3
    Join Date
    Mar 2006
    Location
    Wolverhampton, UK
    Posts
    31
    Plugin Contributions
    0

    Default Re: All Invoices Report

    I'm just working on another project, so to save you waiting. In the file:

    /admin/includes/templates/tpl_all_invoices.php
    You will find the following around line 181:

    echo ' <td class="dataTableContent" valign="top" align="left">' . dmc_ProductName($order->products[$i]['name']);
    Edit this line to read as follows:

    echo ' <td class="dataTableContent" valign="top" align="left">' . $order->products[$i]['name'];
    This will resolve the issue for you. I'll get the download file updated later on with this.

    Thanks for pointing it out, and my apologies for not checking it.

    Thanks
    Mat
    Last edited by fozzyo; 7 Apr 2010 at 03:19 PM. Reason: Some formatting

  4. #4
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    604
    Plugin Contributions
    0

    Default Re: All Invoices Report

    Thanks Fozzyo.

    That did that fixed the issue :)

    Did a print preview and all invoices load to print separately also which is great.

    One suggestion if possible.

    I have the standard 4 order status.

    1 of my status is empty.

    If I select this status it loads with a blank white page.

    Though I understand that I have no invoices in that area.. perhaps an if statement that checks to see if there are invoices or not in the selected status and if value equals 0 to then have some text stating the status selected has no invoices to list ??

    By the way great MOD. Very happy with it. WD.
    That wasn't the plan!

  5. #5
    Join Date
    Mar 2006
    Location
    Wolverhampton, UK
    Posts
    31
    Plugin Contributions
    0

    Default Re: All Invoices Report

    Thanks! I've just updated the download file to v1.1 which resolves the issue you raised. Good idea, I'll include that - only a simple addition that improves some usability.

    Thanks
    Mat

 

 

Similar Threads

  1. v152 Support Thread: Report All Errors (Even Warnings)
    By lat9 in forum Addon Admin Tools
    Replies: 34
    Last Post: 1 Feb 2020, 05:42 PM
  2. v154 Editable Invoices & Packing Slips [Support]
    By dbltoe in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Oct 2015, 11:44 PM
  3. Replies: 1
    Last Post: 27 Jan 2012, 06:35 PM
  4. Admin Activity Report [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 6 Aug 2009, 12:47 PM
  5. printing all invoices
    By simplesat in forum General Questions
    Replies: 1
    Last Post: 28 Nov 2008, 04:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg