Support » Plugin: EDD Sale Price » No regular price at the button

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Damian,

    The current functionality is to have the Sale Price only on the download button. There is a JS issue with the display and this is because of a limitation in EDD’s filter for the button.

    To enable the code you can edit the file: edd-sale-price/includes/class-eddsp-sale-price.php

    On line 186 delete the line: return $args;

    Then the regular price will be shown like this:

    Hi there,

    Thank you so much, that works perfect!

    All the best,

    Plugin Author Jeroen Sormani


    As of the upcoming update (1.0.1), it will be possible to display both the regular price with a strikethrough, and the sale price in the button.

    This isn’t enabled by default as there will be a split second where someone might see the actual code “<s>$100</s> $90” instead of it being a strikethrough.

    One can enable this by setting the following code in your (child) themes functions.php
    add_filter( 'eddsp_display_regular_price_text_buy_button', '__return_true' );

    With it enabled, it will look like;

    Hope that helps, as there still isn’t a 100% solution for the strikethrough to render without seeing it.

    Cheers 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No regular price at the button’ is closed to new replies.