Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding new product picture/description to homepage


kaos

Recommended Posts

Posted

I need help. I added a new product to my clients store and it shows in the "categories" on my right side but I can't figure out how to added to the homepage for the store like the other products. Anyone have any idea where I can locate this page? It was a customer template done but I have searched for days and can't find the page or location to just add the page. View the site at www.monkeedo.com to see what I'm talking about. I added "hats" and it is seen under the categories but not th larger area in the middle.

Posted

The categories on the main page are hard coded in so you will need to do the same for the new category. Although the ones there now aren't coded correctly, as they aren't using the tep_href_link() function. Your new link should look something like this:

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=6') . '">' . tep_image(DIR_WS_IMAGES . 'new_cat_image.jpg', 'New Cat Alt Text') . '</a>'; ?>

 

The new cPath=6 so once you have that done, you should fix the other links that are there now.

Posted

Thanks for the quick response. Yeah, whoever coded this website originally made a mess of it all. My problem is I can't find where they hardcoded the stuff to save my life. Its good to know though that even the coding they did was wrong and it isn't just me, possibly, having a hardtime finding this thing. What a mess!

Posted

Look in index.php. This is the first of the cat links:

 

	<td><a href="index.php?cPath=1"><img src="images/minita.gif" alt="Women" width="100" height="100" border="1" align="absmiddle" title="Women"></a></td>
<td>
  <p class="infoBoxContents"><font size="4"><strong><font color="#905021">Women</font></strong></font><font size="2"><br>

	100% preshrunk heavyweight cotton, 6.1oz., seamless 
	collar, tapered neck and shoulders, double-needle throughout.</font></p></td>

 

It should be using tep_href_link() and tep_image() as I posted above.

Posted

Yeah it looks like its there but it really isn't. The must be some includes somewhere for it. Thanks for you help though. As soon as I find it I will take you advice!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...