Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Listing Enhancements, Thumbnails & Manufacturer Headings


spooks

Recommended Posts

Hi

 

I have installed the contrib and have a question about the results per page option that maybe someone else has come across and fixed. Its defaulted to 20 per page, you change to another value, say 40, and the dropdown list value goes back to 20. I can't find a way to go back to 20 results per page.

 

Maybe the value should stay at 40 per page and then you can select 20 from the dropdown and go back to 20 per page

 

Many thanks

 

Ian

Link to comment
Share on other sites

As detailed in the instructions:

 

values based on multiples of the 'Search Results' value in admin

 

 

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 also can't get the product descriptions to appear, I checked the code and I included everything but it just doesn't appear. I do see the option in admin though.

 

Also the category description that I installed doesn't work but does show up in admin.

 

I included echo '<hr>' . $listing_sql . '<hr>'; in the last line in product_listing.php and then I get this:

 

http://www.cosplaydreams.nl/catalog/index....=0&cPath=21

 

help plz? :)

Edited by Lady Lionheart
Link to comment
Share on other sites

Your sql is correct, when you edit your product do you see the short desc you've entered ?

 

category description is nothing to do with this, thats all done by that contrib, make sure you followed that install exactly....

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

Hm well it seems to work now, the short description at least, I followed the instructions once again, thanks.

 

I'll go and check the category description addon again.

 

But how can I edit the product_info.php to look like this? : http://www.reddotcommerce.nl/catalog/haruh...all-scroll.html

it now looks like this: http://www.cosplaydreams.nl/catalog/produc...?products_id=30

 

and can you resize the pictures to display the right height/widt dimensions and not the standard 100x100 px or so?

Edited by Lady Lionheart
Link to comment
Share on other sites

If you like that!!

 

set columns as you require

change listing settings too

edit the css

 

please read through the included text file.

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

Well actually I just want to edit the products_info.php to center the image and place it under the text, but I can't seem to be able to do this, do you have a suggestion?

 

And is it possible to put the listing in a table or something in order to make the title, description and buy now buttons line up nicely?

 

And thanks again so much for helping me!

Link to comment
Share on other sites

Oh, sorry I thought you were still talking of product listing, product display is another issue.

 

Its easy done though

 

find:

 

 <td class="main" >
<?php
if (tep_not_null($product_info['products_image'])) {
?>
	  <table border="0" cellspacing="0" cellpadding="2" align="right">

 

replace with

 

 <td class="main" align="center">
<?php
if (tep_not_null($product_info['products_image'])) {
?>
	  <table border="0" cellspacing="0" cellpadding="2" align="center">

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

Yes but then I get this: http://www.cosplaydreams.nl/catalog/produc...?products_id=30

The text is now under the picture, it needs to be above it.

 

And just one more thing about the listing: The New Products for... section looks a lot better than my normal product listing, how can I make it that they look the same?

 

Thanks!

Edited by Lady Lionheart
Link to comment
Share on other sites

You adjust the style of the displays with the css.

 

You line things up by adjusting settings in admin,

 

as I said please read through the included text file.

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,

 

I need your help again.

 

I want to use thumbnails on the product list without using any auto thumbnailer. I plan to generate thumbnails manually and want put to them to the /thumbnails directory. On the product list I want to use /thumbnails folder instead of default /images folder.

 

My question is: How can I change default image location to /thumbnails folder?

 

Many thanks.

 

Bora

Link to comment
Share on other sites

Easy, just open the product_listing.php module search the file for DIR_WS_IMAGES & replace all instances with 'thumbnails/'

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

 

I'm still having trouble with this.

 

Could you please show me where & how in the product_listing.php i should change the code to show the manufacturer listing

 

Jesper

 

 

 

 

"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

 

 

 

 

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

 

 

Just alter the code that displays the manufacturer name to one that displays the manufacturer image.
Link to comment
Share on other sites

look for

 

case 'PRODUCT_LIST_MANUFACTURER':
		$lc_align = 'center';
		$lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> ';
		break;

 

and edit that

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

 

I'm not very good at PHP. I'm doing my best, but I realy can't figure out, what to change in the code. I know it's something about manuracturers_image, but that's it. Hope you will help me

 

Jesper

 

 

look for

 

case 'PRODUCT_LIST_MANUFACTURER':
		$lc_align = 'center';
		$lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> ';
		break;

 

and edit that

Link to comment
Share on other sites

Say whay you've tried & I'll give tips

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,

 

Thank you Spooks for helping and being patient ;-)

 

As I said. I'm no big php programmer, but I'm learning.

 

I have tried a lot, but I think the following is my best proposal:

 

case 'PRODUCT_LIST_MANUFACTURER':

$lc_align = 'center';

$lc_text = '<a href="' . tep_href_link(FILENAME_ DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . tep_image(DIR_WS_IMAGES . $listing['manufacturers_image'], $listing['manufacturers_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';

break;

Link to comment
Share on other sites

Thats fine, but you need to add to the sql so the data is there,

 

in index.php

 

you added

$select_column_list .= 'p.products_image, ';

before, modify that to

$select_column_list .= 'p.products_image, m.manufacturers_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.

Link to comment
Share on other sites

I'm still getting an error in the listing - see BabyGear.dk

 

 

I have changed the following code in product_listing.php:

 

FROM:

case 'PRODUCT_LIST_MANUFACTURER':

$lc_align = 'center';

$lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> ';

break;

 

TO:

case 'PRODUCT_LIST_MANUFACTURER':

$lc_align = 'center';

$lc_text = '<a href="' . tep_href_link(FILENAME_ DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . tep_image(DIR_WS_IMAGES . $listing['manufacturers_image'], $listing['manufacturers_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';

break;

 

 

 

And in index.php

 

FROM:

$select_column_list .= 'p.products_image, ';

 

TO:

$select_column_list .= 'p.products_image, m.manufacturers_image, ';

Link to comment
Share on other sites

You must have changed something else to break things put back contrib product_listing & start again.

 

Turn seo off till site is ready, only adds to confusion.

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, I understood your issue, its time thats mine.

 

I`ve had a moment so do this.

 

In index.php add before

 

// show the products of a specified manufacturer

this:

$select_column_list .= 'p.products_quantity, ';

 

in product_listing.php add before

 

 if (!strstr(PRODUCT_THUMBNAIL_VIEW, 'block')) {

this:

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

 

then before:

$show_price = '<br><font size="'.PRODUCT_PRICE_SIZE.'">' . ($products['products_price'] > 0 ? $price : TEXT_POA) . '<br></font>';

add:

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

 

That should do it.

 

B)

 

Hi Spooks,

 

Just wondering. Having applied your code above to remove the BUY NOW button (worked perfectly!) when stock is ZERO, how much more difficult would it be to put a SOLD OUT button there in place of the BUY NOW button - rather than removing it? I tried applying an add-on to replace the BUY NOW button with a NOTIFY ME button, but couldn't get it to work because the original install files affected had changed so much. It would be useful to be able to trigger an email once stock is in.

 

Thanks,

 

Jonathan

Link to comment
Share on other sites

This code is replacing the buy now with a details button on 0 stock, just replace 'button_details_small.gif' with a 'button_sold_out.gif' in the code &make the button

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 code is replacing the buy now with a details button on 0 stock, just replace 'button_details_small.gif' with a 'button_sold_out.gif' in the code &make the button

You are a star! Thanks.

Link to comment
Share on other sites

Hi, Spooks!

 

I've installed your contribution and it works flawlessly! Thank you so much for sharing this with the rest of us!

 

Is there any possibility to have implemented into the specials.php also?

 

Thanks in advance!

E.

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