Add a wrapper class to the message

This commit is contained in:
Ryan Halliday 2025-08-06 17:35:19 +01:00
parent fff6fc7008
commit 5151d8d7eb

View file

@ -157,7 +157,7 @@ function som_repeat_purchase_disabled_message(){


if ( wc_customer_bought_product( wp_get_current_user()->user_email, get_current_user_id(), $product->get_id() ) && ($product->get_downloadable() == 'yes') ) { if ( wc_customer_bought_product( wp_get_current_user()->user_email, get_current_user_id(), $product->get_id() ) && ($product->get_downloadable() == 'yes') ) {
?> ?>
<div class="woocommerce"> <div class="woocommerce wc-nonpurchasable-message-wrapper">
<div class="woocommerce-info wc-nonpurchasable-message"> <div class="woocommerce-info wc-nonpurchasable-message">
<p> <p>
<strong>You've already purchased this product.</strong><br> <strong>You've already purchased this product.</strong><br>