Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Thumbnail and Featured Products Contributions..


Mediajuggle

Recommended Posts

1. I'm trying to decide which thumbnail contribution to use and would like a few recommendations...

 

2. I'm not sure which Featured Products contribution to use. I want to have the "Featured Products" undernearth (not replace) my "New Music". Like on this site http://www.audiolunchbox.com

 

any help would be greatly appreciated...

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

1. I'm trying to decide which thumbnail contribution to use and would like a few recommendations...

 

2. I'm not sure which Featured Products contribution to use. I want to have the "Featured Products" undernearth (not replace) my "New Music". Like on this site http://www.audiolunchbox.com

 

any help would be greatly appreciated...

I haven't installed the contribtion you refer to, but most of the ways that display a new infobox using a module are the same structurally. Therefore if you follow the install instructions, it doubtless (but I haven't checked) will tell you to edit index.php, find the " include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);" and replace this with an include that display the featured products instead. Rather than replacing it, to have both, with featured prods beneath new prods, jusr before the NEW_PRODUCTS the following

          <tr>
           <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>

is a block of code that spaces out your content. Instead of replaing the include, insert your new include statement syntactically exactly as per the new product one, insert it after the new product include, then insert the spacing html between the new-product and feature products includes so that you continue to space everything out consistantly.

 

So to get what you want, you start by finding

          <tr>
           <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
         <tr>
           <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
         </tr>

replace it with

 

          <tr>
           <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
         <tr>
           <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
         </tr>
         <tr>
           <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
         <tr>
           <td><?php include(DIR_WS_MODULES . FILENAME_FEATURED_PRODUCTS); ?></td>
         </tr>

amend FILENAME_FEATURED_PRODUCTS above to be whatever the define the contribution you choose uses.. Not having done the contribution you are interested in I hope the above is pretty close and sorry for not being more precise, to do so I'd have to study or install that contribution

 

Good luck M-Pro

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...