Jump to content
Sign in to follow this  
spooks

Product Listing Enhancements, Thumbnails & Manufacturer Headings

Recommended Posts

Hi,

 

How do I add the "manufacturer image" to my listings - just like they have here on this very nice site: www.hemvaruhuset.se/

 

Also the stars with "save 25%" is very nice

 

Hope someone can help me a little.

 

Have a nice weekend :-)

 

Best regards,

Jesper

Share this post


Link to post
Share on other sites

Just alter the code that displays the manufacturer name to one that displays the manufacturer image.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
Ok I still can not control the image width. the link is posted above.

 

thanks

 

Has someone solved this problem? I have got the some problem, all images are verrrrry width....

 

Thanks!

Share this post


Link to post
Share on other sites

Please give a link to your site so I can see any code errors.

 

720Time did not provide a valid link & an image of the page is of no use at all.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
Hi

Lovely contribution and just what OSC needs. I've got a problem which I just can't figure out. I installed the contribution and all went well. The original images all show correctly, however when I add my own products then the image doesn't show? I think the easiest thing would be to show you. I have a test site set up here and as you can see the enhancement works fine with the pre installed products:

http://six22.biz/osc/index.php?cPath=1_4

 

but if you look here, this is a test product i've added:

http://six22.biz/osc/index.php?cPath=1_17

 

There should be an image but it's not showing up? I'd appreciate any suggestions. I do also have the contribution WYSIWYG HTMLAreaMS2v1_7 installed but this also seems to be working correctly as I can add images to the description body.

 

Many thanks

Martin

 

Sam I see you're around. Did you have any thoughts on the above problem. If not fine but please let me know.

 

Thanks

Martin

Share this post


Link to post
Share on other sites

the first products have images, the second does not so none shown!!

 

images within a product description cannot be used as there is no referance outside the description


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Sam, thanks for taking a look. I perhaps need to try and explain a little clearer. I think I complicated my post by adding the bit about adding images to the product description. That's not the issue. It's the product listing.

 

If I added a product now, then for some reason the product image does show but the product is added and the image is uploaded to the 'catalog/images' folder. The existing default products that come with the initial OSCommerce install all show as they should with thumbnail views. It's just adding new products.

 

I'd be happy to give you the login to the admin area if it helps at all. This is purely just a testing area for me.

 

Thanks again

Martin

Share this post


Link to post
Share on other sites

what I saw was no referance to an image, so none shown in product listing or product info, there are bugs in some versions of catalog.php in admin that can delete image referances from dbase

 

use phpmyadmin to browse your dbase to check if there is anything in the image entries.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

I'll check thanks. Can I just ask though, are you confident that this should work with the HTML editor? Or have you used your contribution in tandem with another editor that you can recommend.

 

Thanks

Martin

Share this post


Link to post
Share on other sites

I use this on sites with fck http://addons.oscommerce.com/info/2900 without problems, however as these are for product descriptions & this does not display product descriptions, there is no interaction whatsoever

 

I repeat images within a product description cannot be used as there is no referance outside the descriptions

 

The image displayed is that entered in Products Image: when editing a product.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Hi Sam,

 

Any chance of you incorporating the SPECIALS (specials.php) file into your excellent contribution, to allow this view to also be sorted via the very useful LIST/GRID option? :)

 

Best Regards


If it ain't broke, you're not trying hard enough!!

Share this post


Link to post
Share on other sites
Please give a link to your site so I can see any code errors.

 

720Time did not provide a valid link & an image of the page is of no use at all.

 

Hi Spooks,

 

Sorry for the late reply, but I test local.... I do not want to upload contributions if they contain a bug (the shop is online)....

Hope I can solve the problem, because I love your contribution!!!

Share this post


Link to post
Share on other sites

Sorry, I`m not a magician, I can't fix a bug that I can't see, and may well not even exist!!

 

Many, many have this contrib & just 2 have this problem.

 

The problem could be related to your set up, thats why I need to see the page.

 

Why not upload to a test server, or hidden directory on your shop?

 

Or at a very minimum post the generated source here.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
Sorry, I`m not a magician, I can't fix a bug that I can't see, and may well not even exist!!

 

Many, many have this contrib & just 2 have this problem.

 

The problem could be related to your set up, thats why I need to see the page.

 

Why not upload to a test server, or hidden directory on your shop?

 

Or at a very minimum post the generated source here.

 

Does it interfer with "on the fly autothumbnailer" ???

Here's a screenshot

screenshot.jpg

 

Here's the output:

