If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / trying to add manufacturer description to dynamic generated page.

trying to add manufacturer description to dynamic generated page.

Started by drgr33n on 25 Jul 2015, 10:35 AM · Views: 554

Results 1 to 4 of 4
25 Jul 2015, 10:35 AM
#1
drgr33n avatar

drgr33n

New Zenner

Join Date:
Oct 2010
Posts:
84
Plugin Contributions:
0

Post #1 by drgr33n

Hey I'm trying to add manufacturer descriptions to my store but can't find where main_page=index&manufacturers_id= is being generated from. Is it using the sidebox code or is it buried in the product_display code ? Maybe in modules like in product_listing.php ? Can't find a reference anywhere :blush:

25 Jul 2015, 11:13 AM
#2
drgr33n avatar

drgr33n

New Zenner

Join Date:
Oct 2010
Posts:
84
Plugin Contributions:
0

Post #2 by drgr33n

Just to elaborate I could use a clause in tpl_index_product_list.php to test if your viewing manufacturer sorted product and pull the description; but the issues with that is I don't have a clue what to test against because I don't understand the internals of zen cart too well. I suppose I could use $breadcrumb->last() and compare with manufacturers in the database ? But seems very clumsy must be a cleaner way. If anyone could point me in the right direction that would be great !! :D

25 Jul 2015, 11:30 AM
#4
drgr33n avatar

drgr33n

New Zenner

Join Date:
Oct 2010
Posts:
84
Plugin Contributions:
0

Post #4 by drgr33n

Spot on !! Exactally what I needed :D

if(isset($_GET['manufacturers_id']))
{
   echo "I'm in manufacturers!"	
}

Cheers Stevesh