Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Listing Enhancements, Thumbnails & Manufacturer Headings


spooks

Recommended Posts

Hi Gaver,

 

If you look at the button url its ...index.php?action=buy_now&products_id=36

 

 

the buy_now tells application top to add the identified product (&products_id=36) to the cart, so something is causing a redirect to product_info, you need to study your application top to find the cause.

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.

Link to comment
Share on other sites

hi guys.. i am in the admin for this..

 

And i want to change the height of the thumbnail images... but i am only seeing something to change the width.. "Product Listing Image width".. where can i adjust the height ?

 

 

Its not done, read the instructions for details.

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.

Link to comment
Share on other sites

Standard html behavior, its a table, you set minimum width, if content is larger it will grow.

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.

Link to comment
Share on other sites

Hello Brock -

 

I made the very changes you are referring to ...

 

Here's how I did it...

1) Back up the existing product_list.php file so you have a copy to go back to incase this doesn't work out how you expect.

2) Find the following code near line 109 and comment it out.

if ($top_nav && ($listing_split->number_of_rows > 0)) echo $drop;

3) Then find the following line of code near line 562 and comment it out.

if ($base_nav && !$empty_list) echo $drop;

 

After I made the changes above - I decided I wanted to set the max number of items being displayed - which of course I had just disabled by hiding the drop down list...

 

You can set the max number by finding the following line of code near line 18:

$max_results = (tep_not_null($_GET['max']) ? $_GET['max'] : MAX_DISPLAY_SEARCH_RESULTS);

 

and changing it to:

$max_results = 9; /*(tep_not_null($_GET['max']) ? $_GET['max'] : MAX_DISPLAY_SEARCH_RESULTS); */

 

Note: change the iteger value (I used 9) to the value you want displayed.

 

You can see a sample "work in progress" for my product_list.php display here.

 

Hope that helps...

 

Nice fix, one point though

 

$max_results = (tep_not_null($_GET['max']) ? $_GET['max'] : MAX_DISPLAY_SEARCH_RESULTS);

 

thats says if no drop down selection use the default MAX_DISPLAY_SEARCH_RESULTS which is set in admin, avoids hard coding values.

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.

Link to comment
Share on other sites

Hi Gaver,

 

If you look at the button url its ...index.php?action=buy_now&products_id=36

 

 

the buy_now tells application top to add the identified product (&products_id=36) to the cart, so something is causing a redirect to product_info, you need to study your application top to find the cause.

 

 

I'll do that, I was hoping it was per design - since Shirts have options like color and size - adding it to the cart without first selecting one of the options would create a problem at order fullfilment time - whereas hats do not have a size or color option - so adding them directly to the cart and taking the user to the checkout page is desireable. I'm wondering what it will hurt to leave it as is - since the problem appears to be working to my advantage - for now.

 

Regarding maxresults - you're right - that's a much better way to handle that!

 

Thanks again - I'm trying now to integrate the Additional Images Contribution... thank goodness for WinDiff !

 

... and thanks again for your contribution and assistance.

Gaver

diplomacy is the art of saying "nice doggie" - while you look for a rock.

Link to comment
Share on other sites

spooks.. i have read your instructions...

 

also ... i have my dimensions in the 'Images" in admin set to 150x150 .. so i am lost at y i have some huge images coming up making stretch the html tables..

 

on another note... if by setting the "product listing image width" to 150.. shouldnt that over force the images to be at that width and nothing bigger ??

 

 

Also is it possible to hard code the heights into the code ???

Link to comment
Share on other sites

Hello Brock -

 

I made the very changes you are referring to ...

 

Here's how I did it...

1) Back up the existing product_list.php file so you have a copy to go back to incase this doesn't work out how you expect.

2) Find the following code near line 109 and comment it out.

 

.......................

 

You can see a sample "work in progress" for my product_list.php display here.

 

Hope that helps...

 

 

You are my hero!!!!

I was messing around the whole day to find a solution, but I couldn't. You saved me getting crazy :D :thumbsup:

Link to comment
Share on other sites

if you have set "product listing image width" then that will limit the width, if not check your source for generated setting to see error (set wrong, browser issue etc)

 

Also is it possible to hard code the heights into the code ???

 

Delt with in this thread already, why do want to distort??

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.

Link to comment
Share on other sites

Hi Sam

 

firstly fantastic contrib, works really well and with great results.

 

Few things I would like to be able to do and wondered if you can advise, plus 2 problems I am having with it.

 

First the problems I have

 

1). when I click new products I get this

 

Parse error: syntax error, unexpected ';', expecting ',' or ')' in /home/sites/lancelotsolutions.co.uk/public_html/hiphopmusic/products_new.php on line 14

 

I have tried copying over again the file from your download just to make sure I didnt change anything and I still get that. any ideas?

 

2). I tried adding the image background part into the stylesheet and copied over the image, but I just dont see the image at all. I assume this should show behind my product image?

 

I have this in the style sheet

.infoBoxProducts {
 text-align: center;
 border: solid 1px #999999; 
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 font-weight: normal;
 background-image: url(images/my-pic.gif);
 background-attachment: scroll;
 background-x-position: 0%;
 background-y-position: 0%;
 background-repeat: repeat-x;
 background-color: transparent;
 color: #333333;
 margin-bottom:-8px;
}

 

 

Nice to have features

 

and now the nice to have 2 features.

 

Mine is a music store and I dont display the prices as it is done on a membership. So wondered if I could replace the prices with rating stars?

 

1). I would like to display the review stars/rating under each product rather than the price on the thumbnail grid.

 

I have made an image to show you an example of what I mean below

 

example.jpg

 

2). and also it would be great to sot by ratings on the same page. So where we can sort by name, manufactuer etc

 

