• Resolved dtonnaire

    (@dtonnaire)


    Hi,

    I’m triyn to add a display:none; style so the variation price Woocommerce is displaying in products archive.

    It’s ok for display:none the second price with a nth:child css selector but before the price i have a dash which have no any class or attribute, and that i can’t select in CSS …

    Do you have a solution ? (see below, after the firest woocommerce-Price-amount class – followed by amount”>8,80

    Here is the code :

    <li class="product type-product post-440 status-publish first instock product_cat-les-blancs has-post-thumbnail taxable shipping-taxable purchasable product-type-variable has-default-attributes">
    	<a  class="woocommerce-LoopProduct-link woocommerce-loop-product__link"><img width="300" height="300" src="https://www.domaine-croixdarbussin.com/wp-content/uploads/2022/07/DSC00069-3-300x300.jpg" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt="" loading="lazy"><h2 class="woocommerce-loop-product__title">Macon La Roche Vineuse</h2>
    	<span class="price"><span class="woocommerce-Price-amount amount">8,80&nbsp;<span class="woocommerce-Price-currencySymbol">€</span></span> – <span class="woocommerce-Price-amount amount">18,80&nbsp;<span class="woocommerce-Price-currencySymbol">€</span></span> <small class="woocommerce-price-suffix">TTC</small></span>
    </a><div class="woocommerce-loop-product__buttons"><a  data-quantity="1" class="button product_type_variable add_to_cart_button" data-product_id="440" data-product_sku="ROCHVI" aria-label="Sélectionner les options pour “Macon La Roche Vineuse”" rel="nofollow">Choix des options</a></div></li>
    
    Thanks !
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘No displaying variation price in Woocommerce product archive’ is closed to new replies.