Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2013
    Posts
    6
    Plugin Contributions
    0

    Default Display Model on Main Page

    I am trying to find information on how to add my products model number or product id to the grid list on the main page labeled new products for September its got the product name and the price but I need it to display the item number as well.

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Display Model on Main Page

    Quote Originally Posted by thebottomshelf View Post
    grid list on the main page labeled new products for September
    Are you referring to the New Products center box?

    If so, the stock code does not allow for the model number or products id to be echo;d. It would require custom coding.

  3. #3
    Join Date
    Sep 2013
    Posts
    6
    Plugin Contributions
    0

    Default Re: Display Model on Main Page

    Quote Originally Posted by rbarbour View Post
    Are you referring to the New Products center box?

    If so, the stock code does not allow for the model number or products id to be echo;d. It would require custom coding.
    thats what I am talking about but I know nothing of coding is it something difficult I mean the code is already there in the product information for a specific item is there a line of code that can be copied and pasted? or maybe some sort of add-on to make this possible.

  4. #4
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Display Model on Main Page

    Quote Originally Posted by thebottomshelf View Post
    thats what I am talking about but I know nothing of coding is it something difficult I mean the code is already there in the product information for a specific item is there a line of code that can be copied and pasted? or maybe some sort of add-on to make this possible.
    Not allot of code required to accomplish this.

    1.) copy /includes/modules/new_products.php
    2.) to /includes/modules/YOUR_TEMPLATE_FOLDER/new_products.php

    3.) around line 23 & 40 (my file)

    find
    $new_products_query = "select distinct p.products_id,

    add after p.products_id, p.products_model,

    4.) around line 73 (my file)

    find
    $products_price);

    5.) to add products id

    add
    $products_price . '<br />' . $new_products->fields['products_id']);

    6.) to add products model

    add $products_price . '<br />' . $new_products->fields['products_model']);

    7.) to add both products_id and products_model

    add
    $products_price . '<br />' . $new_products->fields['products_id'] . '<br />' . $new_products->fields['products_model'] );

    Hope this helps!

  5. #5
    Join Date
    Sep 2013
    Posts
    6
    Plugin Contributions
    0

    Default Re: Display Model on Main Page

    That worked thank you very much

  6. #6
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Display Model on Main Page

    Quote Originally Posted by thebottomshelf View Post
    That worked thank you very much
    np, glad I could help!

 

 

Similar Threads

  1. Display Model Number on Category Page
    By briandoakes in forum Templates, Stylesheets, Page Layout
    Replies: 41
    Last Post: 6 Jul 2012, 05:40 PM
  2. How can I make Product Model display in the main Product Information page?
    By ttmb33 in forum Customization from the Admin
    Replies: 1
    Last Post: 6 Dec 2009, 10:29 AM
  3. display model number on side box and main page
    By nishajh in forum General Questions
    Replies: 0
    Last Post: 17 Jun 2009, 06:27 AM
  4. Display model under product image on info page
    By Kjohn in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 15 Sep 2008, 12:53 AM
  5. how do i display model on front page?(feature, special)
    By weber in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Jul 2008, 06:39 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