コード例 #1
0
    ?>
					</div>
					<?php 
    /** the custom meta HTML and loop ends here */
    ?>
					
					
					<form class='product_form' enctype="multipart/form-data" action="<?php 
    echo wpsc_this_page_url();
    ?>
" method="post" name="1" id="product_<?php 
    echo wpsc_the_product_id();
    ?>
">
					<?php 
    if (wpsc_product_has_personal_text()) {
        ?>
						<div class='custom_text'>
							<h4><?php 
        echo __('Personalize your product', 'wpsc');
        ?>
</h4>
							<?php 
        echo __('Complete this form to include a personalized message with your purchase.', 'wpsc');
        ?>
<br />
							<input type='text' name='custom_text' value=''  />
						</div>
					<?php 
    }
    ?>
コード例 #2
0
					<?php /** the custom meta HTML and loop */ ?>
					<div class="custom_meta">
						<?php while (wpsc_have_custom_meta()) : wpsc_the_custom_meta(); 	
								if (stripos(wpsc_custom_meta_name(),'g:') !== FALSE){
									continue;
								}
							?>
							<strong><?php echo wpsc_custom_meta_name(); ?>: </strong><?php echo wpsc_custom_meta_value(); ?><br />
						<?php endwhile; ?>
					</div>
					<?php /** the custom meta HTML and loop ends here */?>
					
					
					<form class='product_form' enctype="multipart/form-data" action="<?php echo wpsc_this_page_url(); ?>" method="post" name="1" id="product_<?php echo wpsc_the_product_id(); ?>">
					<?php if(wpsc_product_has_personal_text()) : ?>
						<div class='custom_text'>
							<h4><?php echo __('Personalize your product', 'wpsc'); ?></h4>
							<?php echo __('Complete this form to include a personalized message with your purchase.', 'wpsc'); ?><br />
							<input type='text' name='custom_text' value=''  />
						</div>
					<?php endif; ?>
					
					<?php if(wpsc_product_has_supplied_file()) : ?>
						<div class='custom_file'>
							<h4><?php echo __('Upload a File', 'wpsc'); ?></h4>
							<?php echo __('Select a file from your computer to include with this purchase.  ', 'wpsc'); ?><br />
							<input type='file' name='custom_file' value=''  />
						</div>
					<?php endif; ?>