Contributions
Quantity availability image and text Unlimited
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
Expand All / Collapse All
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.
This is the release version of quantity image unlimited.
The code has been freshed up a litle and typos have been corrected.
Install instructions have been updated and simplified, hopefully to the better.
The icons have been placed in a seperate directory
Full Updated version, included patch from hazwo
Special thanks to hazwo.
the product listing only showed number instead of pictures this patch will solve the problem.
cu,
hazwo
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
Note: Contributions are used at own risk.