As it is a music store, people will want to see what the best rated would be. as I will have hundreds of different music some people just want to check out the top rated.

 

Really be great if you could point me in the right direct on this. It is only a test/work in progress site so happy to play around with the code.

 

 

thanks in advance, and again Great contrib.

Edited by danielcompton
Link to comment
Share on other sites

Hi Sam

 

firstly fantastic contrib, works really well and with great results.

 

Few things I would like to be able to do and wondered if you can advise, plus 2 problems I am having with it.

 

First the problems I have

 

1). when I click new products I get this

 

Parse error: syntax error, unexpected ';', expecting ',' or ')' in /home/sites/lancelotsolutions.co.uk/public_html/hiphopmusic/products_new.php on line 14

 

I have tried copying over again the file from your download just to make sure I didnt change anything and I still get that. any ideas?

 

2). I tried adding the image background part into the stylesheet and copied over the image, but I just dont see the image at all. I assume this should show behind my product image?

 

I have this in the style sheet

.infoBoxProducts {
 text-align: center;
 border: solid 1px #999999; 
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 font-weight: normal;
 background-image: url(images/my-pic.gif);
 background-attachment: scroll;
 background-x-position: 0%;
 background-y-position: 0%;
 background-repeat: repeat-x;
 background-color: transparent;
 color: #333333;
 margin-bottom:-8px;
}

 

 

Nice to have features

 

and now the nice to have 2 features.

 

Mine is a music store and I dont display the prices as it is done on a membership. So wondered if I could replace the prices with rating stars?

 

1). I would like to display the review stars/rating under each product rather than the price on the thumbnail grid.

 

I have made an image to show you an example of what I mean below

 

example.jpg

 

2). and also it would be great to sot by ratings on the same page. So where we can sort by name, manufactuer etc

 

As it is a music store, people will want to see what the best rated would be. as I will have hundreds of different music some people just want to check out the top rated.

 

Really be great if you could point me in the right direct on this. It is only a test/work in progress site so happy to play around with the code.

 

 

thanks in advance, and again Great contrib.

 

I fixed the products_new problem buy changing line 14 & 15 in products_new.php by just adding a ) before the ;

 

unset($HTTP_GET_VARS['manufacturers_id']);

unset($_GET['manufacturers_id']);

 

still would like some help with the rest if possible. thanks

Link to comment
Share on other sites

I also had to add the following into includes/languages/english/index.php

 

 

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

 

As in products_news.php when clicking the drop down box I had TABLE_HEADING list rather than the names

 

prob a step I missed, but couldnt see it.

Link to comment
Share on other sites

I also had to add the following into includes/languages/english/index.php

 

 

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

 

As in products_news.php when clicking the drop down box I had TABLE_HEADING list rather than the names

 

prob a step I missed, but couldnt see it.

 

Yes you're right, instructions missed for includes/languages/english/products_new.php I'm surprised that has'nt come up before!

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.

Link to comment
Share on other sites

It'l need mods to index.php to add to the sql query plus add the new ratings heading, then modify the modules so the new heading & data are output.

 

For the most part just copy whats done b4.

 

I'm afraid I don't have time right now to do it myself.

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.

Link to comment
Share on other sites

It'l need mods to index.php to add to the sql query plus add the new ratings heading, then modify the modules so the new heading & data are output.

 

For the most part just copy whats done b4.

 

I'm afraid I don't have time right now to do it myself.

 

Ok thanks, I think that a little above what I can do. But I will take a look.

 

Any ideas why the image backgrounds do not show up for me. I pasted my stylesheet in, does that look correct to you?

Link to comment
Share on other sites

that looks fine as long as your pic is called my-pic.gif & is in images

 

use firefox tools for css tests

 

you can try putting the full url in, in case yuo have a path 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.

Link to comment
Share on other sites

that looks fine as long as your pic is called my-pic.gif & is in images

 

use firefox tools for css tests

 

you can try putting the full url in, in case yuo have a path problem

Ok thanks, full path didnt work. but looking at firefox and there are a few errors so I will try a clean stylesheet maybe and start again

 

thanks

Link to comment
Share on other sites

Nice fix, one point though

 

$max_results = (tep_not_null($_GET['max']) ? $_GET['max'] : MAX_DISPLAY_SEARCH_RESULTS);

 

thats says if no drop down selection use the default MAX_DISPLAY_SEARCH_RESULTS which is set in admin, avoids hard coding values.

 

Sam,

 

I restored MAX_DISPLAY_RESULTS as suggested, where in admin can I set the value to 9? It appears to be defauting to 5.

Gaver

diplomacy is the art of saying "nice doggie" - while you look for a rock.

Link to comment
Share on other sites

Sam,

 

I restored MAX_DISPLAY_RESULTS as suggested, where in admin can I set the value to 9? It appears to be defauting to 5.

 

 

As detailed under 'settings' The number of products shown per page is set by 'Search Results' in 'Maximum Values'.

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.

Link to comment
Share on other sites

Hello, i was following some of your postings and I really like the "Product Thumbnail Listing" you have as a contribution for "Product List Enhanments" I was wondering if there is a contribution just for the way the products list on a page, i would love to see the product thumbnail list for this page:

http://traciegrant.com/catalog/index.php?cPath=21

 

Any ideas? I dont have manufacturer, i just want to list in 4 colums with the Details and Buy it now link, just as you have it. is there more to it than just editing the index.php page? the least about of modifying would be best - thank you a MILLION

 

i put in a sort order contribution to get them in order.,

Sincerely,

Link to comment
Share on other sites

This can do 4 colums with the Details and Buy it now link with this, you don't need manufacturer, this is a contribution for the way the products list on a page.!!!!!

 

 

:rolleyes: :rolleyes: :rolleyes:

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...