Support » Plugin: Responsive Mortgage Calculator » Display ACF field for Total amount

  • commback74

    (@commback74)


    Hi,
    Very nice plugin 🙂
    I have 2 questions :
    – I leave default values blank and the plugin default values allways come back.
    – I would like to insert an ACF request in Total amount field like that :
    $value = get_field( “prix” );
    or like that :
    <?php get_field(‘prix’); ?>
    but it does’nt work, is it possible ?
    Thanks a lot,
    Fred

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter commback74

    (@commback74)

    my shortcode is : [rmc total_amount_value=”<?php $value = get_field( “prix” ); ?>”]
    🙂

    Thread Starter commback74

    (@commback74)

    Me again 🙂
    I’ve also tried to change default.php file like that :

    <?php
    /**
     * This file maintains the default settings for the plugin.
     *
     * @package Lidd's Mortgage Calculator
     * @since 2.0.0
     */
    
    return array(
        
        // Calculator settings
    	'compounding_period'        => 12,
    	'currency'                  => '€',
    	'currency_code'             => '978',
    	'currency_format'           => '{currency}{amount} {code}',
        'number_format'             => 6,
        'minimum_total_amount'      => 0,
    	'down_payment_visible'      => 1,
    	'total_amount_value'        => '<?php $value = get_field( "prix" ); ?>',
    	'down_payment_value'        => null,
    	'interest_rate_value'       => null,
    	'amortization_period_value' => null,
        'zero_percent_interest'     => 0,
        'amortization_period_units' => 0,
        'payment_period'            => 12,
        
        // CSS
    	'theme'                     => 'light',
    	'select_style'              => 1,
    	'select_pointer'            => null,
    	'css_layout'                => 1,
        
        // Results
    	'popup '                    => 0,
    	'summary'                   => 1,
    	'summary_interest'          => 1,
    	'summary_downpayment'       => 1,
        
        // Labels
    	'total_amount_label'        => __( 'Montant total', 'responsive-mortgage-calculator' ),
    	'down_payment_label'        => __( 'Apport', 'responsive-mortgage-calculator' ),
    	'interest_rate_label'       => __( 'Taux', 'responsive-mortgage-calculator' ),
    	'amortization_period_label' => __( 'Durée', 'responsive-mortgage-calculator' ),
    	'payment_period_label'      => __( 'Fréquence des versements', 'responsive-mortgage-calculator' ),
    	'submit_label'              => __( 'Calculer mes mensualités', 'responsive-mortgage-calculator' ),
        
        // Classes
    	'total_amount_class'        => null,
    	'down_payment_class'        => null,
    	'interest_rate_class'       => null,
    	'amortization_period_class' => null,
    	'payment_period_class'      => null,
    	'submit_class'              => null,
    );

    It doesn’t work 🙁
    Thanks a lot,
    Fred

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display ACF field for Total amount’ is closed to new replies.