Jump to content
Sign in to follow this  
spooks

Product Listing Enhancements, Thumbnails & Manufacturer Headings

Recommended Posts

what is this validator you are speaking of...i ahve put in my web address and it has 19 errors....what does this mean for my site if they are not fixed???...i will fix them i was just wondering???

Share this post


Link to post
Share on other sites

many sites have errors, google prefers sites without errors, so removing all errors will improve your seo

 

looking at http://validator.w3.org/check?uri=http%3A/...hp%3FcPath%3D21 your site has 23 errors, some are serious, you have mismatching open/close tables, you can get away with this with the default osC, BUT ADDING SOME CONTRIBS will reveal these problems, you will blame the contrib, but its your site that has the problem


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,

 

I've change line 341 of product listing.php to this: 'params' => $style . ' width="'.(PRODUCTS_PER_ROW ? (100/PRODUCTS_PER_ROW) : '').'%" align="center" valign="top"', which has centred everything up, but now I have borders around it all.

 

With regards to the errors, i'd like to cut them down (most generated from contributions), but to be honest I don't know where to start.

 

What files the errors are in etc etc

Share this post


Link to post
Share on other sites
I've change line 341 of product listing.php to this: 'params' => $style . ' width="'.(PRODUCTS_PER_ROW ? (100/PRODUCTS_PER_ROW) : '').'%" align="center" valign="top"', which has centred everything up, but now I have borders around it all.

 

you should`nt need to make any code changes, the default style is centered, the css entry for that part in the style u useing is .thumbcontent its your sites html/css errors that mean firefox dont center (ie does)


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
you should`nt need to make any code changes, the default style is centered, the css entry for that part in the style u useing is .thumbcontent its your sites html/css errors that mean firefox dont center (ie does)

 

 

It's fine in firefox now. I know i'm bypassing the css, but I don't have the know how to figure out what was causing the error in the first place.

 

I got that code by going through this thread.

Share this post


Link to post
Share on other sites

I have recently implemented version 1.8 of the Product Listing Enhancements, Thumbnails & Manufacturer Headings Contribution. Everything seems to work fine accept that it is ignoring the settings in the admin panel which controls the image size. I can't think of a way around this as if I use smaller images so that the grid view works correctly (with 3 images in a row), then there is no way for the customer to see a larger view of the product. My site is www.stokedbanana.com and the error is fairly obvious when you go to any of the product categories or manufacturers. Any ideas?

 

Here are my admin settings:-

 

Display Product Image 1

Display Product Manufaturer Name 0 Info

Display Product Model 0 Info

Display Product Name 2 Info

Display Product Price 3 Info

Display Product Quantity 0 Info

Display Product Weight 0 Info

Display Buy Now column 4 Info

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

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

Product Listing Style thumbnails in grid Info

Product Listing Short Description false Info

Product Listing Manufacturers Description false Info

Product Listing Image Width 140 Info

Product Listing Box Width 200 Info

Product Listing Box Height 180 Info

Product Listing Price Size 3 Info

Product Listing Image Vertical Space 100 Info

Product Listing Name Vertical Space 25 Info

Product Listing Per Row 1 Info

Product Listing Buy Now / Details Button buy now Info

Product Listing Headings true Info

Product Listing Style Switch true

Share this post


Link to post
Share on other sites

in your case the image is displayed with

 

tep_image(DIR_WS_IMAGES . $image, $products['products_name'], PRODUCT_IMAGE_WIDTH, '')

 

you have PRODUCT_IMAGE_WIDTH set to 140 however, looking at your source no width is set, therefore you have modified tep_image to create this problem.

 

Some badly written thumbnailers cannot cope with only width or height set, perhaps someone hacked that to ignore settings if only one set??

 

If you want a thumbnailer that works, try oscthumb

 

PS, this thread is mentioned in the docs & contrib section, please try reading a bit b4 posting!!

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

Is there any way I can get this contribution working with Quantity Price Breaks Per Product for Separate Pricing Per Customer v2.0.

 

I was trying to modify the product_listing.php file included in the contribution but looks like it has been modified quite extensively from the original.

Can you tell me what has been modified from the original?

 

Any help would be appreciated.

 

Cheers.

Share this post


Link to post
Share on other sites

It has been modified very extensivly, use a file compare tool if you wish.

 

You would need to understand what that contrib is doing, then apply same to this.


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

 

Just wondering how can I modify product listing so when Out of Stock is TRUE it removes the Add to Cart Button so the customer cannot add item to cart.

 

 

Cheers.

 

Le

Share this post


Link to post
Share on other sites
Hi Sam

 

Just wondering how can I modify product listing so when Out of Stock is TRUE it removes the Add to Cart Button so the customer cannot add item to cart.

 

 

Cheers.

 

Le

 

this already does that, givesdetail button instead


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

would you be able to point out the code which does this? as it is not working for me. I am able to add the item even if the item is out of stock.

Share this post


Link to post
Share on other sites

the code would depend on the listing style your using, which is?


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

oops I just rialised the code i refered to aint on the published version!

 

after(304):

 

if (function_exists(tep_get_att_price)) $price .= (tep_get_att_price($products['products_id']) > 0 ? '+' : '');

 

add:

 

if (isset($listing['products_quantity']) && !$listing['products_quantity']) $button = '<br><span class="buy_now"> </span>'. $link . tep_image_button('button_details_small.gif', IMAGE_BUTTON_DETAILS) . '</a> <br><br>';


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
oops I just rialised the code i refered to aint on the published version!

 

after(304):

 

if (function_exists(tep_get_att_price)) $price .= (tep_get_att_price($products['products_id']) > 0 ? '+' : '');

 

add:

 

if (isset($listing['products_quantity']) && !$listing['products_quantity']) $button = '<br><span class="buy_now"> </span>'. $link . tep_image_button('button_details_small.gif', IMAGE_BUTTON_DETAILS) . '</a> <br><br>';

 

Thanks Sam!!! I love your work.

 

Fantastic contribution.

 

I changed $listing to $products and looks like its working perfectly!

Share this post


Link to post
Share on other sites

assume u talk of new_products.php module from contrib

 

its the same addition & yes product not listing, sorry, missed that on the post


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

not clear, are u saying u want to remove the new product module from your home page, or the new product info box, or smthg else?


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

includes/languages/your_lang/index.php

 

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');


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

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  

×