Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Adding Model Number to Reports

    I am trying to figure out how to add the Product Model number to the stats_products_viewed.php and stats_products_purchased.php files.
    Thanks, Colleen
    www.af-company.com
    To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Adding Model Number to Reports

    Not sure at what stage the trouble is being had, but in $products_query_raw, after the select statement if you added:
    Code:
    p.products_model,
    then the products model field would be available for use/display in the field area(s) below that.

    Stats_products_purchased already displays the products_model information so, what is it that is to be done further with it? (default install of ZC 1.5.4 anyways)

    Also there is the admin function:

    zen_get_products_model($products_id);

    which will look up the products_model information when provided the $products_id.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Feb 2007
    Location
    Ontario, Canada
    Posts
    234
    Plugin Contributions
    0

    Default Re: Adding Model Number to Reports

    Quote Originally Posted by mc12345678 View Post
    Not sure at what stage the trouble is being had, but in $products_query_raw, after the select statement if you added:
    Code:
    p.products_model,
    then the products model field would be available for use/display in the field area(s) below that.

    Stats_products_purchased already displays the products_model information so, what is it that is to be done further with it? (default install of ZC 1.5.4 anyways)

    Also there is the admin function:

    zen_get_products_model($products_id);

    which will look up the products_model information when provided the $products_id.
    Thanks for the (very quick) help. That made my life a lot easier. The trouble is that I only know enough PHP to make me dangerous. As for the Products purchased, I have an unaltered install and there is no model number on it. The ID's mean nothing to us since we use our internal model numbers.

    Name:  Products Purchased.jpg
Views: 71
Size:  164.2 KB
    Thanks, Colleen
    www.af-company.com
    To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Adding Model Number to Reports

    Well I did look a little further as well, and didn't realize that on the products_purchased page the model only appears when a filter is applied... Guess that could be modified to always apply as an alternative. I had already exceeded the timeout and figured the discussion would lend itself to address the remainder. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. How do I get the Model Number on the same line as Model??
    By MandyMac in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Jul 2014, 04:27 AM
  2. v139f How to add "Model" infront of my model number above my product pictures?
    By missymissy in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 15 Apr 2014, 06:44 AM
  3. Changing 'Model number' to 'Part Number'
    By bottyz in forum General Questions
    Replies: 1
    Last Post: 24 Mar 2010, 03:53 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