<!-- new_products //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td height="14" class="contentBoxHeading"><img src="images/contentBox/corner_left.gif" width="11" height="14" border="0" alt=""></td>
<td height="14" class="contentBoxHeading" width="100%">Nieuwe producten</td>
<td height="14" class="contentBoxHeading"><img src="images/contentBox/corner_right_left.gif" width="11" height="14" border="0" alt=""></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="contentBox">
 <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="4" class="contentBoxContents">
 <tr>
<td align="center" class="smallText" width="33.3333333333%" valign="top"><table class="infoBoxProducts" cellpadding="4" width="100" height="150"><tr><td><table summary="" width="100%" ><tr><td style="text-align:center;" valign="top" height="200" ><br><a href="http://localhost/naturalspices.nl/product_info.php?products_id=882&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><img src="product_thumb.php?img=images/no_image.jpg&w=150&h=112" width="150" height="112" border="0" alt="uien granulaat (0,2-0,5mm) (doos 25 kg)" title="uien granulaat (0,2-0,5mm) (doos 25 kg)"></a><br></td></tr></table><table summary=""><tr><td class="thumbcontent" height="25" ><a href="http://localhost/naturalspices.nl/product_info.php?products_id=882&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><b>uien granulaat (0,2-0,5mm) (doos 25 kg)</b></a><br></td></tr></table><br><font size="3">€  87,87  <br></font></td></tr></table><br><a href="http://localhost/naturalspices.nl/index.php?action=buy_now&products_id=882&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 70px;"> bestel nu </div></a> <span class="buy_now">|</span> <a href="http://localhost/naturalspices.nl/product_info.php?products_id=882&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 134px;"> IMAGE_BUTTON_DETAILS </div></a><br><br></td>
<td align="center" class="smallText" width="33.3333333333%" valign="top"><table class="infoBoxProducts" cellpadding="4" width="100" height="150"><tr><td><table summary="" width="100%" ><tr><td style="text-align:center;" valign="top" height="200" ><br><a href="http://localhost/naturalspices.nl/product_info.php?products_id=881&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><img src="product_thumb.php?img=images/CIMG1877.jpg&w=696&h=105" width="696" height="105" border="0" alt="rozemarijn fijn (4mm) (strooibus 300 gram)" title="rozemarijn fijn (4mm) (strooibus 300 gram)"></a><br></td></tr></table><table summary=""><tr><td class="thumbcontent" height="25" ><a href="http://localhost/naturalspices.nl/product_info.php?products_id=881&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><b>rozemarijn fijn (4mm) (strooibus 300 gram)</b></a><br></td></tr></table><br><font size="3">€  4,92  <br></font></td></tr></table><br><a href="http://localhost/naturalspices.nl/index.php?action=buy_now&products_id=881&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 70px;"> bestel nu </div></a> <span class="buy_now">|</span> <a href="http://localhost/naturalspices.nl/product_info.php?products_id=881&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 134px;"> IMAGE_BUTTON_DETAILS </div></a><br><br></td>
<td align="center" class="smallText" width="33.3333333333%" valign="top"><table class="infoBoxProducts" cellpadding="4" width="100" height="150"><tr><td><table summary="" width="100%" ><tr><td style="text-align:center;" valign="top" height="200" ><br><a href="http://localhost/naturalspices.nl/product_info.php?products_id=880&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><img src="product_thumb.php?img=images/CIMG1836.jpg&w=695&h=105" width="695" height="105" border="0" alt="komijnzaad gemalen (hittebehandeld) (zak 25 kg)" title="komijnzaad gemalen (hittebehandeld) (zak 25 kg)"></a><br></td></tr></table><table summary=""><tr><td class="thumbcontent" height="25" ><a href="http://localhost/naturalspices.nl/product_info.php?products_id=880&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><b>komijnzaad gemalen (hittebehandeld) (zak 25 kg)</b></a><br></td></tr></table><br><font size="3">€  150,75  <br></font></td></tr></table><br><a href="http://localhost/naturalspices.nl/index.php?action=buy_now&products_id=880&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 70px;"> bestel nu </div></a> <span class="buy_now">|</span> <a href="http://localhost/naturalspices.nl/product_info.php?products_id=880&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 134px;"> IMAGE_BUTTON_DETAILS </div></a><br><br></td>
 </tr>
 <tr>
