If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Catalog of products - image sizing/disable product page

Catalog of products - image sizing/disable product page

Locked

Started by docrocks on 11 Jan 2008, 10:00 PM · Views: 3,471

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
11 Jan 2008, 10:00 PM
#1
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Catalog of products - image sizing/disable product page

Hi Zenners,

My store is a catalog of products (no sales). Most images of my ribbon products are the same size - 400 x 97. Since this is a catalog I only want to display the images in large size. I think I can set their size on the Category page in Configuration > Images. But what happens to the category page layout if some of the images are not that size?

And, how do I disable the product pages since I only want to display on the category pages?

Thanks for your help.

DocRocks
My goal is to consume the Web, one byte at a time.

12 Jan 2008, 2:59 PM
#2
madmumbler avatar

madmumbler

Zen Follower

Join Date:
Dec 2005
Location:
SWFL
Posts:
450
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

As far as no sales, set your store to be a Showcase. Configuration --> My Store --> Store Status.

As far as your images question, I'm not quite sure I understand what you mean, I'm sure someone else can have some advice for you.

HTH,

Lesli in SW Florida ~ writer, teacher, and dodging hurricanes!

12 Jan 2008, 5:26 PM
#3
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

If you want the images to resize correctly if they are around 400px by *px you could set just the long side (whichever it is for you width or height to 400px) and the short side to 0px.

If you have the image width set to 400px and the other size set to 0px, the images will resize proportionately to the 400px image size.

It all depends on how much different the other images are from your standard 400 X 97 size.

If you want me to be a little more explicit, maybe provide a link to your site, and I could see what your intending on doing.

14 Jan 2008, 5:00 PM
#4
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

rainthebat:

If you want the images to resize correctly if they are around 400px by *px you could set just the long side (whichever it is for you width or height to 400px) and the short side to 0px.

If you have the image width set to 400px and the other size set to 0px, the images will resize proportionately to the 400px image size.

It all depends on how much different the other images are from your standard 400 X 97 size.

If you want me to be a little more explicit, maybe provide a link to your site, and I could see what your intending on doing.

I'll give the width setting a try - thanks.

Pages like http://prestonribbons.com/accessories.htm have images of various sizes. Would the global width setting force images on these other pages to display at 400px or to their native size?

Thanks again

DocRocks
My goal is to consume the Web, one byte at a time.

16 Jan 2008, 12:59 AM
#5
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

This is an awesome image preparation tutorial by Ryk.
And this is a great Zen Cart Image Tutorial from their FAQ section.

16 Jan 2008, 3:21 PM
#6
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

Thanks for the image links - good information.

I'm still looking for the answer to the other question.

How do I disable the link to the product page? My cart is an online catalog with no sales and I want only to display the product images, descriptions etc. on the catalog page so I don't want a link to the individual product page. Can you tell me which tpl page (I assume its one of those) I have to customize to make this happen?

Cheers

DocRocks
My goal is to consume the Web, one byte at a time.

16 Jan 2008, 3:42 PM
#7
madmumbler avatar

madmumbler

Zen Follower

Join Date:
Dec 2005
Location:
SWFL
Posts:
450
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

I'm not sure that can be done without hacking core files. But if you set it to showcase format, they cannot purchase.

Lesli in SW Florida ~ writer, teacher, and dodging hurricanes!

16 Jan 2008, 3:58 PM
#8
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

yeah, displaying it as a showcase is a good way to achieve the non-purchasablity <-- thats not really a word!) of products, but if you wanted to rip the links to the product info pages from the product listing pages, you would have to edit them out of includes/modules/product_listing.php

If you were really intent on doing this, you would change the <a> tags into spans, including all that code in the middle that finds the link.

I tried it out and was successful, so it can be done.

Update: I just checked out your pages, and it seems the links are disabled anyhow, what do you mean then that you want to disable links to product pages, or have you already achieved that?

16 Jan 2008, 4:13 PM
#9
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

ON the Accessories page where I have some test items, when I click on the product images the product page still opens so I'll try removing the <a> link html and see where that goes. Many thanks for hanging in there on this thread.

DocRocks
My goal is to consume the Web, one byte at a time.

16 Jan 2008, 4:19 PM
#10
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

I recommend replacing the <a> with <span> as opposed to removing the tag altogether.

16 Jan 2008, 4:25 PM
#11
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

to do this:

find this:

 if (isset($_GET['manufacturers_id'])) {
          $lc_text = '<h3 class="itemTitle">

then find this:

<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">

replace all that with:

<span>

make sure to replace the end </a> tag with a </span>

Do this for both those lines that look almost identical (they may be identical!)

that gets rid of the link that is in the header,

next toward the bottom of product_listing there is a similar occurrence which displays the image as a link. You want to keep the image, and perhaps gain customization ability, so change the complete <a> tag into a <span> and perhaps give it a little class (<span class="customClass">

16 Jan 2008, 5:11 PM
#12
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

You went above and beyond.

Many Thanks

DocRocks
My goal is to consume the Web, one byte at a time.

16 Jan 2008, 5:47 PM
#13
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

I am guessing it worked for you then?

18 Jan 2008, 10:31 PM
#14
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: Catalog of products - image sizing/disable product page

Changing the max and min image sizes in admin > images fixed all. Thanks again for your advice.

DocRocks
My goal is to consume the Web, one byte at a time.