Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Basic design question


lester

Recommended Posts

Does anyone know how designers give each graphic its own individual box and box design in the "New products for (month)" area?

 

Anyone know which sections of which page files are involved?

 

 

Cheers

Link to comment
Share on other sites

Curently, in the default 2.2-MS2 install, the "New products for (month)" on the main index page just contains nine images with a simple line of text underneath.

 

Some people manage to modify the contents of "New products for (month) " so that each image is in its own box with its own heading - a bit like the info boxes in the left or right hand column.

 

They are then able to give the new boxes in the "New products for (month)...a graphic as a header as well as a background.

 

What I am trying to find out is what needs to be modified.

 

Hope the above is clearer :)

Link to comment
Share on other sites

The HTML for it is found in /catalog/includes/modules/new_products.php. You should be able to make changes, define classes, etc. from there.

 

HTH,

 

Terry

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Link to comment
Share on other sites

The HTML is included here:

 

  $row = 0;
 $col = 0;
 $info_box_contents = array();
 while ($new_products = tep_db_fetch_array($new_products_query)) {
   $new_products['products_name'] = tep_get_products_name($new_products['products_id']);
   $info_box_contents[$row][$col] = array('align' => 'center',
                                          'params' => 'class="smallText" width="33%" valign="top"',
                                          'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])));

 

If you view source for the new products section on your index.php file, you should see how the above is incorporated into the HTML.

 

HTH,

 

Terry

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...