How to implement my product variations/attributes in my contact form 7 email?

You can try this. First, make sure to start a session. Just add this to your theme’s functions.php: function start_session() { if(!session_id()) { session_start(); } } add_action(‘init’, ‘start_session’, 1); Next, hook into WooCommerce to capture the selected attributes: function capture_selected_attributes($cart_item_key, $product_id, $quantity, $variation_id, $variation, $cart_item_data) { if($variation_id && is_array($variation)) { $_SESSION[‘product_attributes’] = $variation; } } … Read more

How to capture number input from wordpress form into acf field in woocommerce

Try using the wpuf_add_post_after_insert hook. This hook gets triggered right after a post is created using WPUF, which means it might be a more appropriate time to save additional data, like the phone number: add_action(‘wpuf_add_post_after_insert’, ‘update_product_acf_field_guest_submission’, 10, 3); function update_product_acf_field_guest_submission($post_id, $form_id, $form_settings) { // Check if the form ID matches the specific form where the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)