<?php if(wpsc_gateway_internal_name() == 'noca'){ ?>
								<label><input type="radio" id='noca_gateway' value="<?php echo wpsc_gateway_internal_name();?>" <?php echo wpsc_gateway_is_checked(); ?> name="custom_gateway" class="custom_gateway"/><?php echo wpsc_gateway_name();?></label>
							<?php }else{ ?>
								<label><input type="radio" value="<?php echo wpsc_gateway_internal_name();?>" <?php echo wpsc_gateway_is_checked(); ?> name="custom_gateway" class="custom_gateway"/><?php echo wpsc_gateway_name();?></label>
							<?php } ?>

							
							<?php if(wpsc_gateway_form_fields()): ?> 
								<table class='<?php echo wpsc_gateway_form_field_style();?>'>
									<?php echo wpsc_gateway_form_fields();?> 
								</table>		
							<?php endif; ?>			
						</div>
					<?php endwhile; ?>
				<?php else: // otherwise, there is no choice, stick in a hidden form ?>
					<?php while (wpsc_have_gateways()) : wpsc_the_gateway(); ?>
						<input name='custom_gateway' value='<?php echo wpsc_gateway_internal_name();?>' type='hidden' />
						
							<?php if(wpsc_gateway_form_fields()): ?> 
								<table>
									<?php echo wpsc_gateway_form_fields();?> 
								</table>		
							<?php endif; ?>	
					<?php endwhile; ?>				
				<?php endif; ?>				
				
			</td>
		</tr>
		<?php if(get_option('terms_and_conditions') != '') : ?>
		<tr>
			<td colspan='2'>
								</table>		
							<?php 
            }
            ?>
			
						</div>
					<?php 
        }
        ?>
				<?php 
    } else {
        // otherwise, there is no choice, stick in a hidden form
        ?>
					<?php 
        while (wpsc_have_gateways()) {
            wpsc_the_gateway();
            ?>
						<input name='custom_gateway' value='<?php 
            echo wpsc_gateway_internal_name();
            ?>
' type='hidden' />
						
							<?php 
            if (wpsc_gateway_form_fields()) {
                ?>
 
								<table>
									<?php 
                echo wpsc_gateway_form_fields();
                ?>
 
Beispiel #3
0
function _wpsc_filter_merchant_v2_after_gateway_hidden_field()
{
    if (wpsc_have_gateways()) {
        wpsc_the_gateway();
        if (wpsc_gateway_form_fields()) {
            ?>
			<table class='wpsc_checkout_table <?php 
            echo wpsc_gateway_form_field_style();
            ?>
'>
				<?php 
            echo wpsc_gateway_form_fields();
            ?>
			</table>
		<?php 
        }
    }
}