This modified all_specials file behaves similarily to the new_products.php file seen on the catalog page by default. Specials are displayed in 3 columns.
Additionally, this contribution includes a 'buy now' button functionality below each special product. You need to create the button yourself and place it in /images/buttons/ folder named as 'button_buy_now.gif'.
I cleaned up the code a little to make it easier for developers to css-style this contrib just like in the example below:
a.productThumb img {
border-style:solid;
border-color: #000000 #666666 #666666 #000000;
border-width:1px;
padding:6px;
background:#222222;
margin:2px;
}
a.productThumb img:hover {
background:#444444;
}
Package contents:
--------------------------------------------------
specials.php (modified to look the same way)
all_specials.php
Installation:
--------------------------------------------------
copy:
/includes/specials.php
/includes/modules/all_specials.php
modify:
index.php, line 313 to look like:
(the nicer way would be to insert a new constant in filenames.php and use it instead)
This is my first contribution ever so I hope it helps :)
More...





LinkBack URL
About LinkBacks









Bookmarks