• Resolved bfchris

    (@bfchris)


    Love this plug! It’s helped me upgrade an old classified system for my customer.
    Question..Is it possible to have the listing “prices” in either a dropdown or collapsible box perhaps? I have to have 52 different variants in price, and it would just create a super long form. Ideas? I’m using the PayPal module for sales.

    https://pasteboard.co/GCSZ0hh.png

    Chris

    • This topic was modified 7 years, 7 months ago by bfchris.
    • This topic was modified 7 years, 7 months ago by bfchris.
    • This topic was modified 7 years, 7 months ago by bfchris.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bfchris

    (@bfchris)

    Ideally, it’d be cool to have it work how the “category” drop down works. Is this possible?

    Chris

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, the easiest way to do that is to convert the pricings list to scrollable element, you can do that by adding the code below in wp-admin / Appearance / Customize / Additional CSS panel

    
    .adverts-pricings-list {
        overflow-y: scroll;
        max-height: 150px;
    }
    

    Converting it to dropdown is possible as well, but this will require quite a lot of custom programming and is beyond the free support offered here, sorry.

    Thread Starter bfchris

    (@bfchris)

    Greg:

    Big Thanks! That suits my needs and makes it look much better.

    Another question: It appears that the pricing fields are listed in descending order newest>oldest, how can I reverse that, so the 1st pricing field I entered will appear in the top of the order?

    Chris

    Thread Starter bfchris

    (@bfchris)

    All sorted. Thanks Greg for your help. If anyone else wants to know how to adjust the pricing fields it’s as follows:

    Modify the array on line 283 of /wpadverts/addons/payments/payments.php to:

    $pricings = new WP_Query( array(
    ‘post_type’ => ‘adverts-pricing’,
    ‘post_status’ => ‘draft’,
    ‘orderby’ => ‘ID’,
    ‘order’ => ‘ASC’,
    ‘posts_per_page’=>-1,
    ) );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Drop Down for “Listing Information”?’ is closed to new replies.