wpsc_product_external_link_text

Located in: product-template.php
Version Introduced: 3.8
Parameters Accepted: $product_id (default to null but will grab the id if used in the loop), $default_text (default value is “Buy Now”)

Description: This template tag is used to print the external link text of a product (the external link is created in the advanced product options) You don’t need to use this tag inside the product loop but if you don’t you must provide the product ID

Note: This function just returns the link text so to use this function you must use it with an echo to output the link text to the browser.

Code Example:
Used within the loop
[php] <?php while (wpsc_have_products()) : wpsc_the_product(); ?>
<input class="wpsc_buy_button" type="submit" value="<?php echo wpsc_product_external_link_text( wpsc_the_product_id(), __( ‘Buy Now’, ‘wpsc’ ) ); ?>" onclick="return gotoexternallink(‘<?php echo $action; ?>’, ‘<?php echo wpsc_product_external_link_target( wpsc_the_product_id() ); ?>’)">
[/php]