How To Remove Sale Price On Individual Products In Woocommerce

How to Remove Sale Price on Individual Products in WooCommerce (A Beginner’s Guide)

So, you’ve got a WooCommerce store and ran a fantastic sale. But now, some of those sale prices are lingering on individual products even though the sale is over. It’s a common issue, and luckily, it’s easily fixed! This guide will walk you through a few simple methods to remove the sale price from individual products in your WooCommerce store, even if you’re a complete newbie. We’ll avoid complex coding unless absolutely necessary and explain everything in plain English.

Think of it like this: You advertised “Red Shoes – 50% OFF for Black Friday!” Now Black Friday is over, and the “50% OFF” badge and lower price are still showing on the Red Shoes product page. That’s confusing for customers and can even lead to frustration when they expect the sale price!

Why Remove Sale Prices?

Before we dive in, let’s quickly touch on why removing these prices Check out this post: How To Set Up Memberships On Woocommerce With Subscription is so important:

    • Accurate Pricing: Showing the correct price is crucial for customer trust. No one wants to see a “sale” that isn’t actually a sale.
    • Brand Reputation: Inaccurate information can damage your brand’s credibility. Customers might think you’re being deceptive.
    • Effective Marketing: You want to create a sense of urgency during sales. If prices are always on “sale,” the promotion loses its impact.
    • Clear Communication: Presenting clear and up-to-date product information leads to a smoother shopping experience for your customers.

    Now, let’s get to the solutions!

    Method 1: Removing Sale Price Directly from the Product Edit Page

    This is the easiest and most common method and works best when you only need to adjust a few products.

    1. Navigate to Products: In your WordPress dashboard, go to Products -> All Products.

    2. Find the Product: Locate the product you want to edit. You can search for it by name.

    3. Edit the Product: Hover over the product and click Edit.

    4. General Tab: Scroll down to the Product data section, and make sure the “General” tab is selected.

    5. Adjust the Prices: You’ll see two price fields: Regular price and Sale price.

    • To remove the sale price, simply delete the value in the “Sale price” field. Leave it blank.
    • Make sure the Regular Price is correct! This is the price customers will now see.

    Example:

    * Before: Regular price: $100, Sale price: $75

    * After: Regular price: $100, Sale price: (empty)

    6. Update: Click the Update button in the top right corner of the page.

    That’s it! Visit the product page to confirm the sale price is gone.

    Method 2: Using Quick Edit for Multiple Products

    If you need to remove sale prices from a batch of products, the “Quick Edit” feature is a huge time-saver.

    1. Navigate to Products: As before, go to Products -> All Products.

    2. Locate Products: Find the products you want to adjust. You can use the search and filtering options to narrow down the list.

    3. Quick Edit: Hover over each product and click Quick Edit. A small box will appear below the product title.

    4. Adjust Prices: Similar to the edit page, you’ll see “Regular price” and “Sale price” fields.

    • Delete the value in the “Sale price” field for each product you are editing.
    • Ensure the Regular price is correct

    5. Update: Click the Update button within each product’s “Quick Edit” box.

    6. Repeat: Repeat steps 3-5 for all the products you want to update.

    The Quick Edit method is much faster than editing each product individually.

    Method 3: Using a Plugin (For More Advanced Bulk Editing)

    If you have a *large* number of products with sale prices to remove, or you need more advanced filtering options, a plugin might be the best solution. Several plugins offer bulk editing features, making this process significantly easier.

    Example Plugin: “WooCommerce Bulk Edit Products” (many alternatives exist).

    Here’s the general workflow (specific steps will vary depending on the plugin):

    1. Install and Activate the Plugin: Find a suitable plugin in the WordPress plugin repository (Plugins -> Add New) and install/activate it.

    2. Access the Bulk Editor: The plugin will usually add a new menu item or settings page within WooCommerce.

    3. Filter Products: Most plugins allow you to filter products by category, tag, price, or even those with active sale prices. This is crucial for targeting only the products you need to edit.

    4. Bulk Edit Sale Prices: The plugin will have an option to set the “Sale price” to blank or remove it entirely for all selected products.

    5. Apply Changes: Review your changes and apply them. The plugin will then update all the selected products in bulk.

    Important Considerations When Choosing a Plugin:

    • Reviews and Ratings: Check the plugin’s reviews and ratings before installing it.
    • Compatibility: Ensure the plugin is compatible with your version of WooCommerce and WordPress.
    • Features: Look for a plugin that offers the filtering and bulk editing features you need.
    • Support: Choose a plugin with good support in case you run into any issues.

    Method 4: Using Code (For Developers or Those Comfortable with Code)

    Warning: This method involves editing your theme’s `functions.php` file or using a code snippets plugin. Always back up your website before making code changes. Incorrect code can break your site.

    This method allows you to globally remove all sale prices, but it requires more technical knowledge. It’s not recommended for beginners unless you have guidance from someone experienced.

    Here’s an example snippet:

     add_filter( 'woocommerce_get_price_html', 'remove_sale_price_display', 10, 2 ); function remove_sale_price_display( $price_html, $product ) { 

    $regular_price = $product->get_regular_price();

    $sale_price = $product->get_sale_price();

    if ( $sale_price ) {

    $price_html = wc_price( $regular_price );

    }

    return $price_html;

    }

    Explanation:

    • `add_filter( ‘woocommerce_get_price_html’, ‘remove_sale_price_display’, 10, 2 );`: This line tells WordPress to use the function `remove_sale_price_display` to modify how the price is displayed on your website.
    • `$regular_price = $product->get_regular_price();`: This gets the regular price of the product.
    • `$sale_price = $product->get_sale_price();`: This gets the sale price of the product.
    • `if ( $sale_price ) { … }`: This checks if a sale price is set.
    • `$price_html = wc_price( $regular_price );`: If a sale price is set, this line replaces the entire price display with just the regular price.
    • `return $price_html;`: This returns the modified price display.

    How to Use the Code:

    1. Back Up Your Website: This is crucial!

    2. Edit `functions.php`: Locate your theme’s `functions.php` file (Appearance -> Theme Editor). OR use a code snippets plugin (recommended). A code snippets plugin allows you to add code without directly modifying your theme files, which is safer.

    3. Add the Code: Paste the code snippet at the end of the `functions.php` file (or in your code snippets plugin).

    4. Save Changes: Save the file (or activate the snippet).

    5. Clear Cache: Clear your website’s cache (if you’re using a caching plugin).

    Important Considerations:

    • This code removes the display of the sale price *globally*. It doesn’t actually remove the sale price from the product data, so if you later decide you want to use sale prices again, you’ll need to remove this code.
    • Always test code snippets in a staging environment before applying them to your live website.

    Troubleshooting

    • Cache Issues: If you’ve made changes and the sale price is still showing, clear your website’s cache and your browser’s cache. Caching plugins can sometimes store old versions of your pages.
    • Plugin Conflicts: If you’re using multiple WooCommerce plugins, there might be a conflict. Try temporarily deactivating other plugins to see if that resolves the issue.
    • Theme Customizations: Custom theme code might be overriding the default WooCommerce price display. Consult your theme documentation or developer for assistance.

Conclusion

Removing lingering sale prices is an important part of maintaining a professional and trustworthy WooCommerce store. By using one of the methods described above, you can ensure that your customers are always seeing accurate pricing and that your sales promotions have the impact they deserve! Remember to choose the method that best suits your technical skills and the number of products you need to adjust. Good luck!

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *