0

I use contact form 7 and it is not usable on product page but if I go to function.php file on my site-theme and write this code over there;

add_action( 'woocommerce_before_add_to_cart_button' , 'my_upload_file_thing' ); 


function my_upload_file_thing(){


    echo do_shortcode('[contact-form-7 id="545" title="file-upload"]');
    
}

when I write this code, it seems on product page but when i go upload something as a client, i get error. but when I normally use this plugin, I do not get error.

0

By the way contact form 7 not able to store data in database. So you need to add-on plugin like below, that's will help you.

Contact Form 7 Database Addon – CFDB7

2
  • I have flamingo that store data. – bkk Jul 22 at 9:29
  • But is is more comfortable for contact form 7. May be Flamingo able to work but I am sure not properly work that's. – Anjan Jul 22 at 9:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.