Results 1 to 10 of 75

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    134
    Plugin Contributions
    0

    Default Re: ZC Inventory Report Module

    Quote Originally Posted by bislewl View Post
    Ok, Here is a rough idea. If you don't feel comfortable you may need to hire someone.
    Using file-set for version 1.9.0
    Line 114: you will need to add p.products_image into the sql select statment

    somewhere between 200-210
    your's need to add a table header perhaps
    HTML Code:
    <td class="dataTableHeadingContent" align="center">Image Link</td>
    between 235-245 as position as above
    you will want to add something like:
    PHP Code:
    <td class="dataTableContent" align="center"><a href="<?php echo DIR_WS_IMAGES.$products->fields['products_image']; ?>" target="_blank">Link</a></td>
    I haven't verified if that works, but that should get you pretty close.
    Hi,
    I did just as suggested by you.
    Now, I am able to see a column in the report with Product image heading and LINK for all the images, but on clicking on the LINK, it shows the XXXXX.com/admin/images page for all the links

    Moreover, on downloading the ACTIVE products report, the products image column in present, but it does not show any link. it has blank values.

  2. #2
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: ZC Inventory Report Module

    Quote Originally Posted by muteyaar View Post
    Hi,
    I did just as suggested by you.
    Now, I am able to see a column in the report with Product image heading and LINK for all the images, but on clicking on the LINK, it shows the XXXXX.com/admin/images page for all the links

    Moreover, on downloading the ACTIVE products report, the products image column in present, but it does not show any link. it has blank values.
    is it pulling in the product_images? If not is the product images in the select statement?
    it should look like:
    PHP Code:
    $products_query_raw "select p.products_id, products_quantity, pd.products_name, p.products_model, p.products_price, (products_quantity * p.products_price) as total, categories_name, p.products_quantity_order_min, m.manufacturers_name, p.products_image from " TABLE_PRODUCTS " p left join " TABLE_PRODUCTS_DESCRIPTION " pd using(products_id) LEFT JOIN " TABLE_CATEGORIES_DESCRIPTION " cd ON(cd.categories_id = p.master_categories_id AND cd.language_id = '" $lang_id "') left join " TABLE_MANUFACTURERS " m using(manufacturers_id) " $db_category_where " group by p.products_id order by " $sort " " $dir
    try using this line instead
    PHP Code:
    <td class="dataTableContent" align="center"><a href="<?php echo DIR_WS_CATALOG_IMAGES.$products->fields['products_image']; ?>" target="_blank">Link</a></td>
    That should resolve the /admin issue

  3. #3
    Join Date
    Oct 2007
    Posts
    134
    Plugin Contributions
    0

    Default Re: ZC Inventory Report Module

    Quote Originally Posted by bislewl View Post
    is it pulling in the product_images? If not is the product images in the select statement?
    it should look like:
    PHP Code:
    $products_query_raw "select p.products_id, products_quantity, pd.products_name, p.products_model, p.products_price, (products_quantity * p.products_price) as total, categories_name, p.products_quantity_order_min, m.manufacturers_name, p.products_image from " TABLE_PRODUCTS " p left join " TABLE_PRODUCTS_DESCRIPTION " pd using(products_id) LEFT JOIN " TABLE_CATEGORIES_DESCRIPTION " cd ON(cd.categories_id = p.master_categories_id AND cd.language_id = '" $lang_id "') left join " TABLE_MANUFACTURERS " m using(manufacturers_id) " $db_category_where " group by p.products_id order by " $sort " " $dir
    try using this line instead
    PHP Code:
    <td class="dataTableContent" align="center"><a href="<?php echo DIR_WS_CATALOG_IMAGES.$products->fields['products_image']; ?>" target="_blank">Link</a></td>
    That should resolve the /admin issue
    Hi, thanks for the quick reply.
    I added the code given by you .
    It is now showing the links for product images in the ADMIN panel. But when I down load the ACTIVE products report, the product images column has BLANK values.. Nothing shows there.

  4. #4
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: ZC Inventory Report Module

    Quote Originally Posted by muteyaar View Post
    Hi, thanks for the quick reply.
    I added the code given by you .
    It is now showing the links for product images in the ADMIN panel. But when I down load the ACTIVE products report, the product images column has BLANK values.. Nothing shows there.
    ok, if you want it in the CSV as well try changing this around line 118
    PHP Code:
    $products[] = array(
                
    'products_id' => $current_inventory->fields['products_id'],
                
    'products_model' => $current_inventory->fields['products_model'],
                
    'products_name' => $current_inventory->fields['products_name'],
                
    'categories_name' => $current_inventory->fields['categories_name'],
                
    'manufacturers_name' => $current_inventory->fields['manufacturers_name'],
                
    'products_quantity' => $current_inventory->fields['products_quantity'],
                
    'products_quantity_order_min' => $current_inventory->fields['products_quantity_order_min'],
                
    'products_price' => $currencies->format($current_inventory->fields['products_price']),
                
    'total' => $currencies->format($current_inventory->fields['total']),
            ); 
    to:

    PHP Code:
    $products[] = array(
                
    'products_id' => $current_inventory->fields['products_id'],
                
    'products_model' => $current_inventory->fields['products_model'],
                
    'products_name' => $current_inventory->fields['products_name'],
                
    'products_image' => DIR_WS_CATALOG_IMAGES.$current_inventory->fields['products_image'],
                
    'categories_name' => $current_inventory->fields['categories_name'],
                
    'manufacturers_name' => $current_inventory->fields['manufacturers_name'],
                
    'products_quantity' => $current_inventory->fields['products_quantity'],
                
    'products_quantity_order_min' => $current_inventory->fields['products_quantity_order_min'],
                
    'products_price' => $currencies->format($current_inventory->fields['products_price']),
                
    'total' => $currencies->format($current_inventory->fields['total']),
            ); 

  5. #5
    Join Date
    Oct 2007
    Posts
    134
    Plugin Contributions
    0

    Default Re: ZC Inventory Report Module

    Quote Originally Posted by bislewl View Post
    ok, if you want it in the CSV as well try changing this around line 118
    PHP Code:
    $products[] = array(
                
    'products_id' => $current_inventory->fields['products_id'],
                
    'products_model' => $current_inventory->fields['products_model'],
                
    'products_name' => $current_inventory->fields['products_name'],
                
    'categories_name' => $current_inventory->fields['categories_name'],
                
    'manufacturers_name' => $current_inventory->fields['manufacturers_name'],
                
    'products_quantity' => $current_inventory->fields['products_quantity'],
                
    'products_quantity_order_min' => $current_inventory->fields['products_quantity_order_min'],
                
    'products_price' => $currencies->format($current_inventory->fields['products_price']),
                
    'total' => $currencies->format($current_inventory->fields['total']),
            ); 
    to:

    PHP Code:
    $products[] = array(
                
    'products_id' => $current_inventory->fields['products_id'],
                
    'products_model' => $current_inventory->fields['products_model'],
                
    'products_name' => $current_inventory->fields['products_name'],
                
    'products_image' => DIR_WS_CATALOG_IMAGES.$current_inventory->fields['products_image'],
                
    'categories_name' => $current_inventory->fields['categories_name'],
                
    'manufacturers_name' => $current_inventory->fields['manufacturers_name'],
                
    'products_quantity' => $current_inventory->fields['products_quantity'],
                
    'products_quantity_order_min' => $current_inventory->fields['products_quantity_order_min'],
                
    'products_price' => $currencies->format($current_inventory->fields['products_price']),
                
    'total' => $currencies->format($current_inventory->fields['total']),
            ); 
    It is now showing only one URL in all the fields on the products images column in the CSV file
    http://XXXXXX.com/images

    it is still not showing proper URLs of each products

  6. #6
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: ZC Inventory Report Module

    Quote Originally Posted by muteyaar View Post
    It is now showing only one URL in all the fields on the products images column in the CSV file
    http://XXXXXX.com/images

    it is still not showing proper URLs of each products
    I should be showing the complete url, as long as the product has an image.
    Is your spreadsheet software hiding the rest? It's the only thing I can think of right now

  7. #7
    Join Date
    Oct 2007
    Posts
    134
    Plugin Contributions
    0

    Default Re: ZC Inventory Report Module

    Quote Originally Posted by bislewl View Post
    I should be showing the complete url, as long as the product has an image.
    Is your spreadsheet software hiding the rest? It's the only thing I can think of right now
    Here are the screenshots of what I am getting:

    admin panel: http://i140.photobucket.com/albums/r...nvrepadmin.png

    CSV file: http://i140.photobucket.com/albums/r.../activerep.png

    The links are fine in admin panel, but the URLs are incomplete in the CSV file.

 

 

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

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