Contributions

InfoBoxes (Category Index)
Search: 

all_specials v1.0

This contribution is for osCommerce2.2-MS2 but also might be working with older MS and CVS versions (also tested on MS1).
It creates an InfoBox with all of the active specials in it. The items are listed w/o images.

A working example can be seen here (in the close future ;) ): www.livecarts.com

Expand All / Collapse All

Specials on Catalog page 8 Nov 2008

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:
<td><?php include(DIR_WS_MODULES . 'all_specials.php'); ?></td>

(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 :)

all_ specials v2.1 with pictures Pipo 18 Aug 2004
all_specials v2.0 (with pictures) Mathias Neef 17 Aug 2004
all_specials v1.01 Kornel Hartung 3 Nov 2003
all_specials v1.0 Kornel Hartung 2 Nov 2003

Note: Contributions are used at own risk.