Display Product Price WooCommerce with Product Addons Select Box
<p>Just wondering if anyone can help me here.
Using Woocommerce Product Add-Ons plugin, is there a way to display the product price in the drop down menu? So if I use product add-ons to create a select box option on a product, is there a way to display the product price inside the select box next to the add-on price that is already displayed?</p>

<p>Tried everything but struggling on this. Here's the code to the select.php im trying to edit.</p>

<pre><code>    &lt;?php
$loop = 0;
$current_value = isset( $_POST['addon-' . sanitize_title( $addon['field-name'] ) ] ) ? wc_clean( $_POST[ 'addon-' . sanitize_title( $addon['field-name'] ) ] ) : '';
?&gt;
&lt;p class="form-row form-row-wide addon-wrap-&lt;?php echo sanitize_title( $addon['field-name'] ); ?&gt;"&gt;
    &lt;select class="addon addon-select" name="addon-&lt;?php echo sanitize_title( $addon['field-name'] ); ?&gt;"&gt;

        &lt;?php if ( ! isset( $addon['required'] ) ) : ?&gt;
            &lt;option value=""&gt;&lt;?php _e('None', 'woocommerce-product-addons'); ?&gt;&lt;/option&gt;
        &lt;?php else : ?&gt;
            &lt;!--&lt;option value=""&gt;&lt;?php _e('Select an option...', 'woocommerce-product-addons'); ?&gt;&lt;/option&gt;--&gt;
        &lt;?php endif; ?&gt;

        &lt;?php foreach ( $addon['options'] as $i =&gt; $option ) :
            $loop ++;
            $price = apply_filters( 'woocommerce_product_addons_option_price',
                $option['price'] &gt; 0 ? ' + ' . wc_price( get_product_addon_price_for_display( $option['price'] ) ) . '' : '',
                $option,
                $i,
                'select'
            );
            ?&gt;
            &lt;option data-raw-price="&lt;?php echo esc_attr( $option['price'] ); ?&gt;" data-price="&lt;?php echo get_product_addon_price_for_display( $option['price'] ); ?&gt;" value="&lt;?php echo sanitize_title( $option['label'] ) . '-' . $loop; ?&gt;" &lt;?php selected( $current_value, sanitize_title( $option['label'] ) . '-' . $loop ); ?&gt;&gt;&lt;?php echo wptexturize( $option['label'] ) . $price ?&gt;&lt;/option&gt;
        &lt;?php endforeach; ?&gt;

    &lt;/select&gt;
&lt;/p&gt;
</code></pre>

<p>So I need to implement this code</p>

<pre><code>&lt;?php echo balanceTags($product-&gt;get_price_html()); ?&gt;
</code></pre>

<p>Somewhere in the code posted above.</p>

<p>Thanks!</p>