WordPress.org

Ready to get started?Download WordPress

Forums

WP-Lister for eBay
[resolved] Price rounding (7 posts)

  1. eggpie
    Member
    Posted 10 months ago #

    Can I round prices when I upload to ebay? Using +10% is easy, but it produces prices that look like $19.80. Is it possible to round those to $19.50, or $20?

    http://wordpress.org/plugins/wp-lister-for-ebay/

  2. WP Lab
    Member
    Plugin Author

    Posted 10 months ago #

    The next update to WP-Lister 1.3.1 will implement a filter for that purpose so you can do something like this in your functions.php:

    add_filter( "wplister_ebay_price", "my_custom_rounding_function" );
    
    function my_custom_rounding_function( $price ) {
        $price = round( $price ); // or whatever you want to do...
        return $price;
    }

    kind regards,

    Matt

  3. eggpie
    Member
    Posted 10 months ago #

    Thanks matt. That would be amazing.

    Apparently I can't enter individual Buy Now prices that are higher than the regular WooCommerce sale prices either? I'm just looking for a smooth way to list my eBay items for more than they sell on my regular site.

  4. WP Lab
    Member
    Plugin Author

    Posted 10 months ago #

    Sorry, but what exactly do you mean by "apparently"?

    Is there any error message returned from eBay, does WP-Lister fail to store the values you enter - or how exactly does this issue present itself?

    I need to be able to reproduce any issues on my testing site - but the quickest way to fix such issues is usually to create an account on your site and send the login details to support at wplab dot com along with a link to an example product.

    Btw, I would prefer if you could submit new issues as new forum posts. Ideally, each post on the forum should have a single topic only to make it easier for other users to find what they are looking for - and for me as well as I can mark a topic as resolved when the original issue does have been fixed.

    kind regards,

    Matt

  5. besangez
    Member
    Posted 2 weeks ago #

    Hello

    Is the the filter wplister_ebay_price now available? Is there any documentation regarding how to implement it?

    Thanks
    Jerome

  6. WP Lab
    Member
    Plugin Author

    Posted 2 weeks ago #

    Hi Jerome,

    sure, the hook was implemented in 1.3.1 as promised - about 9 months ago ;-)

    I just added it to the (incomplete) list of hooks and filters for WP-Lister: http://www.wplab.com/plugins/wp-lister/api/

    But there isn't more documentation than what I posted 9 months ago (above) - which will round all prices to whole numbers ($20 in your example).

    If you want something more advanced, you can use your own PHP code - or tell me exactly what you expect it to do.

    kind regards,

    Matt

  7. besangez
    Member
    Posted 2 weeks ago #

    Hi Matt,

    Thanks, it works perfectly!!

    Jerome

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.