Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Listing Enhancements, Thumbnails & Manufacturer Headings


spooks

Recommended Posts

pease read the inculded text file for details on use & settings

 

 

I think if i could set the heights rather then the widths it would look neater, but in the admin setting i can only choose widths??

 

just alter the code to suite!!

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

i dont know how sam, ive read the text file and nothing about changing the grid layout, can you help me make it look them same please!

Link to comment
Share on other sites

have u looked at any of the settings!!

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

have u looked at any of the settings!!

 

yes and only thing i can change is:-

 

'Product Listing Image Width'

 

Not the height!

 

please help me, i'd like it looking the same as the New Products page!

 

Pretty please

Link to comment
Share on other sites

there are other settings for spacing too

 

in any case if u care to look through this thread u will find your answer

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

Undistorted image here

 

Distorted here

 

Yes, only image width is set to stop image getting distorted.

 

If you don`t care about distortion (your customers might!!)

 

to set both, in produc_listing.php find (295):

 

$image = (!$grid && $column_list[0] == 'PRODUCT_LIST_IMAGE' ? '<br>' : '') . $link . tep_image(DIR_WS_IMAGES . $image, ($addimages ? (tep_not_null($selected_image['images_description']) ? $selected_image['images_description'] : (tep_not_null($selected_image['products_image_description']) ? $selected_image['products_image_description'] : $products['products_name'])) : $products['products_name']), PRODUCT_IMAGE_WIDTH, '') . '</a>' . '<br>';

 

Replace with:

 

$image = (!$grid && $column_list[0] == 'PRODUCT_LIST_IMAGE' ? '<br>' : '') . $link . tep_image(DIR_WS_IMAGES . $image, ($addimages ? (tep_not_null($selected_image['images_description']) ? $selected_image['images_description'] : (tep_not_null($selected_image['products_image_description']) ? $selected_image['products_image_description'] : $products['products_name'])) : $products['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>' . '<br>';

 

If you do care, in admin set SMALL_IMAGE_HEIGHT to blank (nothing).

 

 

ok well i looked through your 44 pages post and found that, but i cant find the produc_listing.php, was it meant to be 'product_listing.php'?

 

and that code isnt in the 'product_listing.php', well i couldn't find it.

 

and in the admin settings i have played about with the settings and the hieghts of the boxes etc, but its not the same as my first page! i want the product_listing page to look like this.... http://www.neildavison.co.uk/catalog/

 

i just cant change the heights of the images!

 

please tell me how to do it!

 

Neil

Edited by neildavison
Link to comment
Share on other sites

line 295

 

have you tried changing display mode ?

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

line 295

 

have you tried changing display mode ?

 

yeah ive changed the Product Listing Style to thumbnails in grid, thats how i want it to look.

 

i also went to line 295 and changed

: $products['products_name']), PRODUCT_IMAGE_WIDTH, '')

to

: $products['products_name']), PRODUCT_IMAGE_HEIGHT, '')

 

but the images were their original size.

 

I still dont know how to get all thumbnails in the grid to be the same height.

 

when i highlight the grid i can see that there are blank lines above and below each product image, im asuming these are where other info would be, but i've disabled it, is there a way to get rid of these spaces so it looks neater?

 

** UPDATE**

I managed to remove the blank line under each product by cutting out two line on line 296:-

 

// $buypic = (LISTING_BUTTON == 'buy now' ? 'button_in_cart.gif' : 'button_buy_now.gif');

// $button = (LISTING_BUTTON != 'none' && PRODUCT_LIST_BUY_NOW ? (LISTING_BUTTON == 'buy now & details' ? '<br><a href="' .

 

I just need to get rid of the line ABOVE the product and change the images to all be the same height, not width.

 

I'd greatly appreciate your help please.

 

 

Neil

Edited by neildavison
Link to comment
Share on other sites

its ok, done it!!

 

looked at the line 295 again, and added SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) where PRODUCT_IMAGE_WIDTH was.

 

but id still like to know how to get rid of the blank line ABOVE each product please.

 

 

and also how do i change the numbers in the drop down menu for the number of images shown on the page at once, i'd rather it went 10, 20, 30..., show all?

Edited by neildavison
Link to comment
Share on other sites

its ok i changed the number of results per page in the Maximum Values admin bit.

 

another questions, is there a way to REMOVE the SORT BY field drop down menu?

Link to comment
Share on other sites

As detailed, controlled by Prev/Next Navigation Bar in admin set to 0 & u will get none

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

Error running product_listing_setup.php.

 

1146- Table 'dfdfd.configuration.group' doesn't exist

 

select configuration_group_id from configuration _group where configuration_group_title="Product Listing"

 

[tep stop]

 

Thanks for your patience and help.

Link to comment
Share on other sites

iether your dbase is corrupt, or u have modified the setup file in some way

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

iether your dbase is corrupt, or u have modified the setup file in some way

Thanks for the quick response. I had to reinstall my backups.

 

Any good suggestions on how to uncorrupt the dbase as it is still very empty.

 

Thanks.

Link to comment
Share on other sites

Does it make a difference that my dbase name, dbase user, dbase host are different than the domain name?

Correct table should be osc_configuration_group. Any suggestions on the mysql query?

 

Or I am even more lost and confused than I feel.

Link to comment
Share on other sites

this is a v2.2 contrib, it will not work on v3

 

there are v few v3 contrib as that is still in alpha & not ready for use, you should be using 2.2rc2a

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

this is a v2.2 contrib, it will not work on v3

 

there are v few v3 contrib as that is still in alpha & not ready for use, you should be using 2.2rc2a

 

I am using v2.2 ms2. I believe the problem is due to web host provider setup of dbase as osc_configuration and not as plain configuration. Guessing, in product_listing_setup.php, the following line needs to be changed??

 

$chk_query = tep_db_query("select configuration_group_id from configuration_group where configuration_group_title = 'Product Listing'");

 

Bold to osc_configuration_group or

Underline to osc_configuration_group_id or

Change Both??

 

Thanks for your help.

 

Thanks for your help.

Link to comment
Share on other sites

I am using v2.2 ms2. I believe the problem is due to web host provider setup of dbase as osc_configuration and not as plain configuration. Guessing, in product_listing_setup.php, the following line needs to be changed??

 

$chk_query = tep_db_query("select configuration_group_id from configuration_group where configuration_group_title = 'Product Listing'");

 

Bold to osc_configuration_group or

Underline to osc_configuration_group_id or

Change Both??

 

Thanks for your help.

 

Thanks for your help.

 

Installed successfully, changed bold to osc_configuration_group!

Link to comment
Share on other sites

Installed successfully, changed bold to osc_configuration_group!

 

 

Well done, why some love to change things from the standard is beyond me, perhaps so u have to go back & pay for suuport!!

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 Sam,

 

Thanks for the awesome contribution. For some reason in my configuration there is no way to choose how many products show per page, right now on my site there's just the basic list that gives customers the option to choose from 20, 40, 60 etc products per page. I've tried re-running the setup and nothing seems to do it. Is there a way I can just go in and manually change the code so that it only shows say 9 per page?

 

Any advice would be great

Link to comment
Share on other sites

if you read the doc the answer is there, its a pre-existing setting, max values -> search results

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 want to know how is it possible that we can show thumbnail and short description once on a top of product list then the name quantity price and buy now button in a loop ..

 

Because some products have same image and description only we can show the price with no of quantity they buy.

 

 

 

Product Image --------------------------------- Short Description ------------------------

 

 

Product Name | Quantity | Price | Bonus | Buy Now

 

Product Name | Quantity | Price | Bonus | Buy Now

 

Product Name | Quantity | Price | Bonus | Buy Now

 

Product Name | Quantity | Price | Bonus | Buy Now

 

Product Name | Quantity | Price | Bonus | Buy Now

 

---------------

---

--

 

Thanks

Link to comment
Share on other sites

thats a very specific need, you will have to recode to achieve it

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...