<td align="center" class="smallText" width="33.3333333333%" valign="top"><table class="infoBoxProducts" cellpadding="4" width="100" height="150"><tr><td><table summary="" width="100%" ><tr><td style="text-align:center;" valign="top" height="200" ><br><a href="http://localhost/naturalspices.nl/product_info.php?products_id=879&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><img src="product_thumb.php?img=images/no_image.jpg&w=150&h=112" width="150" height="112" border="0" alt="knoflook minced (1-3mm) (doos 25 kg)" title="knoflook minced (1-3mm) (doos 25 kg)"></a><br></td></tr></table><table summary=""><tr><td class="thumbcontent" height="25" ><a href="http://localhost/naturalspices.nl/product_info.php?products_id=879&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><b>knoflook minced (1-3mm) (doos 25 kg)</b></a><br></td></tr></table><br><font size="3">€  70,96  <br></font></td></tr></table><br><a href="http://localhost/naturalspices.nl/index.php?action=buy_now&products_id=879&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 70px;"> bestel nu </div></a> <span class="buy_now">|</span> <a href="http://localhost/naturalspices.nl/product_info.php?products_id=879&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 134px;"> IMAGE_BUTTON_DETAILS </div></a><br><br></td>
<td align="center" class="smallText" width="33.3333333333%" valign="top"><table class="infoBoxProducts" cellpadding="4" width="100" height="150"><tr><td><table summary="" width="100%" ><tr><td style="text-align:center;" valign="top" height="200" ><br><a href="http://localhost/naturalspices.nl/product_info.php?products_id=878&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><img src="product_thumb.php?img=images/no_image.jpg&w=150&h=112" width="150" height="112" border="0" alt="foenegriekzaad heel (zak 10 kg)" title="foenegriekzaad heel (zak 10 kg)"></a><br></td></tr></table><table summary=""><tr><td class="thumbcontent" height="25" ><a href="http://localhost/naturalspices.nl/product_info.php?products_id=878&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><b>foenegriekzaad heel (zak 10 kg)</b></a><br></td></tr></table><br><font size="3">€  29,68  <br></font></td></tr></table><br><a href="http://localhost/naturalspices.nl/index.php?action=buy_now&products_id=878&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 70px;"> bestel nu </div></a> <span class="buy_now">|</span> <a href="http://localhost/naturalspices.nl/product_info.php?products_id=878&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 134px;"> IMAGE_BUTTON_DETAILS </div></a><br><br></td>
<td align="center" class="smallText" width="33.3333333333%" valign="top"><table class="infoBoxProducts" cellpadding="4" width="100" height="150"><tr><td><table summary="" width="100%" ><tr><td style="text-align:center;" valign="top" height="200" ><br><a href="http://localhost/naturalspices.nl/product_info.php?products_id=876&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><img src="product_thumb.php?img=images/no_image.jpg&w=150&h=112" width="150" height="112" border="0" alt="kalium sorbaat (E202) (zak 25 kg)" title="kalium sorbaat (E202) (zak 25 kg)"></a><br></td></tr></table><table summary=""><tr><td class="thumbcontent" height="25" ><a href="http://localhost/naturalspices.nl/product_info.php?products_id=876&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><b>kalium sorbaat (E202) (zak 25 kg)</b></a><br></td></tr></table><br><font size="3">€  189,21  <br></font></td></tr></table><br><a href="http://localhost/naturalspices.nl/index.php?action=buy_now&products_id=876&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 70px;"> bestel nu </div></a> <span class="buy_now">|</span> <a href="http://localhost/naturalspices.nl/product_info.php?products_id=876&osCsid=dfaa5fbcf3b6d3d1276e535edd1da299"><div class="cssButton" style="width: 134px;"> IMAGE_BUTTON_DETAILS </div></a><br><br></td>
 </tr>
</table>
</td>
 </tr>
</table>
<!-- new_products_eof //-->

Share this post


Link to post
Share on other sites

Check your admin settings, image size set at width="695" height="105"

 

Guess what, that makes em wide!!!!


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Don't think so.... Here's admin:

 

 

Display Product Image 1

Display Product Manufaturer Name 0

Display Product Model 0

Display Product Name 2

Display Product Price excl. VAT 0

Display Product Price 3

Display Product Quantity 0

Display Product Weight 0

Display Buy Now column 5

Display Category/Manufacturer Filter (0=disable; 1=enable) 1

Location of Prev/Next Navigation Bar (1-top, 2-bottom, 3-both) 2

Product Listing Style thumbnails

Product Listing Manufacturers Description false

Product Listing Short Description false

Product Listing Image Width 80

Product Listing Box Width 100

Product Listing Box Height 150

Product Listing Image Vertical Space 200

Product Listing Price Size 3

Product Listing Name Vertical Space 25

Product Listing Per Row 3

Product Listing Buy Now / Details Button buy now & details

Product Listing Headings true

Product Listing Style Switch false

 

I noticed the weird width & height, but I don't know where it is coming from

Edited by 9827579

Share this post


Link to post
Share on other sites

But thats not what your using on the page,

 

have you, or any contrib modified the tep_image function?

 

Took ma 2nd look, & yes you have as image source is product_thumb.php?img=images/CIMG1836.jpg&w=695&h=105

 

