Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 72
  1. #61
    Join Date
    Jan 2016
    Location
    Perth, Western Australia
    Posts
    3
    Plugin Contributions
    0

    Default Re: ZC Inventory Report Module

    Hi lat9,

    Thanks for taking an interest, and I will download and start using myDebug backtrace plugin.

    the code preceding, and including line 73 is as follows:
    Code:
    $where_array = array();
    if ($cat != '') {
        $where_array[] = " master_categories_id = '".$cat."' ";
    }
    if ($status != ''){
        $where_array[] = " products_status = '".$status."' ";
    }
    if ($mfg != ''){
        $where_array[] = " manufacturers_id = '".$mfg."' ";
    }
    if(count($where_array) > 0){
        $db_category_where = " WHERE ".explode(" AND ", $where_array);
    }
    else{
        $db_category_where = '';
    }
    Line 73 is

    Code:
        $db_category_where = " WHERE ".explode(" AND ", $where_array);
    near the bottom.

    I can see a reference to manufacturer above, which is what led me to try adding a manufacturer to one of my products, to see if it made a difference.

    Appreciate your input / thoughts.

    Tim
    TDK APDC

  2. #62
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,475
    Plugin Contributions
    88

    Default Re: ZC Inventory Report Module

    Oh, I see now, it's a coding issue in the original script (I've got no idea how it ever ran properly). The 'and' clauses are being built up into an array and then want to be stringified for use in the SQL query.

    The correct PHP function to use is implode, like this:
    Code:
    $db_category_where = " WHERE ".implode(" AND ", $where_array);

  3. #63
    Join Date
    Jan 2016
    Location
    Perth, Western Australia
    Posts
    3
    Plugin Contributions
    0

    Default Re: ZC Inventory Report Module

    Nice work,

    Hit the nail right on the head, and is now working perfectly.

    Thank you very much for your assistance.

    It has made a useful tool in to an extremely useful tool for me.

    Much appreciated.

    Tim Bowden
    TDK APDC

  4. #64
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,475
    Plugin Contributions
    88

    Default Re: ZC Inventory Report Module

    Tim, thanks for the follow-up; I'm glad to have helped.

    ... and ... welcome to the Zen Cart community!

  5. #65
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: ZC Inventory Report Module

    2020 Update - Inventory Report drops right into Zen Cart 1.55f and 1.56c if anyone needs it :)

    It has also been integrated into the Twitch Base6 public release.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  6. #66
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    91
    Plugin Contributions
    0

    Default Re: ZC Inventory Report Module

    Hello,
    the plugin is exactly what I need.
    Is it possible to display only active products?
    I have over a thousand of inactive products which I keep for backup only. I don't want them been counted.

  7. #67
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Idea or Suggestion Twitch Inventory Report Advanced

    Submitted to plugins...

    Twitch Inventory Report Advanced

    22a for Zen Cart 1.57c
    May 11.2022

    Added Twitch Admin Product Thumbnails (TAP Thumb) to Inventory Report Module v1.9.2 with Twitch Base7 image control switches all working together. This printable inventory report can be used to quickly check images, print visual inventory audit lists and more.

    Inventory report tested on Zen Cart 1.57c to display or hide images with the newest TAP Thumb image checker - works if you do not have Twitch TAP Thumb installed.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  8. #68
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,683
    Plugin Contributions
    123

    Default Re: Twitch Inventory Report Advanced

    Twitch, could I get you to resubmit your plugin as a brand new plugin? I just realized you've changed the filenames and a bunch of other things, and it would make more sense to have a separate download and support thread for your mod.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #69
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Twitch Inventory Report Advanced

    Quote Originally Posted by swguy View Post
    Twitch, could I get you to resubmit your plugin as a brand new plugin? I just realized you've changed the filenames and a bunch of other things, and it would make more sense to have a separate download and support thread for your mod.

    There is no need to continue branching good modules, this is an improvement on the old module just like any other. The added features can all be turned on/off - as you could easily upgrade and choose to use them or not.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  10. #70
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,683
    Plugin Contributions
    123

    Default Re: Twitch Inventory Report Advanced

    It's not "just an improvement" if you rebrand it completely, which you have done.
    You have also changed filenames, (again, to reflect your own branding), which makes it different from a simple bug fix update.

    Please resubmit as new so I can submit required fixes to the old module.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 
Page 7 of 8 FirstFirst ... 5678 LastLast

Similar Threads

  1. v154 SBA Inventory Report
    By catsma_97504 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 6 May 2016, 04:16 PM
  2. Inventory Report
    By damonp in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 31 Jan 2011, 10:51 PM
  3. Store inventory report?
    By RocketFoot in forum General Questions
    Replies: 4
    Last Post: 14 May 2009, 01:15 PM
  4. Inventory Order Report
    By j1l2i3p4k5i6n7g8 in forum General Questions
    Replies: 4
    Last Post: 5 Jan 2008, 05:55 PM
  5. Inventory Report with Attributes
    By brad512 in forum General Questions
    Replies: 6
    Last Post: 31 Dec 2006, 09:38 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR