Checkout fields have BR tags?

This topic is: resolved

This topic contains 6 replies, has 7 voices, and was last updated by  Michelle 1 year, 3 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
Author Posts
Author Posts
April 4, 2011 at 2:57 pm #161231

lilqhgal

I’m using a custom theme from Theme Forest and I don’t see this issue with the TwentyTen theme, so I know it’s a theme issue, but can anyone figure out where the
tag comes from? It’s not in the html. Here’s a screen shot:
http://dl.dropbox.com/u/4036471/screenshots/screen70b61f.jpg

Thanks.

April 20, 2011 at 10:44 pm #161232

MetPlan2

I too am having this really annoying issue. I can not find a single place where it is adding these tags. Can anybody help?

I am using the latest wordpress and wp-ecommerce plugin.

May 6, 2011 at 11:08 am #161233

Lleo

I had this problem too, after poking around it seems a function generates the input/textarea/etc tags… I didn’t want to edit the core files so I used the following to fix it up abit…

$(document).ready(function() {
	$(".wpsc_checkout_forms input[type='text']").each( function() {
				this.value = ' ';
	});
});

Not exactly a great solution, but it’ll clean it up till it gets fixed :)

May 11, 2011 at 7:54 am #161234

Fred Evans

Lleo, Where did you put that snippet to remove the
tags?

Thanks

May 27, 2011 at 7:55 pm #161235

Stefano Viani

You can solve this, if you remove the linebreaks between the label-tags.

<td class='<?php echo wpsc_checkout_form_element_id(); ?>'>
     <label for='<?php echo wpsc_checkout_form_element_id(); ?>'><?php echo wpsc_checkout_form_name();?></label>
</td>
June 29, 2011 at 11:22 pm #161236

akarolis78
New Member

Has anyone found out how to fix this problem? I’ve scoured the code and cannot see how it is being created. I have other wp-ecommerce builds for other sites i’ve built but none of them have this issue.

February 16, 2012 at 12:23 pm #255332

Michelle
Resident Expert

Hi akarolis78,

I suspect you have
tags between your labels. WPEc uses some Javascript to populate the label values (First Name etc) into the checkout form fields.

Removing these tags as suggested by Stefano above should resolve this problem.

Thanks
Michelle

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Archives – How-To and Troubleshooting’ is closed to new topics and replies.