Ready to get started?Download WordPress


WP User Frontend
wp user frontend and price in woocommerce (3 posts)

  1. nassimcreation
    Posted 8 months ago #

    i have a problem with wp-user-frontend and woocommerce when i try to add a form and an input for the price with the meta _pice .. the price in the woocommerce is allways null = blank = free .. when i try to edit a product
    you can view this picture to understand http://img4.hostingpics.net/pics/635767price.png
    second .. there are other way to edit the product without the default woocommerce page ?
    please i need a solution
    thanks a lot


  2. SherlockMac
    Posted 5 months ago #

    Try _regular_price it works. I retrieved this in woocommerce control panel. You can use it for almost any of the meta keys.


  3. razvan89
    Posted 1 month ago #

    Define a custom field, example Price (cf_Price in DB), and put this code in wpuf-add-post.php at the end:

    //plugin API to extend the functionality
                do_action( 'wpuf_add_post_after_insert', $post_id );
    			$pret_nou = get_post_meta($post_id, 'cf_Pret',true);
    			update_post_meta($post_id, '_price',$pret_nou);
                update_post_meta($post_id, '_regular_price', $pret_nou);
                echo '<div class="success">' . __('Post published successfully', 'wpuf') . '</div>';
                if ( $post_id ) {
                    $redirect = apply_filters( 'wpuf_after_post_redirect', get_permalink( $post_id ), $post_id );
                    wp_redirect( $redirect );

    . It worked for me, it updates the woocommerce price with the custom price inserted from the user front end


You must log in to post.

About this Plugin

About this Topic