Fix for BR tags showing up in checkout form

Home PageForumsHow-To and TroubleshootingFix for BR tags showing up in checkout form

This topic is: resolved

This topic has 5 voices, contains 5 replies, and was last updated by  superkat1 72 days ago.

Viewing 7 posts - 1 through 7 (of 7 total)
Author Posts
Author Posts
January 31, 2012 at 8:19 pm #252316

bbaskets
Contributor

I was having a problem where <br> tags where being generated as input names in my checkout forms, and it seems others were having this problem:

Here http://getshopped.org/forums/topic/checkout-fields-have-br-tags/ here http://shivawebs.wordpress.com/2011/07/15/checkout-fields-have-br-tags-ecommerce-plugin/ and here http://getshopped.org/forums/topic/tags-showing-in-checkout-form-3/

I found this bug was due to  a conflict between WP-ecommerce and the layout short-codes plugin found here: http://tutorials.mysitemyway.com/adding-column-layout-shortcodes-to-a-wordpress-theme/

Just disable that plugin to get WPEC to work properly. Hardcode the shortcodes into your themes function file to keep using the shortcodes.

February 3, 2012 at 12:41 pm #253069

thewebprincess
New Member

Brilliant – that solved my problem too, but the plugin we were using was Shortcodes Ultimate from http://gndev.info/shortcodes-ultimate/

Thanks for the heads up

February 16, 2012 at 12:31 pm #255334

no10design
New Member

A solution provided by Stefano Viani here: http://getshopped.org/forums/topic/checkout-fields-have-br-tags/ solved the problem perfectly for me.

Hope it works for you guys also :-D !

March 2, 2012 at 8:26 am #257653

miketidmore
Contributor

This solution doesnt work for me at all :http://getshopped.org/forums/topic/checkout-fields-have-br-tags/

I replaced the code in wpsc-shopping_cart_page.php with Stefano’s exmaple but no luck. I would very much appreciate some help with other ideas.

Thanks in advance

March 3, 2012 at 6:48 pm #257853

superkat1
New Member

My code looks exactly like Stafano’s example, am I missing something or not understanding his solution? I am using a ThemeForest template and have not added any shortcode plug-ins.
I also have a problem with the field name being visible for example,
First Name
is what shows up in the first name field on the checkout form. Like Mike I also need some other ideas. Any help would be greatly appreciated!
Thank you

March 6, 2012 at 1:06 am #258136

superkat1
New Member

This is the fix that finally worked for me!

In the wpsc-shopping_cart_page.php lines 364-366

replaced the with

and replaced with

March 6, 2012 at 1:11 am #258138

superkat1
New Member

Okay, that didn’t work to show you the code at all- forgive me. Both of these are where I found the answer and it worked perfectly.

http://getshopped.org/forums/topic/html-characters-in-checkout-form-fields/
http://getshopped.org/forums/topic/remove-br-tags-from-the-checkout-page-fields/

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

You must be logged in to reply to this topic.