Forums / Templates, Stylesheets, Page Layout / Gap in product listing between price and 'sold out' button (new thread)

Gap in product listing between price and 'sold out' button (new thread)

Started by thannaree on 29 Aug 2012, 12:16 PM · Views: 1,445

Results 1 to 14 of 14
29 Aug 2012, 12:16 PM
#1
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Gap in product listing between price and 'sold out' button (new thread)

I'd like to remove the gap in product listing between price and the 'sold out' button. See a link (1st product 3rd row):

http://goo.gl/53ZK6

I have been looking in the stylesheet and product_listing files but could not find a solution.

I am using ZC version 1.5 and have the Column Grid Layout add-on installed. I have re-installed the add-on as indicated on this post below ... but that didn't remove the gap.

http://www.zen-cart.com/showthread.php?103991-Gap-in-product-listing-between-price-and-sold-out-button&p=589914#post589914

Could someone please help?

3 Sep 2012, 2:03 PM
#2
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: Gap in product listing between price and 'sold out' button (new thread)

Okay, I've been trying for some time and am aware it's quite difficult. Would you recommend me hiring someone to fix that gap?

3 Sep 2012, 4:22 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,139
Plugin Contributions:
56

Re: Gap in product listing between price and 'sold out' button (new thread)

Try adding the following to the bottom of /includes/templates/premium8a/css/stylesheet.css:

.productPriceList+br {display: none;}

5 Sep 2012, 11:11 AM
#4
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: Gap in product listing between price and 'sold out' button (new thread)

lat9:

Try adding the following to the bottom of /includes/templates/premium8a/css/stylesheet.css:

.productPriceList+br {display: none;}

Thanks so much for your reply. I have tried this and .prodListPrice+br {display: none;} but to no avail.

I've also tried to get rid of the <br /> as indicated on that post but to no avail too.

http://www.zen-cart.com/showthread.php?156567-product-listing-page-problem-decreasing-spacing&p=892917#post892917

... still searching.

5 Sep 2012, 11:47 AM
#5
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Gap in product listing between price and 'sold out' button (new thread)

Use the developers tool kit in your admin back end (admin/tools/developers tool kit) to search for .prodListPrice to see in which file /s it is.

Also try lat9's suggestion with .prodListPrice instead of .productPriceList like
.prodListPrice+br {display: none;}

5 Sep 2012, 11:59 AM
#6
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: Gap in product listing between price and 'sold out' button (new thread)

keneso:

Use the developers tool kit in your admin back end (admin/tools/developers tool kit) to search for .prodListPrice to see in which file /s it is.

Also try lat9's suggestion with .prodListPrice instead of .productPriceList like
.prodListPrice+br {display: none;}

Thanks much keneso.

I've tried .prodListPrice+br {display: none;} and also removed the <br /> in /includes/modules/custom-template/product_listing.php

... but the gap is still there.

5 Sep 2012, 12:25 PM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,139
Plugin Contributions:
56

Re: Gap in product listing between price and 'sold out' button (new thread)

OK, I think I've got it (and spelled it right ...) this time:

.prodListPrice+a+br { display: none; }

5 Sep 2012, 12:47 PM
#8
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Gap in product listing between price and 'sold out' button (new thread)

.prodListPrice+a+br { display: none; }

I think s/he said s/he's proved it already.

In case I found a <br /> in
functions/functions_general.php
line 1149
which if I get it correctly is displaying before the "out of stock" image (button)

DISCLAIMER
I ain't coder, and might have misinterpreted; remove the <br /> and leave the ' '
Back-up, and try.

5 Sep 2012, 1:16 PM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,139
Plugin Contributions:
56

Re: Gap in product listing between price and 'sold out' button (new thread)

Please notice the change:

.prodListPrice+a+br { display: none; } 
5 Sep 2012, 2:21 PM
#11
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: Gap in product listing between price and 'sold out' button (new thread)

You guys are awesome!

removing <br /> line 1149 in functions/functions_general.php

or

adding .prodListPrice+a+br { display: none; } in stylesheet

... both work.

But what solution is best to use?

5 Sep 2012, 2:27 PM
#12
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,139
Plugin Contributions:
56

Re: Gap in product listing between price and 'sold out' button (new thread)

The CSS approach is an override that does not modify core files, while the functions_general.php approach does a core file modification. I believe that the CSS approach is the easier one to "carry forward" on an upgrade ...

6 Sep 2012, 6:08 AM
#13
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: Gap in product listing between price and 'sold out' button (new thread)

Okay I'll go with the css approach. Thanks so much!

6 Sep 2012, 10:41 AM
#14
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Gap in product listing between price and 'sold out' button (new thread)

Good choice, I would have done the same too, I wouldn't even have suggested the function edit if I had been more careful in reading lat9's solution.