Contributions
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
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 :)
Mathias Neef 's package does not contain the right all_specials.php file, codes for pictures are missing.
Now it's ok
I have added the pictures to the listed products .
This is a simple bug fix. The box is not shown if there are no active specials, or there are no specials at all.
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
Note: Contributions are used at own risk.