|
1
|
<?php |
|
2
|
// get product from initial state. |
|
3
|
$product = sc_get_product(); |
|
4
|
|
|
5
|
// make sure we have a product. |
|
6
|
if ( empty( $product->id ) || ! $product->has_multiple_prices ) { |
|
7
|
return ''; |
|
8
|
} |
|
9
|
|
|
10
|
$prices = $product->active_prices; |
|
11
|
|
|
12
|
return 'file:./view.php'; |
|
13
|
|