• Resolved blueparrot87

    (@blueparrot87)


    Variable products do not show the original price when adding a discount. Only the discount % and the new price.

    For simple products it is showing.

    Does anyone know if this is a bug in woocommerce and/how I can solve this?

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Your theme or a plugin is causing that. Standard woocommerce doesn’t show the discount %.

    I tried it with a stock twentysixteen theme and I got the old price strike-thru followed by the sale price.

    Thread Starter blueparrot87

    (@blueparrot87)

    Thanks Brian! Can you confirm you tried with a variable product? It seems to work with the theme for simple product… I deactivated all plug-ins, so that cannot be it.

    Thanks!

    Yes, I tested it with a variable product.

    https://www.onsitewp.com/wp-content/uploads/variable-sale-price.png

    I installed storefront as a test. It gave me different colors and fonts but the same results. My only other guess is that you might have a child theme filtering the price output.

    Thread Starter blueparrot87

    (@blueparrot87)

    Brian,

    Apologize, might not have been clear enough. It is also showing on the product page itself after I select the variable (size). It is not showing on the shop pages, neither on the shopping cart, checkout etc.
    Here the difference:
    https://pasteboard.co/IVP7d3W.jpg
    https://pasteboard.co/IVP7AGT.jpg

    Thanks!

    Thread Starter blueparrot87

    (@blueparrot87)

    Brian,

    I have installed the storefront theme on my site and still the samen issue on the shop page:
    https://pasteboard.co/IWvGa7M.png

    I believe this is linked to woocommerce and variable products, as it is showing for simple products on the shop/category pages.

    As my entire shop will consistent of variable products it is important it shows accurately across the site.

    Thanks!

    Thread Starter blueparrot87

    (@blueparrot87)

    Hello Brian,

    Would you have any update on this threat and/or can you direct me to someone that can assist? Even storefront is not showing it on all places for variable products vs. showing it for simple products.
    – Product tab on dashboard
    – Main shop page
    – Shopping cart
    – Order confirmation email

    The only place storefront shows it is on the specific product page after you have selected your size (as per your screenshot)

    Thank you.

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there @blueparrot87!

    The behavior you describe is accurate with the WooCommerce plugin: for simple products, it displays the sale price with the original price crossed out next to it; for variable products it just shows the range of the lowest price and highest price (i.e. “$50 – $75”).

    Changing this would require the addition of some custom code. There is an article discussing how to do this, along with a code snippet, available here:
    https://elextensions.com/knowledge-base/display-strike-out-price-for-woocommerce-variable-products-code-snippet/

    I hope that helps! Have a wonderful day!

    Thread Starter blueparrot87

    (@blueparrot87)

    Hi Kelly,

    This worked for my shop pages, thank you so much!
    Strange that woocommerce doesn’t include it as I assume so many shops work with variable products.

    I see that this isn’t carried over to the cart page. Original price is not showing, where it is for a simple product. Any chance you know what to add in the code to have it apply to the cart page?

    Thanks!

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    I’m glad to hear that worked in your Shop!! : )

    As for the Cart page, I’m not seeing the same thing you describe. With WooCommerce and Storefront, I’m only seeing the sale prices (the prices that will be paid):

    Prices in Cart
    Link to image: https://d.pr/i/Udd9vn

    However, I see another snippet available here:
    https://jeroensormani.com/showing-sale-prices-cart-woocommerce/

    After adding that, I get the following in my Cart:

    Sale prices in Cart
    Link to image: https://d.pr/i/gc8ITm

    I hope that helps! Have a wonderful day!

    Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Original price of variable products’ is closed to new replies.