wpsc_product_external_link

Located in: product-template.php
Version Introduced: 3.8

Description: This template tag is used to print the external link to a product (this 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 so to use this function you must use it with an echo to output the link to the browser.

Code Example:
Used within the loop
[php] <?php while (wpsc_have_products()) : wpsc_the_product(); ?>
$action = wpsc_product_external_link(wpsc_the_product_id()); ?>
[/php]
Used outside the loop – where 12 is the product ID
[php]
$action = wpsc_product_external_link(12); ?>[/php]