• Resolved misticjeff

    (@misticjeff)


    In the Admin Listing Details screen (as well as in the User Edit Listing area) you are asked for the Price of the item. The issue I’m having is that I cannot make an item FREE.

    <label for="acadp_general_settings[has_price]"><input type="checkbox" class="checkbox" id="acadp_general_settings[has_price]" name="acadp_general_settings[has_price]" value="1" checked="checked">Allow users to enter price amount for their listings</label>

    I have a user who’s dog just had puppies and they want the display on the all listings page to show the word ‘FREE’ where you would normally see price (see image). However, if you enter the word FREE in the price area of the form, once published it turns to 0.00 and is NOT displayed to the public.

    I’ve tried many variations to this code and added a JS script to try and get it to display the word FREE if input but to no avail. Any help would be magical.

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

    (@pluginsware)

    Hi,

    Sorry, currently there is no option to add FREE word. But, we will take note of this and add it in the future.

    Thanks

    Thread Starter misticjeff

    (@misticjeff)

    @pluginsware

    And any suggestion on where to place additional CSS to make this happen??

    Thread Starter misticjeff

    (@misticjeff)

    Everyone’s mileage may vary and it does require a file edit, but if you look in this file: acadp-public-listings-list-display.php

    for the following code:

    <?php if ( $can_show_price && isset( $post_meta['price'] ) && $post_meta['price'][0] > 0 ) : ?>
                        <div class="col-md-3 text-right acadp-price-block">
                            <?php
                            // price
                            $price = acadp_format_amount( $post_meta['price'][0] );						
                            echo '<p class="lead acadp-no-margin">' . esc_html( acadp_currency_filter( $price ) ) . '</p>';
                            ?>
                        </div>
                    <?php endif; ?>
                </div>

    and replace with:

    <?php 
    if ( $can_show_price && isset( $post_meta['price'] ) ) : 
        $price = $post_meta['price'][0];
        ?>
        <div class="col-md-3 text-right acadp-price-block">
            <?php
            if ( $price > 0 ) {
                // price
                $formatted_price = acadp_format_amount( $price );						
                echo '<p class="lead acadp-no-margin">' . esc_html( acadp_currency_filter( $formatted_price ) ) . '</p>';
            } else {
                echo '<p class="lead acadp-no-margin">FREE</p>';
            }
            ?>
        </div>
    <?php endif; ?>
    </div>

    The word ‘FREE’ will show up where normally the price would be displayed (see photo in first post).

    Please as always backup your site and files prior to attempting any file edits.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Admin Listing Details’ is closed to new replies.