Contributions
All Manufacturers
All Manufacturers Contribution v.1 for osCommerce 2.2
by Alex Kaiser - alex@pooliestudios.com
This page produces a list of all manufacturers with logos in all languages, I thought this might be cool for search engines.
You can find a working demo here: http://demo.pooliestudios.com/allmanufacturers.php
A link to The Manufacturer will look like this: http://yourshop.com/index.php?manufacturers_id=XXX=ManufacturersName
Expand All / Collapse All
This contribution adds a CSS-based layout option to the all-manufacturers contribution. You can choose to control the number of columns to show (or let the program simply fill the space available), the width of each column and the alignment (CSS text-align values) for each column. Only 2 edits to install.
COMPLETE PACK
Include a complete pack with:
- Fix for Session ID problem, by shooter-boy.
- Fix by rkscscc
add new in this version:
- Fix, need an ' in spanish allmanufaturers.php file
- Added name of store to the heading title of the all manufacturers page.
- H1 heading title in all manufacturers page, for a better SEO Optimization.
- Added screenshot
- Added install instructions in spanish
--------------- Info in spanish ---------------
PACK COMPLETO
Incluido pack completo con:
- Correción del problema con ID de sesiones, por shooter-boy.
- Correción por rkscscc
agregado nuevo en esta versión:
- Correción de un ' que faltaba en el archivo de idioma espańol allmanufaturers.php.
- Agregado el nombre de la tienda en el titulo de cabecera de la pagina.
- Modificado el titulo de cabecera de la pagina por una cabecera H1, más optimizado para buscadores.
- Agregado imagen de ejemplo.
- Agregado instrucciones de instalacion en espańol.
This is a replacement allmanufacturers.php only!
Structures were created like this:
http://www.rkscomputersolutions.com/onlineshop/product_info.php?manufacturers_id=20=Sapphire
Where the standard structure is:
http://www.rkscomputersolutions.com/onlineshop/product_info.php?manufacturers_id=20
Just replace the file and you're all set!
(Error found when SEO installed and url's didn't port to SEO url's...)
This is just a simple fix to ensure that your session isn't lost if cookies aren't enabled...
I couldn't remember if i had previously modified the file, so i am just listing the change.
Find this line around 104:
[CODE]
echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id'] . '=' . $manufacturers['manufacturers_name'], 'NONSSL', false) . '">'. $manufacturers['manufacturers_name'] . ' <br> ';
[/CODE]
and change to
[CODE]
echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id'] . '=' . $manufacturers['manufacturers_name'], 'NONSSL') . '">'. $manufacturers['manufacturers_name'] . ' <br> ';
[/CODE]
That's it! We don't want our customers losing their cart contents now do we...
Rob
Same as below I just corrected a small typeO that took me about an hour to find :rolleyes:
Full Package
The line
'<a href="' . tep_href_link(FILENAME_ALLMANUFACTURERS, '', 'NONSSL') . '">' . BOX_INFORMATION_ALLMANUFACTURERS . '</a><br>' .
Should be
'<a href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '">' . BOX_INFORMATION_ALLMANUFACTURERS . '</a><br>' .
1) This is a full corrected package with manufacturers shown in columns.
2) Added Spanish language
3) Possibility to add into the manufacturers box or with a normal link elsewhere.
Regards from spain, visit spanish oscommerce forums... a great community!
http://oscommerce.qadram.com/modules.php?name=Forums
Good bye... saludos a todos.
mmm... no empty files, just a repost. Please post the entire package with fixes for people to download. Not everyone is just updating.
now u can setup in the beggining of the file if you wanna show in columns or lisintg
it s not full package , just allmanufacturers.php
sorry but it seeems the previous code is wrong it should be this (notice the n ! ath the end):
<!-- all manufacturers begin //-->
<?php
$row = 0;
$manufacturers_query = tep_db_query("select manufacturers_name, manufacturers_id, manufacturers_image from " . TABLE_MANUFACTURERS . " order by manufacturers_name" );
while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
$row++;
echo '<td align="center" valign="top" width="25%" class="smallText">';
echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id'] . '=' . $manufacturers['manufacturers_name'], 'NONSSL', false) . '">'. $manufacturers['manufacturers_name'] . ' <br> ';
if ($manufacturers['manufacturers_image']) {
echo tep_image(DIR_WS_IMAGES . $manufacturers['manufacturers_image'], $manufacturers['manufacturers_name']);
}
echo "</a><br><br>n";
echo '</td>';
if ((($row / 4) == floor($row / 4))) {
?>
<tr>
<?php
}
}
?>
<!-- all manufacturers end //-->
no file to download.. i just placed all manufacturers on a table with 4 columns. this is from bruyndoncx's post http://forums.oscommerce.com/index.php?showtopic=158185&st=0&p=647431&#
thank you guys!
<table border="0" width="80%" align="center">
<tr>
<!-- all manufacturers begin //-->
<?php
$row = 0;
$manufacturers_query = tep_db_query("select manufacturers_name, manufacturers_id, manufacturers_image from " . TABLE_MANUFACTURERS . " order by manufacturers_name" );
while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
$row++;
echo '<td align="center" valign="top" width="25%" class="smallText">';
echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id'] . '=' . $manufacturers['manufacturers_name'], 'NONSSL', false) . '">'. $manufacturers['manufacturers_name'] . ' <br> ';
if ($manufacturers['manufacturers_image']) {
echo tep_image(DIR_WS_IMAGES . $manufacturers['manufacturers_image'], $manufacturers['manufacturers_name']);
}
echo "</a><br><br>n";
echo '</td>';
if ((($row / 4) == floor($row / 4))) {
?>
<tr>
<?php
}
}
?>
<!-- all manufacturers end //-->
</table>
dreamweaver amde a fool out ot myself, sorry :|
the opening td is missing right in line 68 before the <center>, version from misterbling
another thing to do on this file is for seo only: in line 77, delete the '=' . $manufacturers['manufacturers_name']) if you are using search engine optimized urls, it produces duplicate content with the name attached. sure it's a point having the name in the url, but a <h1> is more constructive in this field. but seo is another field ;)
attached file is empty
i compared with the previous version and i saw this kind of code :
href="<?php echo (($request_type == 'file:///C|/DOKUME%7E1/docc/LOKALE%7E1/Temp/Rar$DI00.375/SSL')
that should be :
href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
the file included is empty
there was a missing opening td
Sorry about my description. This version is to make sure that a customer does not lose their session Id when clicking on manufacturers. So products if any will stay in their shopping cart.
Thanks goes to CHEMO
This file will replace the /catalog/allmanufacturers.php
This great contribution kills a SID's
Thanks goes to CHEMO
This file will replace the /catalog/allmanufacturers.php
This great contribution kills a SID's
This file will replace the /catalog/allmanufacturers.php
This just adds a link to 'More', similar to the links to 'products_new.php', 'shopping_cart.php', 'reviews.php'. This way you can keep the <select> menu too.
Find this line (or similar) in: /catalog/includes/boxes/manufacturers.php
new infoBoxHeading($info_box_contents, false, false);
And replace it with:
new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_MANUFACTURERS));
Cheers!
* Requires prior installation of contribution.
Please see readme.txt file for explanation. This is just a modified version that I made up from the latest version below me.
Since there was no assistance file to this contribution, I decided to write one.
I edited allmanufacturers.php going by that now not only the name of the producer, but the signature $manufacturer. "- products indicate" are shown.
That is more meaningful according to my opinion.
Additionally I added line 79, whereby now using redirect.php the manufacturer homepage links and is indicated under the Logo.
A further file with same name was added in the German directory.
Thus different, necessary parameters are defined.
With this guidance the side in the information box is linked.
A functioning version can be viewed at http://shop.elektro dunzinger.at/allmanufacturers.php.
This Contribution was tested with osC 2.2MS2 and should be used only with this.
The use of this modification is at your own risk.
Thanks to steve for the translation.
This contrib was alligning to the right for some reason so i decided to find out why. Turns out there was a blank row being made on the left hand side with trans pixels. Turned off the blank pixel row, and took out what seemed to be an extra <td> tag just before the code starts.
I also have infobox and language mods for this if anyone needs them.
Fixed to have name with picture included , overwrite catalog/allmanufactorers.php
There was a bug in the old file, correct by me. Please visit my page at http://www.100asa.it/allmanufacturers.php
I have edited the manufacturers.php file so you can now have a single link to all manufacturers instead of a drop down list to view all manufacturers.
All credit for the allmanufacturers.php file goes to Alex Kaiser who developed this script and Roman Gruhn who edited the main script.
I have just added to this.
I edited the great Contrib by Alx. Now the Logos are shown in columns, which might be more beautiful if you have many Logos and don't want the page 1 mile long ;-)
For Support please see the Foums
I don't give any warrenty, but in my Shop it worked perfectly fine.
Oryginalna wersja z dodanym językiem polskim i instrukcją instalacji modyfikacji, także w języku polskim.
Demo: http://galeriart.prov.pl/allmanufacturers.php
Pomoc:
http://galeriart.prov.pl/oscommerce/viewtopic.php?p=9#9
All Manufacturers Contribution v.1 for osCommerce 2.2
by Alex Kaiser - alex@pooliestudios.com
This page produces a list of all manufacturers with logos in all languages, I thought this might be cool for search engines.
You can find a working demo here: http://demo.pooliestudios.com/allmanufacturers.php
A link to The Manufacturer will look like this: http://yourshop.com/index.php?manufacturers_id=XXX=ManufacturersName
Note: Contributions are used at own risk.