so whats the code in tep image & product_thumb.php, as thats where your issue is

Edited by spooks

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

If you looked at ealier posts, you would have spotted this is a known issue.

 

I don't have time to go though that contrib to see where it fails (which it does as mine is giving valid dims it is ignoring!!), but if you post what I said last I`ll see if there's a quick fix.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
If you looked at ealier posts, you would have spotted this is a known issue.

 

I don't have time to go though that contrib to see where it fails (which it does as mine is giving valid dims it is ignoring!!), but if you post what I said last I`ll see if there's a quick fix.

 

Thanks!

Share this post


Link to post
Share on other sites
Thanks!

 

 

What does that mean??, if you can't be bothered to post the code I'm certainly not about to search arround to fix it for you!!


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Hi,

 

I made some small changes for multi-language (French)

 

Excuse my bad English

 

Update for multilanguages

In product_listing.php

FIND

	$max_display[] = array('id' => 1000000, 'text' => 'Show All');

AND REPLACE WITH

	$max_display[] = array('id' => 1000000, 'text' => TEXT_SHOW_ALL);

FIND

$drop = '<table border="0" width="100%" cellspacing="0" cellpadding="2"><tr><td class="smallText">Results/Page: '. tep_draw_form('maxdisplay', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get') . tep_draw_pull_down_menu('max', $max_display, $_GET['max'], 'onChange="this.form.submit();"') . $get_vars . (isset($_GET['sort']) ? tep_draw_hidden_field('sort', $_GET['sort']) : '') .  tep_hide_session_id().'</form></td><td class="smallText" align="right">Sort Order: ' . tep_draw_form('sorting', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get') . tep_draw_pull_down_menu('sort', $sort_array, $_GET['sort'], 'onChange="this.form.submit();"') . $get_vars . (isset($_GET['max']) ? tep_draw_hidden_field('max', $_GET['max']) : '') . tep_hide_session_id().'</form></td></tr></table>';

AND REPLACE WITH

$drop = '<table border="0" width="100%" cellspacing="0" cellpadding="2"><tr><td class="smallText">' . TEXT_RESULTS_PAGE . tep_draw_form('maxdisplay', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get') . $get_vars . (isset($_GET['sort']) ? tep_draw_hidden_field('sort', $_GET['sort']) : '') .  tep_draw_pull_down_menu('max', $max_display, $_GET['max'], 'onChange="this.form.submit();"') . tep_hide_session_id().'</form></td><td class="smallText" align="right">' . TEXT_SORT_ORDER . tep_draw_form('sorting', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get') . $get_vars . (isset($_GET['max']) ? tep_draw_hidden_field('max', $_GET['max']) : '') . tep_draw_pull_down_menu('sort', $sort_array, $_GET['sort'], 'onChange="this.form.submit();"') . tep_hide_session_id().'</form></td></tr></table>';

In catalog/includes/languages/english/index.php

ADD

//  Product Listing Enhancements, Thumbnails & Manufacturer Headings V1.8
 define('TEXT_RESULTS_PAGE', 'Résults/Page: ');
 define('TEXT_SHOW_ALL', 'Show All');
 define('TEXT_SORT_ORDER', 'Sort order: ');

In catalog/includes/languages/french/index.php

ADD

//  Product Listing Enhancements, Thumbnails & Manufacturer Headings V1.8
 define('TEXT_RESULTS_PAGE', 'Résultats par page : ');
 define('TEXT_SHOW_ALL', 'Tous');
 define('TEXT_SORT_ORDER', 'Tri par ordre : ');
 define('TABLE_HEADING_DETAIL', 'Cliquer pour plus de détails');
 define('TEXT_POA', ' P.O.A');
 define('IMAGE_BUTTON_DETAILS', 'Détails produit'); 
 define('NUM_ORDER', ' (Moins cher)');
 define('APHA_ORDER', ' (A->Z)');
 define('REVERSE_ALPHA_ORDER', ' (Z->A)');
 define('REVERSE_NUM_ORDER', ' (Plus cher)');
 define('DATE_ORDER', 'Date d\'ajout');
 define('LIST_VIEW', 'Liste');
 define('THUMB_VIEW', 'Vignettes');
 define('WEIGHT_ABRV', 'Kg');

 

Thanks for this contribution

Share this post


Link to post
Share on other sites
What does that mean??, if you can't be bothered to post the code I'm certainly not about to search arround to fix it for you!!

 

Dear Spooks,

 

I have altered the original new products module for my needs... The shop is online and I cannot wait for a fix of a problem which no one else got!

But thank you for your time, that is what I meant....

 

Kind regards!

Yvo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×