WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Price rounding

[Resolved] Price rounding

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author WP Lab

    @wp-lab

    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

    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.

    Plugin Author WP Lab

    @wp-lab

    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

    Hello

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

    Thanks
    Jerome

    Plugin Author WP Lab

    @wp-lab

    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

    Hi Matt,

    Thanks, it works perfectly!!

    Jerome

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Price rounding’ is closed to new replies.