Created
March 15, 2012 12:00
-
-
Save benhuson/2043878 to your computer and use it in GitHub Desktop.
WPEC normal email fields on wpsc-shopping_cart_page.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you remove the following code from the wpsc-shopping_cart_page.php template, I think it works normally: | |
Around line 358: | |
<?php | |
}elseif( $wpsc_checkout->checkout_item->unique_name == 'billingemail'){ ?> | |
<?php $email_markup = | |
"<div class='wpsc_email_address'> | |
<p class='" . wpsc_checkout_form_element_id() . "'> | |
<label class='wpsc_email_address' for='" . wpsc_checkout_form_element_id() . "'> | |
" . __('Enter your email address', 'wpsc') . " | |
</label> | |
<p class='wpsc_email_address_p'> | |
<img src='https://secure.gravatar.com/avatar/empty?s=60&d=mm' id='wpsc_checkout_gravatar' /> | |
" . wpsc_checkout_form_field(); | |
if(wpsc_the_checkout_item_error() != '') | |
$email_markup .= "<p class='validation-error'>" . wpsc_the_checkout_item_error() . "</p>"; | |
$email_markup .= "</div>"; | |
}else{ ?> | |
Around line 391: | |
<?php | |
$buffer_contents = ob_get_contents(); | |
ob_end_clean(); | |
if(isset($email_markup)) | |
echo $email_markup; | |
echo $buffer_contents; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment