WP E-Commerce currency helper
[resolved] Convert this to Easy Digital Downloads (12 posts)

  1. I've been meaning to build this exact same thing for my Easy Digital Downloads.

    Would you be interested in creating an EDD version?


  2. haet
    Plugin Author

    Posted 3 years ago #

    Hi Pippin,
    EDD seems quite popular, I think it would be useful to adapt wp-e-commerce-currency-helper to support it.
    Do you have a test system with a few products I can use for development?

  3. I don't have a public test system setup, but you can very easily set one up with a few products. The plugin only takes 5-10 minutes to setup with some basic products.

  4. haet
    Plugin Author

    Posted 3 years ago #

    I've created a first version here: http://edd.haet.at/
    But there is still (at least) one problem: I can't identify prices in the frontend.
    WP-E-Commerce wraps all prices in a span with class "pricedisplay". This is simple to identify with jQuery.
    Either a css class or a hook in the edd_price() function would be useful.
    Do you see another stable way to identify prices with jQuery?

  5. Nice!

    The price depends on the theme. By default the edd_price() function does not output a span around the price, as that is designed to be done by the theme.

    One of the big differences between EDD and WPEC is that WPEC outputs a ton of markup and styling; EDD outputs almost none in order to keep things lean, though I can see that possibly causing a problem here.

    Maybe I should wrap the price in edd_price() with a span tag so that you can target it. I don't see that causing any problems as edd_price() is specifically for getting a formatted price.

    The other option would be to simply output a currency select menu on the download details page that allows the user to select their local currency. Once you do that, simply refresh the page, set a query var, and then modify the output of edd_currency_filter().

  6. haet
    Plugin Author

    Posted 3 years ago #

    I'd still prefer the tooltip style because it fits every site design and doesn't affect the original price field. What do you think about two hooks or a filter in the edd_price() function? One before and one after the price output.
    This wont produce any unwanted output and my plugin (as well as some others) can modify or wrap the price output.

  7. I agree, the tool tip is best.

    I'll try and add in the hooks / filters this week that you can use them.

  8. haet
    Plugin Author

    Posted 3 years ago #

    I'll try to give you feedback next week, I was on holiday last two weeks.

  9. Great, sounds good. I look forward to it :)

  10. haet
    Plugin Author

    Posted 3 years ago #

    It works! I'll do some tests and will release the Plugin in a few days.

  11. Fantastic! Can't wait to see it!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP E-Commerce currency helper
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.