wpsc_product_addons

Located in: wpsc-products_page.php, wpsc-Single_product.php

Functions that call this hook: none this is the product page template files
Arguments Accepted: $product_id
Version Introduced: 3.8

Description: This action is triggered after the product description it can be used to add additional information to your product.

note: This hook is only called on the single product pages and the default product page (not list or grid view)

Similar Hooks: wpsc_product_addon_before_descr – this is output before the product description.
wpsc_product_addon_after_descr – this is output after the product description.

Code in context:

wpsc-products_page.php
[php firstline=”96″ highlight=”102″]
<div class="productcol" style="margin-left:<?php echo $image_width + 20; ?>px;" >

<?php
do_action(‘wpsc_product_before_description’, wpsc_the_product_id(), $wp_query->post);
do_action(‘wpsc_product_addons’, wpsc_the_product_id());
?>

<div class="wpsc_description">
<?php echo wpsc_the_product_description(); ?>
</div><!–close wpsc_description–>

<?php if(wpsc_the_product_additional_description()) : ?>
<div class="additional_description_container">
[/php]

wpsc-single_products_page.php
[php firstline=”46″ highlight=”51″]
<div class="productcol">
<?php do_action(‘wpsc_product_before_description’, wpsc_the_product_id(), $wp_query->post); ?>
<div class="product_description">
<?php echo wpsc_the_product_description(); ?>
</div><!–close product_description –>
<?php do_action( ‘wpsc_product_addons’, wpsc_the_product_id() ); ?>
<?php if ( wpsc_the_product_additional_description() ) : ?>
<div class="single_additional_description">
<p><?php echo wpsc_the_product_additional_description(); ?></p>
</div><!–close single_additional_description–>
<?php endif; ?>
<?php do_action( ‘wpsc_product_addon_after_descr’, wpsc_the_product_id() ); ?>
<?php

[/php]