clarityclark Posted April 2, 2010 Share Posted April 2, 2010 Hello, We're helping a client setup an OsCommerce store using a template. The client has next to no budget and although we are very proficient with IT support and technologies, unfortunately we have no PHP experience and basic HTML (mainly using a program like Dreamweaver and not going into the code itself). Despite this the store build is going well so far but we've hit a snag... The client wants us to modify index.php (homepage) and remove the feature "What's New" (which as you know auto-populates a table with the last 6 added products) and replace that whole area with 6 pictures (with some text underneath) that link to the 6 subcategories. So instead of the main page just showing some banners and What's New products, it has the main categories represented visually. Can you guys recommend how we would go about this? We have Dreamweaver and we can play around with PHP, but we're babes in the woods! Just looking for some direction on where to start... Thank you for your time, Anthony Link to comment Share on other sites More sharing options...
knifeman Posted April 2, 2010 Share Posted April 2, 2010 Here is some code from my index.php I included some b4 and after my code so you could see where to place it. <td class="main"><?php echo TEXT_MAIN; ?></td> </tr> <tr> <td align="middle"> <?php echo '<a href="' . tep_href_link('/stinky-pranks-c-21.html') . '">' . tep_image(DIR_WS_IMAGES . 'stinky_pranks.gif', 'Stinky Pranks') . '</a>'; ?> <?php echo '<a href="' . tep_href_link('/shocking-pranks-c-3.html') . '">' . tep_image(DIR_WS_IMAGES . 'shocking_pranks.gif', 'Shocking Pranks') . '</a>'; ?> <?php echo '<a href="' . tep_href_link('/food-candy-pranks-c-22.html') . '">' . tep_image(DIR_WS_IMAGES . 'candy_pranks.gif', 'Food and Candy Pranks') . '</a>'; ?> <?php echo tep_draw_separator('pixel_trans.gif', '25'); ?> <?php echo '<a href="' . tep_href_link('/exploding-pranks-c-23.html') . '">' . tep_image(DIR_WS_IMAGES . 'exploding_pranks.gif', 'Cheap Exploding Pranks') . '</a>'; ?> </td> </tr> <tr> <td><?php include(DIR_WS_MODULES . FILENAME_FEATURED); ?></td> </tr> Tim Link to comment Share on other sites More sharing options...
♥bruyndoncx Posted April 3, 2010 Share Posted April 3, 2010 I believe there even is a contribution for this http://addons.oscommerce.com/info/1654 you might need to tweak it to display in your template though KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.