Support » Plugin: Easy Digital Downloads » [Plugin: Easy Digital Downloads] Reverse the order of songs listed?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    Are you comfortable with a tiny bit of PHP? I can give you a quick method for doing it.

    Yes, I think I can handle a tiny bit of php. It would be nice if you could teach me how to do it 🙂 Thanks!

    Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    Can you update to the latest version (I pushed it out 5 minutes ago)? I added an update that will make reversing the order much simpler than before.

    Updated to the new version! Looked around but couldn’t find that option. I’m sorry. Could you point it out to me? I’m not the brightest cookie!

    Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    It’s not a visual option, just an option in the code. Place the following into your theme’s functions.php or a custom plugin:

    function pw_edd_reverse_cart( $contents ) {
    	return array_reverse( $contents );
    }
    add_filter('edd_cart_contents', 'pw_edd_reverse_cart');

    Added the snippet to the functions.php file for my theme but not seeing the change.
    http://www.billcurreri.com/purchase/

    (Brother is supposed to be shown first).

    Am I doing something wrong?

    Plugin Author Pippin Williamson

    (@mordauk)

    Pippin's Plugins and Plugin Reviewer

    Ohhh, sorry, we are talking about different things.

    I thought you meant you wanted to reverse the order of items in the shopping cart, but you’re referring to changing the order of the downloads grid.

    If you go and install the Post Types Order, you will be able to completely control the order / position of each download.

    Sweet. Perfect! Thank you, and sorry for the misunderstanding!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Easy Digital Downloads] Reverse the order of songs listed?’ is closed to new replies.