• Resolved Fody

    (@fodisery)


    Hi is there anyway to add multiple price? I’m creating a rental property site, so the price can be daily, monthly and yearly. I know i can use custom fields but the display position will not be in price area. Every classified plugin support this, I dont know whter it possible in Wpadverts?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    the Currencies extension will support it, in the current version you would need to add this as a custom field and then change how the price is displayed with the adverts_get_the_price filter

    add_filter( "adverts_get_the_price", function( $formatted_price, $price, $post_id ) {
    $period = get_post_meta( $post_id, "period_type", true );
    return sprintf( "%s a %s", $formatted_price, $period );
    }, 10, 3 );

    If you will have a field named period_type with value “day” then the price will show as for example “$100 a day”.

    Thread Starter Fody

    (@fodisery)

    Its just have 1 price. Please see screenshot for what I mean by “Multiple price for 1 listing”

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    ohh we do not have such feature other than just adding an additional custom field where to user would enter a second price.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multiple Price’ is closed to new replies.