Contributions
Product Listing Enhancements, Thumbnails & Manufacturer Headings
Product Listing Enhancements, Thumbnails & Manufacturer Headings V1.txt
This contribution is a much changed version of Product Thumbnail Listing that I started only a short while ago, but as thumbnails is now only one part I felt it should be a new contribution.
I was requested to make a contribution to Group Product Listing By Manufacturer with a manufacturer short description. This does exactly that based around the original product listing, so the old admin controls apply along with some new ones.
The thumbnails part displays products with thumbnail images in a grid layout, you define how many boxes per line plus image & box sizes. It shows the product image in a box with product name, price, short description (if you have that) & buy now or details button. This also supports Additional Images (http://addons.oscommerce.com/info/1032) If you have this it will select the medium size image if it exists.
The customer can switch between thumbnails & manufacturer if you set default to either. If you change default you must select a new category to reset your display.
During writing I cam accross some bugs in the core code details & fixes are at the bottom of the installation notes.
Extra setting are added to admin:
Additionally existing settings controling the display of Product Name & Price Are Honored.
The database query used is unchanged from the original, so order you set in admin etc will apply as before.
The style of the display is controlled by a new entry in your css, you can set there if you wish a background image, colours, borders etc.
Page views are included in the package so you can see the result.
Short Description Contrib is at http://addons.oscommerce.com/info/3123
Written on osC2.2 rc1 with PHP5 and has been tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
Installation is fairly easy.
Forum thread started at : http://forums.oscommerce.com/index.php?showtopic=307010
Expand All / Collapse All
Added Support for SaleMaker (http://addons.oscommerce.com/info/1340) See usage for how to enable.
Added option to show a checkbox field in place of other quantity boxes.
Fixed query bug in specials.php module.
Modified Manufacturers Description query to avoid possible issues.
Added Grid mode heading (not sure how many will want it though?)
Added admin setting for max product age.
Added Add-On Pages package provided by Ronnie (ronrrico) Thanks for the effort.
Package adds Best Sellers, Featured products, Coming Soon and Bundled products pages.
Changed files: product_listing.php, products_new.php, new_products.php, specials.php.
css entries: classes .productListing-title
New files: SQL query for max product age setting addition.
There is currently on-going development of this contribution, so some controls that currently require changes within the code will ultimately be ported to admin controls.
UPGRADING
Upload any changed & new files & apply SQL upgrade file if needed, edit your style sheet..
If you wish the admin date setting, there is a seperate file for that.
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Added rounded borders to thumbnails, see notes for use and requirements.
Added the option of showing the products average review rating within the listing.
Completed re-write of the installation doc!!.
Fixed bug in products_new.php file.
Fixed query bug in new_products.php module.
Modified thumbnail button positioning.
Modified specials.php file to always use product listing module, so create more consistant look to site.
Added new css entry for product name field.
Changed files: product_listing.php, products_new.php, new_products.php, specials.php, english.php.
css entries: classes .infoBoxProducts & SPAN.list_info:hover span & .productListing-name (new) & changed image tooltip css.
New files: page-header-inc.htc & DD_roundies.js.
UPGRADING
Upload any changed & new files & apply SQL upgrade file if needed, edit your style sheet..
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Complete re-write of the doc!!.
Added price to global title option.
Modified new_products.php module to always use product listing module, so create more consistant look to site.
Modified products_new.php file to always use product listing module, so create more consistant look to site.
Added option to position mode switch.
Fixed quantity box bug.
Moved many in file settings to admin settings.
Created SQL un-install file.
Removed product_listing_setup.php file (too much hastle to update) you must make all SQL changes manually with phpMyAdmin now, sorry.
Changed files: product_listing.php, new_products.php, products_new.php, SQL files.
UPGRADING
Upload the changed files & apply SQL upgrade file.
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Added option to show a truncated product description (in the form of a cut down main description) within the listing under the product name. You can set the length of the description in admin. You must apply the included extra sql file to use this
There is currently on-going development of this contribution, so some controls that currently require changes within the code will ultimately be ported to admin controls.
Changed files: product_listing.php, new css entry, sql file.
UPGRADING
Upload the changed files.
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Added option to set the size of the last column in block mode, ie u can have as many fields in the right hand column as you wish, see settings for use.
There is currently on-going development of this contribution, so some controls that currently require changes within the code will ultimately be ported to admin controls.
Changed files: product_listing.php.
UPGRADING
Upload the changed files.
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Fixed issue with details/buy now buttons
Added quantity drop down option, see settings for use.
There is currently on-going development of this contribution, so some controls that currently require changes within the code will ultimately be ported to admin controls.
Changed files: product_listing.php, CSS
UPGRADING
Upload the changed files. Edit altered ones.
Add new entries to your style sheet
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Added option for multi-add to cart (with attributes support) has some provisos, so read the notes in settings.
Adjusted modes for 'Details Button'.
Added further css styling for form elements.
Moved some new text into language files (Not guaranteeing I've not missed any!!)
Added hover info box
There is currently on-going development of this contribution, so some controls that currently require changes within the code will ultimately be ported to admin controls.
Changed files: product_listing.php, application_top.php, language files, new buttons, CSS
UPGRADING
Upload the changed files. Edit altered ones.
Add new entries to your style sheet
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Added incremental buttons to quantity box (images in buttons dir) if you wish these (& any others) to have a hover effect, add http://addons.oscommerce.com/info/7126
Added product heading title, gives each listing entry its own product TITLE header (list modes only) see settings for use.
Added option to remove column width settings in list modes, see settings for use.
Improved the code efficiency.
There is currently on-going development of this contribution, so some controls that currently require changes within the code will
ultimately be ported to admin controls.
Changed files: product_listing.php, CSS, new button images.
UPGRADING
Upload the changed files.
Add new entries to your style sheet
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Added support for products extra fields (http://addons.oscommerce.com/info/2202), see settings for use.
Added an css image tooltip, if enabled when the mouse is hovered over a pic a larger version will show, see settings for use.
Changed files: product_listing.php, index.php,advanced_search_result.php, CSS
UPGRADING
Upload the changed files.
Edit index.php & advanced_search_result.php
Add new entries to your style sheet
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Added a separator between products in list modes, simply use the new class TD.separator to enable/use.
Fixed a minor image bug in one of the list modes.
Modified the list block mode, the image is still on the left (if enabled) the center column will contain all remaining fields bar the last that will appear in the right column, the field order is that set in admin. IE if you want the price in the right column give it the highest value in admin/product listing.
Added class for listing price, (.productListing-list-price)
Changed files: product_listing.php, CSS
UPGRADING
Upload the changed file.
Add new entries to your style sheet
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Added the option of a quantity box within the listing (controled in admin)
Added the option of a attribute drop downs within the listing (controled in admin)
Added a Product Listing Image Height setting in admin (Recommend this is left empty)
Modified the setup routine to allow for other languages (Though all added items are in english still, sorry)
Changed files: product_listing.php, application_top.php, product_listing_setup.php
UPGRADING
There are some edits to application_top.php required.
Upload the changed files.
Run the new product_listing_setup.php
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Corrected some syntax errors in products_new.php
Made a couple of additions to product_listing.php & new_products.php, if the products price or products stock are zero the buy now button is removed, a details button will be shown if thats set in admin (ie set for buy now & details).
Changed files: product_listing.php, products_new.php, new_products.php
UPGRADING
Just replace all the changed files
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Made the contrib multilingual
Change to thumbnail display, if the bottom row size is less than number products per row, it will be spaced seperately so spacing is even across the display & different to full rows. This feature is not used for grid display.
Added some bug fixes related to SEO URL's (for application_top.php)
Changed files: product_listing.php, css entries, addition to includes/classes/boxes.php, includes/languages/english/index.php and includes/languages/english/advanced_search.php
UPGRADING
If your upgading from any previous version, run the new setup file it will make any required changes (NOT REQUIRED from 1.7 to 1.8), replace all the changed files and add the new/changed css entries and modifications to includes/classes/boxes.php, includes/languages/english/index.php and includes/languages/english/advanced_search.php.
Additional instructions appear at the end of the install instructions.
There are some bug fixes you must do if you use SEO URL's
tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Modified thumbnail to improve layout with varying amount of content, added 2 new settings to admin to achieve this, setting vertical space for image & name / description.
Slimmed some of the code to keep file size small.
Added sort option for products_new page.
Some have asked for category path in the product url, added an option on line 14 of product_listing.php change setting to 'true' if you want this
Minor bug fix, added manufacturer_id to products_new query so manufacturer link in that listing will work.
This update adds some new css for the thumbnail display.
Changed files: product_listing.php, new_products.php, products_new.php, product_listing_setup.php css entries.
New Settings:
Product Listing Image Vertical Space (default 100) Image Vertical Space in thumbnail, set to the height of largest product image.
Product Listing Name Vertical Space (default 25) Name Vertical Space in thumbnail, sets vertical space for name & short description (if used).
This has been tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
Full Package
V1.6
Added pull down for sort order
Added pull down for max results per page, values based on multiples of the 'Search Results' value in admin. For simplicity the 'Show All' just puts a figure of 1000000.
Changed files: product_listing.php plus modifications to index.php & manufacturers.php. See installation for details.
Tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a.
FULL PACKAGE
V1.5b
Minor Update, Added Category Name/Manufacturer Name to headings in thumbnail/list modes
Changed files: product_listing.php
FULL PACKAGE
Fixed bug: In list modes, sort headings not active on page 1.
Removed some test script that got left in.
Changed files: product_listing.php
Forgot to mention the new_product files have a max age funtion added (see text file)
FULL PACKAGE
Removed debug code, if you have trouble use code from 1.4 to test.
Moved thumbnail function back into main block as a very few had a problem with it.
Added missing line to thumbnail for special prices.
Added modified new_products.php module with thumbnail option (only shows image, name & price).
Added modified products_new.php with thumbnail option (shows image, name, manufacturer & price) items shown & order as set in admin.
Changed files: product_listing.php, new_products.php, products_new.php
Tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Modified some of the code to make it more efficient (so smaller) so the code layout is somewhat modified.
Added block display mode in list/manufacturer listings, similar to the 'new products' display, except you can choose whats shown & what order (Standard 'Product Listing' settings apply).
Added a grid display option to the thumbnails display.
Added extra picture test for 'Additional Images'.
Changed files: product_listing.php, product_listing_setup.php css entries.
UPGRADING
If your upgading from any previous version, run the new setup file, it will make any required changes.
There are some additional css entries with this install too.
Additional instructions appear at the end of the install instructions.
Extra setting added to admin:
Product Listing Style (default thumbnail ) Use Thumbnail view, Manufacturer Listing or old List View. Also select 'Block' or 'Grid' mode.
Tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a
FULL PACKAGE
Modified Thumbnails routine, now it will obey the set order, so you can set the position order (vertically) of everything in the thumbnail (buy now buttons always below though)
Added manufacturer name, quantity & weight options to the thumbnail.
Added admin option disable user style switch.
Added additional css for button positioning.
Added missing query for 'Additional Images'.
Changed files: product_listing.php, product_listing_setup.php css entries.
UPGRADING
If your upgading from any previous version, run the new setup file, it will make any required changes.
There are some additional css entries with this install too.
Additional instructions appear at the end of the install instructions.
Extra setting added to admin:
Product Listing Style Switch (default true) Provide the user the option to switch listing style.
Has been tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
FULL PACKAGE
Fixed minor bug, if there are no products to display thumbnail view borders were messed up.
FULL PACKAGE
Added option of buy now & details button together on thumbnails page.
Added model option to thumbnails page..
Added extra image test for 'Additional Images'.
Added standard style-able boxes, so you can set the style of the image boxes and the containing box.
Incorporated 'easy graphic borders', so if you've installed that, it will use the set style. (http://addons.oscommerce.com/info/1702).
Fixed the split page results for all displays.
Added missing install instruction (in index.php).
UPGRADING
If your upgading from any previous version, run the new setup file, it will make any required changes.
There are some additional css files with this install too.
Additional instructions appear at the end of the install instructions.
Tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
Forum thread at : http://forums.oscommerce.com/index.php?showtopic=307010
Product Listing Enhancements, Thumbnails & Manufacturer Headings V1.1
Some have reported first upload (V1) corrupted!
V1.1 Modified code if manufacture list is selected, but no manufacturers exist for category, the display will revert to standard listing rather than show blank display.
Some poeple have had setup errors, so I`ve added a debug option, if you have any trouble, find at the start of product_listing.php
$debug = 'no'; change this to $debug = 'yes'; then report the alert message in the forum.
Tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
Forum thread at : http://forums.oscommerce.com/index.php?showtopic=307010
FULL PACKAGE
Product Listing Enhancements, Thumbnails & Manufacturer Headings V1.txt
This contribution is a much changed version of Product Thumbnail Listing that I started only a short while ago, but as thumbnails is now only one part I felt it should be a new contribution.
I was requested to make a contribution to Group Product Listing By Manufacturer with a manufacturer short description. This does exactly that based around the original product listing, so the old admin controls apply along with some new ones.
The thumbnails part displays products with thumbnail images in a grid layout, you define how many boxes per line plus image & box sizes. It shows the product image in a box with product name, price, short description (if you have that) & buy now or details button. This also supports Additional Images (http://addons.oscommerce.com/info/1032) If you have this it will select the medium size image if it exists.
The customer can switch between thumbnails & manufacturer if you set default to either. If you change default you must select a new category to reset your display.
During writing I cam accross some bugs in the core code details & fixes are at the bottom of the installation notes.
Extra setting are added to admin:
Additionally existing settings controling the display of Product Name & Price Are Honored.
The database query used is unchanged from the original, so order you set in admin etc will apply as before.
The style of the display is controlled by a new entry in your css, you can set there if you wish a background image, colours, borders etc.
Page views are included in the package so you can see the result.
Short Description Contrib is at http://addons.oscommerce.com/info/3123
Written on osC2.2 rc1 with PHP5 and has been tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals compatible.
Installation is fairly easy.
Forum thread started at : http://forums.oscommerce.com/index.php?showtopic=307010
Note: Contributions are used at own risk.