enrolled
4 years ago
add-to-cart-edd.php
5 years ago
add-to-cart-woocommerce.php
4 years ago
add-to-cart.php
4 years ago
closed-enrollment.php
5 years ago
complete_form.php
5 years ago
continue-lesson.php
4 years ago
course-benefits.php
4 years ago
course-content.php
4 years ago
course-enroll-box.php
5 years ago
course-enrolled-box.php
4 years ago
course-requirements.php
4 years ago
course-target-audience.php
4 years ago
course-topics.php
4 years ago
instructors.php
4 years ago
lead-info.php
4 years ago
login.php
4 years ago
material-includes.php
4 years ago
q_and_a_turned_off.php
5 years ago
review-form.php
4 years ago
reviews.php
4 years ago
social_share.php
4 years ago
tags.php
4 years ago
wc-price-html.php
4 years ago
add-to-cart-edd.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package TutorLMS/Templates |
| 4 | * @version 1.4.3 |
| 5 | */ |
| 6 | |
| 7 | $product_id = tutor_utils()->get_course_product_id(); |
| 8 | $download = new EDD_Download( $product_id ); |
| 9 | |
| 10 | if ($download->ID) { |
| 11 | ?> |
| 12 | <div class="tutor-course-purchase-box"> |
| 13 | <?php |
| 14 | echo edd_get_purchase_link( array( 'download_id' => $download->ID ) ); |
| 15 | ?> |
| 16 | </div> |
| 17 | <?php |
| 18 | }else{ |
| 19 | ?> |
| 20 | <p class="tutor-alert-warning"> |
| 21 | <?php _e('Please make sure that your EDD product exists and valid for this course', 'tutor'); ?> |
| 22 | </p> |
| 23 | <?php |
| 24 | } |