Skip to content

Commit

Permalink
added option for link to variable product
Browse files Browse the repository at this point in the history
  • Loading branch information
leglesslizard committed Aug 28, 2023
1 parent 448090c commit e2d37d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ function output_required_wcwl_elements(): void
if ( $product && \WooCommerce_Waitlist_Plugin::is_simple( $product ) ) {
echo wcwl_get_waitlist_for_archive( wc_get_product() );
}
// if ( $product && \WooCommerce_Waitlist_Plugin::is_variable( $product ) ) {
// $url = get_permalink( $product->get_id() );
// echo '<a href="' . $url . '"><button type="button" class="button">' . __( 'Join Waitlist', 'woocommerce-waitlist' ) . '</button></a>';
// }
}
}

0 comments on commit e2d37d4

Please sign in to comment.