Woocommerce – sale price and regular price Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Woocommerce – sale price and regular price This topic has 7 replies, 2 voices, and was last updated 3 years ago by Ernest Marcinko. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts June 1, 2023 at 5:36 am #42880 PresentiseParticipant Hi WPDreams, I would like to format the prices in the quick search box for woocommerce. But I cant seem to figure out how to do the following: Normal price should always show 4,95 But when the product has a sale price it show show like this: 4,95 (with a line through it) 3,49 Any idea how I can make that happen? Cheers, Colin June 1, 2023 at 4:21 pm #42903 Ernest MarcinkoKeymaster Hi Colin, Sure! Try using the {_price_html} pesudo variable. If still no line-through, then use this: <div class="product"><p class="price">{_price_html}</p></div> June 1, 2023 at 4:46 pm #42906 PresentiseParticipant Legend! Thanks, that worked like a charm. Last question, would it be possible to show “out of stock” only when a product is out of stock? June 1, 2023 at 5:58 pm #42909 Ernest MarcinkoKeymaster Neat! The stock status is very likely doable too. For that use this pseudo code in the advanced title field: [<div class="{_stock_status}">Out of stock</div>] ..and you will also need this custom CSS: .asp_r .instock { display: none; } .asp_r .outofstock { color: #ff2a13; } June 3, 2023 at 3:00 am #42928 PresentiseParticipant Thank you so much. That worked perfectly. Top notch support June 3, 2023 at 11:01 am #42930 Ernest MarcinkoKeymaster You cannot access this content. June 3, 2023 at 2:55 pm #42933 PresentiseParticipant Check, thanks again. I’ll drop a rating and review on the plugin and stellar support, right now. Cheers, Colin June 3, 2023 at 2:58 pm #42934 Ernest MarcinkoKeymaster You cannot access this content. Author Posts Viewing 8 posts - 1 through 8 (of 8 total) The topic ‘Woocommerce – sale price and regular price’ is closed to new replies.