Welcome Guest, Not a member yet? Register   Sign In
misc_helper
#4

Not tested but try experimenting by removing the RETURN.
Code:
    static function display_price( $oprice, $user_no ) {
        if( !empty( $oprice ) ) {
            $prices = self::get_available_prices( $oprice, $user_no );

            echo '<strong>'.CURRENCY.number_format( $prices[ 'price' ], 2 ).'</strong>';

            echo '<br/><br/>';

            if( $prices[ 'charge_out' ] > 0 )
                echo 'Suggested selling price:<strong>'.CURRENCY.number_format( $prices[ 'charge_out' ], 2 ).'</strong><br/><br/>';

            //return $prices[ 'price' ];
        }

        echo '<strong>'.CURRENCY.number_format( 0, 2 ).'</strong>';

        return $oprice;
    }

or

Code:
    static function display_price( $oprice, $user_no ) {
        if( !empty( $oprice ) ) {
            $prices = self::get_available_prices( $oprice, $user_no );

            echo '<strong>'.CURRENCY.number_format( $prices[ 'price' ], 2 ).'</strong>';

            echo '<br/><br/>';

            if( $prices[ 'charge_out' ] > 0 )
                echo 'Suggested selling price:<strong>'.CURRENCY.number_format( $prices[ 'charge_out' ], 2 ).'</strong><br/><br/>';

            return $prices[ 'price' ];
        }

        echo '<strong>'.CURRENCY.number_format( 0, 2 ).'</strong>';

        //return $oprice;
    }

Try it.
It's not easy to debug the codes without seeing the actual live result.
But let me know the output.
No SEO spam
Reply


Messages In This Thread
misc_helper - by malbe - 02-24-2016, 06:42 AM
RE: misc_helper - by malbe - 02-25-2016, 02:26 AM
RE: misc_helper - by Narf - 02-25-2016, 02:43 AM
RE: misc_helper - by solidcodes - 02-25-2016, 03:09 AM
RE: misc_helper - by solidcodes - 02-25-2016, 03:22 AM
RE: misc_helper - by malbe - 02-25-2016, 03:58 AM
RE: misc_helper - by Diederik - 02-25-2016, 04:33 AM
RE: misc_helper - by malbe - 02-25-2016, 04:48 AM
RE: misc_helper - by solidcodes - 02-25-2016, 05:11 AM
RE: misc_helper - by Diederik - 02-25-2016, 05:38 AM
RE: misc_helper - by solidcodes - 02-25-2016, 06:09 AM
RE: misc_helper - by malbe - 02-26-2016, 08:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB