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: http://cl.ly/image/0l2H2N1a1L3G

    Hi there,

    Thank you so much, that works perfect!

    All the best,
    Damian

    Plugin Author Jeroen Sormani

    (@sormano)

    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; http://cl.ly/image/2j0O2T0T0b2a

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

    Cheers 🙂
    Jeroen

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