• Resolved rhouma00

    (@rhouma00)


    Hi,
    In my website I added a button ??add a product??. I want that the users:
    – If they are already connected, when they click, they are redirected to a page containing the form allowing them to add a product without being obliged to add the product from the dashbord.
    – if they are not connected, when they click on the button ??add a product??, they are redirected to the login page and when they are connected they are redirected to the add a product Page (not the the dashboard).

    Thanks for your support

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Welcome ??

    Thread Starter rhouma00

    (@rhouma00)

    Now I have another request please.
    When some one add a product and click on submit can he redirected to the home page where we can see the recent products?

    Plugin Author WC Lovers

    (@wclovers)

    Sure, add this snippet to your site for the purpose-

    add_filter( 'wcfm_product_save_publish_redirect', function( $redirect, $product_id ) {
    	return site_url();	
    }, 50, 2 );
    Thread Starter rhouma00

    (@rhouma00)

    It works. Thank you very much for your support.

    Plugin Author WC Lovers

    (@wclovers)

    You are always welcome!

    It will be pleasure for me if you leave a review for me ??

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Add a new product form’ is closed to new replies.