wpsc_add_advanced_options

Located in: display-items-functions.php

Functions that call this hook: wpsc_product_advanced_forms()
Arguments Accepted: $post->ID (this is the product id)
Version Introduced: 3.8

Description: Use this hook to add other advanced product options into the advanced options meta box on the add / edit product form. This hook is located just before the comment options.

Code in context:
[php firstline=”709″ highlight=”719″]
<tr>
<td class=’itemfirstcol’ colspan=’2′>

<input type=’checkbox’ <?php echo $product_meta[‘google_prohibited’]; ?> name=’meta[_wpsc_product_metadata][google_prohibited]’ id=’add_google_prohibited’ /> <label for=’add_google_prohibited’>
<?php _e( ‘Prohibited <a href="http://checkout.google.com/support/sell/bin/answer.py?answer=75724">by Google?</a>’, ‘wpsc’ ); ?>
</label><br />
</td>
</tr>
<?php
}
do_action( ‘wpsc_add_advanced_options’, $post->ID );
?>
<tr>
<td class=’itemfirstcol’ colspan=’2′><br />
<strong><?php _e( ‘Enable Comments’, ‘wpsc’ ); ?>:</strong><br />
<select name=’meta[_wpsc_product_metadata][enable_comments]’>
<option value=” <?php echo ( ( isset( $product_meta[‘enable_comments’] ) && $product_meta[‘enable_comments’] == ” ) ? ‘selected’ : ” ); ?> ><?php _e( ‘Use Default’, ‘wpsc’ ); ?></option>
<option value=’1′ <?php echo ( ( isset( $product_meta[‘enable_comments’] ) && $product_meta[‘enable_comments’] == ‘1’ ) ? ‘selected’ : ” ); ?> ><?php _e( ‘Yes’, ‘wpsc’ ); ?></option>
<option value=’0′ <?php echo ( ( isset( $product_meta[‘enable_comments’] ) && $product_meta[‘enable_comments’] == ‘0’ ) ? ‘selected’ : ” ); ?> ><?php _e( ‘No’, ‘wpsc’ ); ?></option>
</select>
<br/><?php _e( ‘Allow users to comment on this Product.’, ‘wpsc’ ); ?>
</td>
</tr>
</table>

[/php]