• Resolved mehmoon

    (@mehmoon)


    Hi, I used your plugin, but I want to display the highest price of the variable as we sell used cars and want to show original price on the shop page. But when the buyer wants to reserve he can pay the reservation fee.

    I want to display the highest price. I tried editing the plugin but I dont know how to code. If anyone can help that would be great.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Fernando Tellado

    (@fernandot)

    Hola @mehmoon

    I haven’t tested it yet but you’ll could try to change these lines:

    if ( $min_price == $max_price ) {
    		$display_price = wc_price( $product->$get_price_method( 1, $min_price ) );
    	} else {
    		$from          = wc_price( $product->$get_price_method( 1, $min_price ) );

    To these ones:

    if ( $min_price == $max_price ) {
    		$display_price = wc_price( $product->$get_price_method( 1, $max_price ) );
    	} else {
    		$from          = wc_price( $product->$get_price_method( 1, $max_price ) );
    Thread Starter mehmoon

    (@mehmoon)

    Thank you for replying @fernandot

    I tried it but it didnt work out

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Highest Price’ is closed to new replies.