Title: not captured
Last modified: May 5, 2018

---

# not captured

 *  Resolved [canferman](https://wordpress.org/support/users/canferman/)
 * (@canferman)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/)
 * hi i am using wp 4.8.6 and i enabled WooCommerce Live Checkout Field Capture –
   Save Abandoned Carts.
 * when i am testing this plugin (i am visiting my market page, i added a product
   to my cart, i visited cart page, i visited chekout page and filled all the inputs,
   i visited another pages also, and also i tried to left open chekout page and 
   i tried close the testing browser etc.), there is no data in database (i looked
   at wp_captured_wc_fields table) and also there is no data in ….com/wp-admin/admin.
   php?page=wclcfc page.
 * in my chekout page there is input with id #billing_email and other input as it’s
   supposed to be and my admin-ajax.php file is under ….com/wp-admin/admin-ajax.
   php
 * how else can I test whether it works or not?

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Thread Starter [canferman](https://wordpress.org/support/users/canferman/)
 * (@canferman)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10249725)
 * i forgot to write:
 * when i looked with inspect element, on colsole there is an “…com/wp-admin/admin-
   ajax.php 500()” error
 * and also, when i looked to my nginx error.log, there is an error about this:
 *     ```
       2018/05/05 12:07:16 [error] 27804#27804: *56049 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method WC_Cart::get_cart_contents() in /var/www/html/eski/wp-content/plugins/woo-save-abandoned-carts/public/class-woocommerce-live-checkout-field-capture-public.php:76
   
       Stack trace:
       #0 /var/www/html/eski/wp-includes/class-wp-hook.php(298): Woocommerce_Live_Checkout_Field_Capture_Public->save_user_data('')
       #1 /var/www/html/eski/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
       #2 /var/www/html/eski/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
       #3 /var/www/html/eski/wp-admin/admin-ajax.php(101): do_action('wp_ajax_nopriv_...')
       #4 {main}
         thrown in /var/www/html/eski/wp-content/plugins/woo-save-abandoned-carts/public/class-woocommerce-live-checkout-field-capture-public.php on line 76" while reading response header from upstream, client: ***.***.***.**, server: e*****.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "eski.sevgilibebek.com", referrer: "https://e*****.com/market/chekout/"
       ```
   
    -  This reply was modified 7 years, 11 months ago by [canferman](https://wordpress.org/support/users/canferman/).
 *  [prowebdesign](https://wordpress.org/support/users/prowebdesign/)
 * (@prowebdesign)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10249780)
 * Hi Canferman,
 * Do you have a live link where I could take a look at your shop?
    It might be 
   related to the fact that you are using an older WooCommerce version than supported.
 *  Thread Starter [canferman](https://wordpress.org/support/users/canferman/)
 * (@canferman)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10249801)
 * i am changing line 76 of “class-woocommerce-live-checkout-field-capture-public.
   php”
    from `$products = WC()->cart->get_cart_contents();` to `$products = WC()-
   >cart->get_cart()->cart_contents;`
 * and it works correctly…
 * but now, always dublicete data, i cant understand why dublicating…
 * and thanks for your quick reply 🙂
    -  This reply was modified 7 years, 11 months ago by [canferman](https://wordpress.org/support/users/canferman/).
 *  Thread Starter [canferman](https://wordpress.org/support/users/canferman/)
 * (@canferman)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10249806)
 * my woocommerce version is 3.1.0
 *  [prowebdesign](https://wordpress.org/support/users/prowebdesign/)
 * (@prowebdesign)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10249834)
 * Thanks for additional information.
    I downloaded and setup WooCommerce 3.1.0 
   which looks kind of am old now and it does not have the method that saves get_cart_contents().
   I also tried out the changes you suggested but the Cart contents are simply not
   being captured.
 * Would you mind telling which WooCommerce Live Checkout Field Capture – Save Abandoned
   Carts plugin version are you using since you mentioned that you are getting duplicate
   entries saved?
 * Kind regards
    -  This reply was modified 7 years, 11 months ago by [prowebdesign](https://wordpress.org/support/users/prowebdesign/).
 *  Thread Starter [canferman](https://wordpress.org/support/users/canferman/)
 * (@canferman)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10249873)
 * sorry for my fault:
 * i chaged related line to
    `$products = WC()->cart->get_cart();`
 * i am using wlcfc ver 1.4.3
 * and this is screenshot of captured data: [https://prnt.sc/je2et8](https://prnt.sc/je2et8)
 *  [prowebdesign](https://wordpress.org/support/users/prowebdesign/)
 * (@prowebdesign)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10249880)
 * Yes, that is the correct method for that version.
    Hmm, can you take a look at
   your database table **wp_captured_wc_fields** and send me a screenshot of it 
   as well?
 *  Thread Starter [canferman](https://wordpress.org/support/users/canferman/)
 * (@canferman)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10249897)
 * this is db ss: [http://prntscr.com/je2k2z](http://prntscr.com/je2k2z)
 *  [prowebdesign](https://wordpress.org/support/users/prowebdesign/)
 * (@prowebdesign)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10249907)
 * Thanks for this. I can see that the Session_id column is empty and that means
   that either your browser is blocking sessions or there is something else missing
   in the puzzle. therefore the plugin does not recognize that the user has already
   been placed in the abandoned carts table and saves him again and again.
 * I would suggest to try these solutions:
    1) Clear browser cache and restart it,
   maybe try different browsers and test to see if the sessions are being generated
   and saved in the database. 2) If above fails, try debugging the sessions which
   are handled in the class-woocommerce-live-checkout-field-capture-public.php lines
   137 – 140
 * Let me know if anything of this works
 *  [prowebdesign](https://wordpress.org/support/users/prowebdesign/)
 * (@prowebdesign)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10249998)
 * By the way, I altered the plugin code of the latest release and pushed the new
   code live.
    So if you will ever want to reinstall it, you will not have to worry
   about changing `get_cart_contents()` to `get_cart()`
 *  Thread Starter [canferman](https://wordpress.org/support/users/canferman/)
 * (@canferman)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10250049)
 * thanks for your help
 * i changed related line from:
 *     ```
       if ( $this->session_has_started() === false ){
       	session_start();
       	$session_id = session_id();
       }
       ```
   
 * to:
 *     ```
       if ( $this->session_has_started() === false ){
       	session_start();
       }
       $session_id = session_id();
       ```
   
 * and it works correctly with session_id.
    [http://prntscr.com/je38jc](http://prntscr.com/je38jc)
 * If there is no oddity, I can use it like this.
 * i will pruchase your plugin’s pro version in some days due to the effort you 
   spend.
 * thanks a lot again…
 *  [prowebdesign](https://wordpress.org/support/users/prowebdesign/)
 * (@prowebdesign)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10250050)
 * Thanks, canferman, I really appreciate that 🙂

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘not captured’ is closed to new replies.

 * ![](https://ps.w.org/woo-save-abandoned-carts/assets/icon-256x256.gif?rev=2768009)
 * [CartBounty - Save and recover abandoned carts for WooCommerce](https://wordpress.org/plugins/woo-save-abandoned-carts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-save-abandoned-carts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-save-abandoned-carts/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-save-abandoned-carts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-save-abandoned-carts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-save-abandoned-carts/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [prowebdesign](https://wordpress.org/support/users/prowebdesign/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/not-captured/#post-10250050)
 * Status: resolved