Community Add-Ons

Add file to this package
Top » Credit Modules

Quantity availability image and text Unlimited
for osCommerce Online Merchant v2.2

I wanted to show our costumers on a easy way what the stock of a product is, or the availability if not on stock.
It will show a image and text what the producktstock or availability is.

This contribution will show in productlisting and (if you want) on product_info page a quantity-image and text, indicating the product availabilty (or if you want) the exact stock.
You can use your own images or translate text whathever you like: (End of Life, SOLD OUT, Few days, 1 a 3 days, week, call for a price, mail for a price, 1 on stock, 2 on stock, few on stock, Expect soon (new)
whathever you want ect.ect...) Just look at the included printscreen to see what I mean.

ATTENTION: TWO INSTALLATION INCLUDED A BASIC AND A EXTENDED (RECOMMENDED) INSTALL VERSION.

Installation is easy 5 a 10 minutes, just two files to edit and add translated text to every languagefiles you have, english, german, dutch included already. (So Multi Language is supported)

catalog/included/functions/general.php
catalog/product_info.php

catalog/included/languages/dutch catalog/included/languages/english
catalog/included/languages/german

catalog/images/ <all.images.gif>

Included:
Screenshots of the produktlisting and productinfo page so you can see how it look likes.
All changed files in there original OsCommerce folder
Manual for installation in case you have already have some contrib. or whatever installed.
quantity images (also some extra images and a photoshop.psd included)
Multi Language supported and included for english, german, dutch.




For Questions or remarks on Oscommerce forum: http://forums.oscommerce.com/index.php?showtopic=115143

Legend:  Download   Report
Expand All / Collapse All
correction to installation instructions ATeschner 16 Feb 2006  

There are a couple of places in the instructions that are not properly commented due to the hybrid coding.

I added php tags around the start and end comments in these snippets:
--------- snip -----------

// #################### START Qauntity images and text unlimited #############

<table border="2" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#B90101" width="182" id="AutoNumber1">
<tr>
<td width="180" bgcolor="#FBF8F8">
<p align="center"><font color="#FBF8F8">
</font><font face="Arial" size="2"><?php echo TEXT_STOCKINFO; ?><br><?php echo $lc_text = '' . picto_qty($product_info['products_quantity']) . ''; ?></font></td>
</tr>
</table>
// #################### END Qauntity images and text unlimited #############

------- snip -------

<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>
// #################### START Qauntity images and text unlimited #############
<td class="main" align="center"><?php echo TEXT_STOCKINFO; ?><br><?php echo $lc_text = '' . picto_qty($product_info['products_quantity']) . ''; ?></font></td></p>
// #################### END Qauntity images and text unlimited #############
<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

------- snip -------

I have uploaded a corrected install text file. Please download the previous item for the rest of the package.

quantity image unlimited v1.0 (Release) Trygve Lillefosse Alias Malawi 6 Dec 2004  
quantity_image_unlimited_beta_v0_7 John Mocnik Alias John2B 20 Oct 2004  
Patch in Product Listing Hazwo 19 Oct 2004  
Quantity availability image and text Unlimited John Mocnik 6 Oct 2004