Zen Cart Logo

Extra <br>

Views: 1,081

Results 1 to 12 of 12
24 Mar 2011, 5:22 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Extra <br>

I don't think it's an extra <br>. Your template has 10px of padding-bottom in the h3 rule. It also has -10px of margin-bottom in the the .itemTitle rule. Fiddling with those will let you move the price closer to the title.

24 Mar 2011, 5:35 AM
#3
dddmx3 avatar

dddmx3

Zen Follower

Join Date:
Jul 2010
Location:
Battle Ground, WA
Posts:
282
Plugin Contributions:
0

Re: Extra <br>

In firebug it in fact does show that there is a <br> :lookaroun

24 Mar 2011, 5:56 AM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Extra <br>

dd,
Just locate the .php file that operates this page..> includes/ modules/ pure_bw/ product_listing.php

24 Mar 2011, 2:11 PM
#5
janissaire avatar

janissaire

Zen Follower

Join Date:
Sep 2008
Location:
Toronto, Ontario, Canada
Posts:
474
Plugin Contributions:
0

Re: Extra <br>

when you fid the <br> delete it

24 Mar 2011, 10:12 PM
#6
dddmx3 avatar

dddmx3

Zen Follower

Join Date:
Jul 2010
Location:
Battle Ground, WA
Posts:
282
Plugin Contributions:
0

Re: Extra <br>

I've already looked there before I posted the question, there is a <br> after the price, but not before... weird... :yuck:

25 Mar 2011, 1:41 AM
#7
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Extra <br>

You have a <br> before and 2 <br>s after the price.

the first <br> is coming from the product name/description, so if you look in your includes/modules/YOUR_TEMPLATE/product_listing.php file

look for:```
case 'PRODUCT_LIST_NAME':


within the code you will see somthing that looks like this:

en_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div><br />'


remove that <br>

hope this helps!
25 Mar 2011, 2:37 AM
#8
dddmx3 avatar

dddmx3

Zen Follower

Join Date:
Jul 2010
Location:
Battle Ground, WA
Posts:
282
Plugin Contributions:
0

Re: Extra <br>

Funny thing is, there isnt a <br> there! :blink:

This is what I have (line 139)

$_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;

25 Mar 2011, 2:59 AM
#9
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Extra <br>

looking at you new products layout you do not have the description class/id which eliminates the gap between the name & price. I am assuming based on your original site you wont be using the description anyway.

try removing the .listingDescription div

26 Mar 2011, 3:47 AM
#10
dddmx3 avatar

dddmx3

Zen Follower

Join Date:
Jul 2010
Location:
Battle Ground, WA
Posts:
282
Plugin Contributions:
0

Re: Extra <br>

Changed up the code, now I've got:

I'm going to try to remove the description from the actual product and see what happens... (When I posted the product, In the description I put "No Description")

UPDATE: Removed description from actual product. It successfully removed the description but doesn't remove the space, strannggeee.

UPDATE: Removed some more code from product_listing.php, Now it removed the description on the category page, but left the space. Damn thing.

26 Mar 2011, 4:06 AM
#11
dddmx3 avatar

dddmx3

Zen Follower

Join Date:
Jul 2010
Location:
Battle Ground, WA
Posts:
282
Plugin Contributions:
0

Re: Extra <br>

Got it!!!! I just used dreamweaver's replace tool and replaced every <br /> with a space. Looks like it worked. I tried removing one at a time, to see which one makes the space, but none of them showed to be the "one"
So for some reson, the space only goes away once I remove all 7 <br /> 's

JUST PLAIN WEIRD!

:clap::clap::clap::clap::clap:

26 Mar 2011, 4:36 AM
#12
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Extra <br>

Thank you for posting your fix ...