Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Display Model on Main Page

Display Model on Main Page

Views: 978

Results 1 to 6 of 6
12 Sep 2013, 7:29 PM
#1
thebottomshelf avatar

thebottomshelf

New Zenner

Join Date:
Sep 2013
Posts:
6
Plugin Contributions:
0

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.

12 Sep 2013, 8:50 PM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Display Model on Main Page

thebottomshelf:

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.

13 Sep 2013, 2:08 AM
#3
thebottomshelf avatar

thebottomshelf

New Zenner

Join Date:
Sep 2013
Posts:
6
Plugin Contributions:
0

Re: Display Model on Main Page

rbarbour:

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.

13 Sep 2013, 12:11 PM
#4
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Display Model on Main Page

thebottomshelf:

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!

19 Sep 2013, 8:01 PM
#5
thebottomshelf avatar

thebottomshelf

New Zenner

Join Date:
Sep 2013
Posts:
6
Plugin Contributions:
0

Re: Display Model on Main Page

That worked thank you very much

19 Sep 2013, 10:02 PM
#6
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Display Model on Main Page

thebottomshelf:

That worked thank you very much

np, glad I could help!