wpsc_this_page_url

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

Description: This template tag is used on out the url of the current page – you would mostly use this within your forms as the action when checking for an external link (advanced product option)

Code Example:
[php]
<?php if(wpsc_product_external_link(wpsc_the_product_id()) != ”) : ?>
<?php $action = wpsc_product_external_link(wpsc_the_product_id()); ?>
<?php else: ?>
<?php $action = wpsc_this_page_url(); ?>
<?php endif; ?>

[/php]