Forums / Templates, Stylesheets, Page Layout / product listing display changes

product listing display changes

Locked

Views: 3,837

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
20 Sep 2006, 2:29 AM
#1
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

product listing display changes

I want to remove the following from my pages, hopefully by commenting out - so that I can easily restore later for a different purpose:

'Displaying x of y(y products)'

Column names - 'Product Image', 'Item name' 'Price'

and the 'Contact us' button.

I'm not getting anywhere experimenting with commenting out lines, and would appreciate some guidance.

20 Sep 2006, 2:33 AM
#2
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: product listing display changes

You can use my favorite css trick to remove them...

Find the id / class that calls them and at the end of the stylesheet add
#ThisID {display: none;}

Works - though not probably the best way:smartass:

When the world gets in my face I say Have A Nice Day.

20 Sep 2006, 2:34 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: product listing display changes

Headings of the Product Listing are in:
/includes/modules/product_listing.php

Split pages are in:
/includes/templates/template_default/templates/tpl_modules_product_listing.php

Be sure in both cases to use your templates and overrides directories for these changes ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Sep 2006, 4:27 AM
#4
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Re: product listing display changes

Thank you people - the css trick is great. Just what I wanted.

I can't see though how to get rid of the 'contact us' link next to each item. I thought that if it was a button I could replace it, but it is a link generated I know not how.

Gadzooks! Got it: #cartAdd

20 Sep 2006, 4:31 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: product listing display changes

Do you have your site setup for Login to buy in Customer Details?

Do you have your site setup as a showcase in My Store?

Do you have your Products marked as Call for Price?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Sep 2006, 4:44 AM
#6
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Re: product listing display changes

Ugh. #cartAdd is the css for the individual product listing, but not for the products-all listing. Is there some code I can comment out to prevent the contat link from generating?

Site is showcase, I don't have 'call for price' active, and login to buy is not active.

20 Sep 2006, 12:02 PM
#7
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Re: product listing display changes

Why hast thou forsaken me, oh gurus? The last hurdle is before me - 'contact us' appears as a link generated somehow, and if I can remove it, albeit temporarily, my task will be momentarily complete. Yea, forsooth, otherwise I am lost. Ugh.

20 Sep 2006, 8:00 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: product listing display changes

Doing a search via the Tools ... Developer's Tool Kit on: contact us

Would show the define for: TEXT_SHOWCASE_ONLY

Doing a search on the define: TEXT_SHOWCASE_ONLY

Would show that this is automatically built when Show Case is set ...

To make it disappear ... you can change its definition or set it to ''

/includes/languages/english.php

Line #497 : define('TEXT_SHOWCASE_ONLY','Contact Us');

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Sep 2006, 10:45 PM
#9
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Re: product listing display changes

Thanks heaps for that Linda. I would never have made the association with showcase, and I just overlooked that in english.php.

21 Sep 2006, 12:46 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: product listing display changes

You are most welcome ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Oct 2006, 1:17 PM
#11
dhermanus avatar

dhermanus

New Zenner

Join Date:
Sep 2006
Location:
Sydney, Australia
Posts:
44
Plugin Contributions:
0

Re: product listing display changes

I don't know if this is still relavant.. :laugh:

but here it is..

Thanks to Linda... for indicating the template file..

to delete the Displaying x to y (of z Products) in product listing

Just put the tpl_modules_product_listing.php file (within the default teplate) into your custom template dir in <custom template>\templates\

look for

<?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?>

change to :

<?php // echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?>

:laugh:
Deddy

16 Oct 2006, 2:26 PM
#12
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

Re: product listing display changes

G'day,

For the new products listing, the XHTML for that part of the page is...

<div id="newProductsDefaultListingTopNumber" 
class="navSplitPagesResult back">Displaying 
<strong>1</strong> to <strong>10</strong> 
(of <strong>201</strong> new products)</div>

Thus adding the following to your stylesheep.css CSS file should turn off the display of that part of your page without having to change any PHP code...

.newProductsDefaultListingTopNumber,
.newProductsDefaultListingBottomNumber { display:none; }

You should just need to add the other class pairs for the other pages -- e.g. product listing, all products, special products etc. -- as required.

Best Regards, Lloyd Borrett.

Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

17 Oct 2006, 10:26 PM
#13
mytoyo avatar

mytoyo

New Zenner

Join Date:
Oct 2006
Posts:
9
Plugin Contributions:
0

Re: product listing display changes

Hi i was able to comment out "Display X of X" but i can't find where to take out the title for "Product Image" and "Item Name" titles in the Product Listing Page.
-thanks
Marvin

17 Oct 2006, 10:49 PM
#14
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

Re: product listing display changes

G'day,

Again, you should be able to do this with an addition to your CSS file.

Try...

tr.productListing-rowheading {display:none;}

Though you might need to add...

th.productListing-heading {display:none;}

Best Regards, Lloyd Borrett.

Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

17 Oct 2006, 11:13 PM
#15
mytoyo avatar

mytoyo

New Zenner

Join Date:
Oct 2006
Posts:
9
Plugin Contributions:
0

Re: product listing display changes

thank you lloyd that did the trick!

One other thing that's being bothering me is theres no spacing between the image and the Item Name any idea on how to give it more space or align the text to the top to be even with the image height? (See Attached)

17 Oct 2006, 11:42 PM
#16
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

Re: product listing display changes

G'day,

Again it is a case of looking at the CSS values that are in the page source in the area you want to adjust to see what CSS values are available to be manipulated. Then try some adjustments to those values to get what you need.

I'd start by trying some padding. e.g. ...

td.productListing-data { padding:  0px 3px; }

Best Regards, Lloyd Borrett.

Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42