Title: Plugin broken, bug fixes
Last modified: January 28, 2022

---

# Plugin broken, bug fixes

 *  Resolved [Mary Linville](https://wordpress.org/support/users/sunshine/)
 * (@sunshine)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/plugin-broken-bug-fixes/)
 * This plugin has several bugs that prevent it from working.
 * In the file: front/class-wc_update-variation_in-cart_ck.php
 * 1. The bug: makes direct calls to WooCommerce class `WC_Product_Factory` (via`
   wc_get_product()`) for product id, but that is no longer a valid way to obtain
   product id as of WooCommerce version 3.
 * The fix: search for all references to `$product_woo_ck->id` and replace with `
   $product_woo_ck->get_id()` (lines 215, 364, 368)
 * 2. The bug: references a non-existent variable, `$attribute_keys` on line 254.
 * The fix: Rename variable to `$attributes`
 * The two fixes above at least allow the variations dropdown to actually appear.
 * There are still more bugs in the submission part once you change the variation,
   and I gave up trying to fix it.

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

 *  [Pacotole](https://wordpress.org/support/users/pacotole/)
 * (@pacotole)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-broken-bug-fixes/#post-15533228)
 * I have created a gist with WC 6 and PHP 8 compatibility bugs fixed [here](https://gist.github.com/pacotole/0106868c43619d040596e9c407aab1ac).
 * If the plugin author wants, I’m willing to update it.
 * Regards
 *  Plugin Author [codingkart](https://wordpress.org/support/users/codingkart/)
 * (@codingkart)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-broken-bug-fixes/#post-15557378)
 * [@sunshine](https://wordpress.org/support/users/sunshine/) I’ll fix and update
   the plugin and [@pacotole](https://wordpress.org/support/users/pacotole/) thank
   you suggestions.

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

The topic ‘Plugin broken, bug fixes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-update-variations-in-cart_c69693.
   svg)
 * [Woo Update Variations In Cart](https://wordpress.org/plugins/woo-update-variations-in-cart/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-update-variations-in-cart/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-update-variations-in-cart/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-update-variations-in-cart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-update-variations-in-cart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-update-variations-in-cart/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [codingkart](https://wordpress.org/support/users/codingkart/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-broken-bug-fixes/#post-15557378)
 * Status: resolved