Skip to content

Instantly share code, notes, and snippets.

@benhuson
Created March 15, 2012 12:00
Show Gist options
  • Save benhuson/2043878 to your computer and use it in GitHub Desktop.
Save benhuson/2043878 to your computer and use it in GitHub Desktop.
WPEC normal email fields on wpsc-shopping_cart_page.php
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&amp;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