Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi Anna,

    This plugin will only allow you to set a sale price on the downloads, there are no widgets included (nor shortcodes or anything for a page).

    Reason for this is because I think its just out of scope for the plugin. It should however be reasonably easy to create a custom loop if you have a bit of experience in creating themes/plugins (otherwise ask you theme developer ??

    Hope that answers your question, although it might not be what you were hoping for.

    Cheers,
    Jeroen

    Thread Starter Type Historian

    (@type-historian)

    Hi Jeroen,

    Thanks for trying to help. ‘Fraid I have zero hope of creating a custom loop…

    It’s disappointing that no such EDD plugin exists–it would be so handy for so many to feature products on sale!

    Thanks again, Anna

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi Anna,

    Yeah I thought that a Sale Price would also be very handy for tons of people, but the # of active installs aren’t really reflecting that..

    So here’s a thought I just had.. If you can assign a category or tag ‘Sale’ to the products in sale you can show them all on one page… like https://edd.dev/downloads/tag/sale/

    Maybe that works in your case?

    Cheers,
    Jeroen

    Thread Starter Type Historian

    (@type-historian)

    Hi again Jeroen,

    Sorry, the link above doesn’t work. Even so, I can try your idea.

    In the meantime, I discovered this (it wasn’t easy to find!):
    https://docs.easydigitaldownloads.com/article/223-downloaddiscounts

    I set up some discount codes and pasted the shortcode into the text editor. It didn’t work! I know this info should be in the main EDD support forum–just thought it might interest you for future reference.

    Thanks again for trying to help, Anna

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi Anna,

    Sorry for not being more clear, the link wasn’t suppose to work, it was just for show on how it would look like.

    Going from what I can see, that shortcode will only display a list of coupon codes, and not product that are in sale.

    I’ve went ahead and did put some custom code together… I don’t think its perfect, but it may help you along; https://gist.github.com/JeroenSormani/03c4d0e3d155de07369a
    (copy & paste to your themes functions.php)

    Hope that will help you a bit further.
    Cheers,
    Jeroen

    Thread Starter Type Historian

    (@type-historian)

    Hi Jeroen,

    WOW! I’m so impressed that you’re willing to take the time to help with my special problem.

    I’m still confused about the [download_discounts] shortcode. According to the description, it should do exactly what I want to do–if it worked:
    https://docs.easydigitaldownloads.com/article/223-downloaddiscounts

    The discount codes I set up did not mention coupons–only percentages or amounts. As you can see from the result, I chose a percentage:
    https://bazaar.typeheritage.com/bargains/
    ____

    I would show you a screenshot of the EDD discount working page if I could… The problem is that after adding the new code to my theme’s functions.php, all admin panels are blank–even after re-installing the original theme file from scratch and rebooting!

    Furthermore, the highly styled accordion menus have reverted to a default appearance.

    This is the edited functions.php file. I have rarely edited php files before, so maybe I made a mistake:
    https://dl.dropboxusercontent.com/u/78278455/Bazaar/Plugins/EDD/functions.php

    Theme=Suffusion 4.4.7/Child Theme Suffu-scion:
    https://aquoid.com/news/themes/suffusion/
    https://www.ads-software.com/themes/suffusion/

    Sorry for the bad news. What should I do now?

    Many thanks for your patience, Anna

    Thread Starter Type Historian

    (@type-historian)

    P.S.

    Accordion Menus. Besides reverting to default styling, some of the subordinate entries are listed under the wrong heading.

    I am SURE that before editing the functions.php file, I viewed the stats and updated some plugins for this site. So the admin interface was working then.

    Maybe one of the updates caused the problem? Maybe a conflict with the edited functions.php file?

    I could remember/tell you more if I could access the plugin admin interface…

    At this point, I’m grateful that this (demo) site is not yet “public.” One option is to ask the host (BlueHost) to restore it to the status before the problems began.

    What do you advise?

    Eeeeeeeeeeeeek, Anna

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi Anna,

    Re shortcode; From what I can tell it does the following “This short code will display a list of all active discounts …”, in EDD discounts are coupon codes and not discounted products. (which I don’t think is what you’re looking for?)

    —–
    Sorry to hear it didn’t work, I’ve not seen any errors with me so I think its an ‘parse’ error, meaning that there is probably a “?>” or “<?php” tag in the wrong position in your functions.php

    The white page is caused by an error, and if WP_DEBUG is not enabled it won’t show the error.

    Going from your uploaded functions.php I don’t see any specific error now, I do notice that the last line is missing (that adds the new shortcode). It shouldn’t cause an error because of that though.

    I recommend editing your functions.php via FTP, that way you can always revert your changes easily (I try to recommend this as much as possible, but sometimes forget to mention, sorry ?? )

    Jeroen

    Thread Starter Type Historian

    (@type-historian)

    Our posts “crossed in the mail”!

    The EDD [download_discounts] shortcode is NOT about coupons. Coupons are about “rewards” for *existing* customers’ *future* purchases. Discounts are about a percentage or amount price reduction for ANY customer during a certain time period. These parameters are handled by the EDD Discount Code interface.

    Two different plugins handle these two VERY different purchase incentives.

    How do I enable WP_DEBUG?
    What should I do with the information it may yield?

    Very confused, Anna

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi Anna,

    In the link in my previous comment you can find how to enable WP_DEBUG.
    When that is enabled you will see a error on the white screen when/if it shows up, and you should be able to read the line where it goes wrong.

    Let me know ??
    Jeroen

    Thread Starter Type Historian

    (@type-historian)

    Parse error: syntax error, unexpected ‘}’ in …./wp-content/plugins/easy-digital-downloads/includes/cart/template.php on line 260.

    Line 260 is only “}”!

    Does it make sense to you?

    Anna

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi Anna,

    Thats a strange error to get. Maybe you can re-upload Easy Digital Downloads to make sure there aren’t any files corrupted.

    Thanks,
    Jeroen

    Thread Starter Type Historian

    (@type-historian)

    Whew–what a relief!

    I re-installed EDD, and now the admin pages work again. Some of the styling errors disappeared too, and I could easily fix the rest. Thanks so much for rescuing me from this mess!

    I’m afraid to edit the theme’s functions.php again. Please let me know if you decide to develop a plugin that displays products currently on sale.

    In the meantime, I may experiment with your suggestion to flag them as a temporary EDD category or tag.

    Thanks again, Anna

    Plugin Author Jeroen Sormani

    (@sormano)

    Glad that worked, I guess it was indeed a corrupt file somehow..

    If you use a FTP program you can easily revert your changes if needed. The code itself should be good, I tested it locally and 99% of the code is the same as code that is in Easy Digital Downloads itself.

    I think I forgot to mention it earlier, but when that code is installed you can use the [sale_downloads] shortcode to display the products that are on sale.

    Anyway, either suggestion should work ??

    Cheers,
    Jeroen

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘All Downloads Currently on Sale?’ is closed to new replies.