• Resolved alex46

    (@alex46)


    I edit Payment info and create two more options for ads pay. When i go to create a new ad and scroll to listing information only show the last pricing i introduce.
    I try to put various values and names in separator Pricing and don’t work, in options in default pricing only show the last entry in pricing.

    Can anyone help me please?

    regards.

    https://www.ads-software.com/plugins/wpadverts/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    I am not sure can you paste here your pricings configuration and link to Create Ad page?

    Thread Starter alex46

    (@alex46)

    It’s a excert in payments.php :

    // Exit if accessed directly
    if ( ! defined( 'ABSPATH' ) ) exit;
    
    global $adverts_namespace;
    
    $adverts_namespace['payments'] = array(
        'option_name' => 'adext_payments_config',
        'default' => array(
            'default_gateway' => '',
            'default_pricing' => ''
        )
    );
    /**
     * Payments module installer
     *
     * This function is executed when Payments module is activated. It creates
     * new default pricings if the pricings list is empty.
     *
     * @since 0.2
     * @return void
     */
    function adext_payments_install() {
    
        $args = array(
           'posts_per_page' => 3,
           'post_type' => 'adverts-pricing',
        );
        $query = new WP_Query( $args );
    
        if( $query->found_posts > 0) {
            return;
        }
    
        $id = wp_insert_post( array(
            'post_title' => "Free",
            'post_content' => "Free ads are displayed for 30 days.",
            'post_type' => "adverts-pricing"
        ) );
    
        add_post_meta( $id, 'adverts_visible', '30' );
        add_post_meta( $id, 'adverts_price', '0' );
    
        $id = wp_insert_post( array(
            'post_title' => "Premium",
            'post_content' => "Premium ads are displayed for 45 days.",
            'post_type' => "adverts-pricing"
        ) );
    
        add_post_meta( $id, 'adverts_visible', '45' );
        add_post_meta( $id, 'adverts_price', '50' );
    }
    Thread Starter alex46

    (@alex46)

    i’m working localhost with xampp , if you want i can copy any code from any folder for you see Greg.

    Thread Starter alex46

    (@alex46)

    Isn’t resolved yet Greg this problem…

    Thread Starter alex46

    (@alex46)

    I remove plugin and install a new one and problem persist, would be a problem with database in phpmyadmin?
    I work on localhost

    Plugin Author Greg Winiarski

    (@gwin)

    Does the wp-admin / Classifieds / Options / Payments / Pricing list all the options?

    The code snippet you pasted is from installtion it is run only once.

    Thread Starter alex46

    (@alex46)

    no doesn’t list all the options…

    Thread Starter alex46

    (@alex46)

    i think its any bug with my theme customizr, coz i change thins in appearance and now it’s working, and limit listings it’s working too. I’m making a backup now. tks anyway

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problem in Listing Information – Other pay option doesn't show’ is closed to new replies.