In wordpress WooCommerce, when i add a Variation Product, variation is set only by Two colors,
Starwhite = 9000 Ivory = 15000
On the Single Product page, I get to see price mentioned twice, as shown in screenshots.
I want to retain the price defined in variation. Remove the other one.
The price which is not required is showing up under the div below
<div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
<p class="price"><span class="amount">Rs.9,000.00</span>–<span class="amount">Rs.15,000.00</span></p>
<meta itemprop="price" content="9000" style="
/* display: none; */
">
<meta itemprop="priceCurrency" content="INR">
<link itemprop="availability" href="http://schema.org/InStock">
</div>
But when i mark it has display none or visibility hidden, the price from variation is also gone..
1st Color Variation settings:
2nd Color Variation settings:
Also, there are times when i use Simple Product on the website, so any changes suggested should not impact simple product settings.
If i have to make any changes in the code, what should be the code and under which php files should it be changes.