• Hi is there a way to integrate WordPress file upload plugin with woo-commerce account plugin?

    I need registered users to upload files and view their uploaded files in woo-commerce my account dashboard. Is there a way? Please Help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi, I haven’t tried that. Let’s go step by step.

    Does woocommerce account plugin have any way of adding custom features, shortcodes or PHP code inside the account page?

    Regards

    Nickolas

    Thread Starter nidnani

    (@nidnani)

    Hi Nick,

    Thanks for the quick response.

    Woo commerce my account page has a shortcode: [woocommerce_my_account]

    In which they have endpoints called, Orders, View Order, Downloads, Edit Account, Address, Payment Methods, Lost password, Logout.

    If admin wants to use the endpoints on a different page they can use the link domain/my-account/endpoint names.

    I am trying to find a way and integrate file upload plugin with woo-commerce my account, so user can have a new end point called Uploaded files. And see all previous uploaded files.

    Plugin Author nickboss

    (@nickboss)

    One way is to create a new end-point as you said. Another way is to add the upload form inside an existing end-point.

    In either case, I suppose end-points are defined through PHP templates. You can add the upload form inside a template like this:

    <?php echo do_shortcode('[wordpress_file_upload']); ?>

    Nickolas

    Thread Starter nidnani

    (@nidnani)

    Can you please tell me on what page in the backend of plugin, I should add this php code?

    Plugin Author nickboss

    (@nickboss)

    Ok, put the following code in functions.php file of your theme:

    if (!function_exists('custom_account_hook')) {
    	function custom_account_hook() {
    		echo do_shortcode('[wordpress_file_upload]');
    	}
    	add_action( 'woocommerce_account_dashboard', 'custom_account_hook' );
    }

    It will add the upload form in “My Account” page of Woocommerce.

    Try it and let me know.

    Nickolas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link wordpress file upload plugin to woo-commerce account’ is closed to new replies.