Remove Preview

This topic contains 2 replies, has 2 voices, and was last updated by  Andrew Walker 7 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #319788

    Andrew Walker
    Free User
    Post count: 6

    Hi I searched the forum to see how I would remove the preview.

    I have looked at the preview-buttons.php code and basically tried to add it to the template_actions.php but when you click Submit, just goes to the home page:

    
    
    $form_action_url = geodir_get_ajax_url() . '&geodir_ajax=add_listing&ajax_action=publish&listing_type=gd_place';
        $form_action_url = apply_filters('geodir_publish_listing_form_action', $form_action_url);
        ?>
        <form name="propertyform" id="propertyform" action="<?php echo $form_action_url;?>" method="post" enctype="multipart/form-data">
            <input type="hidden" name="preview" value="<?php echo sanitize_text_field($listing_type);?>"/>
            <input type="hidden" name="listing_type" value="<?php echo sanitize_text_field($listing_type);?>"/>

    This is what I see in Console:

    <form name=”propertyform” id=”propertyform” action=”http://www.hexsocialmedia.com/pad/wp-admin/admin-ajax.php?action=geodir_ajax_action&geodir_ajax=add_listing&ajax_action=publish&listing_type=gd_place” method=”post” enctype=”multipart/form-data”>
    <input type=”hidden” name=”preview” value=”gd_place”>
    <input type=”hidden” name=”listing_type” value=”gd_place”>
    <input type=”hidden” name=”add_listing_page_id” value=”10″>

    How would one remove this, and go from Add Listing Form, direct to Payment ?

    #319885

    Kor
    Moderator
    Post count: 16516

    Hi Andrew,

    I’ve just checked with a developer and this isn’t something that’s currently possible at the moment and would require customization. Here’s a similar question asked by another member https://wpgeodirectory.com/support/topic/add-listing-without-preview/

    Thanks!

    #319893

    Andrew Walker
    Free User
    Post count: 6

    Okay, Thanks, I shall do what is advised on that post.

    Thanks again.

    A

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount