2017 © Pedro Peláez
 

wordpress-plugin woocommerce-clean-orphaned-variations

Adds a tool to the WooCommerce tools page, which finds and deletes any Product variations without parents.

image

anttiviljami/woocommerce-clean-orphaned-variations

Adds a tool to the WooCommerce tools page, which finds and deletes any Product variations without parents.

  • Thursday, May 19, 2016
  • by anttiviljami
  • Repository
  • 0 Watchers
  • 10 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

WooCommerce Clean Orphaned Variations

Latest Stable Version Latest Unstable Version Total Downloads, (*1)

Adds a tool to the WooCommerce tools page which finds and deletes any Product variations without parents., (*2)

Usage

  1. Navigate to: WooCommerce > System Status > Tools (/wp-admin/admin.php?page=wc-status&tab=tools)
  2. Click the "Clean Orphaned Variations" -button

Screenshots

Clean Orphaned Variations button, (*3)

Why?

Sometimes, for reasons unknown, WooCommerce will leave orphaned variation products in the database which can cause all sorts of problems., (*4)

Most commonly, you would get this error message, (*5)

PHP Fatal error:  Call to a member function get_attributes() on a non-object in /my/wp/root/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php on line 664

This small tool is a quick and easy fix for those situations., (*6)

Installation

The Composer Way (preferred)

Install the plugin via Composer, (*7)

composer require anttiviljami/woocommerce-clean-orphaned-variations

Activate the plugin, (*8)

wp plugin activate woocommerce-clean-orphaned-variations

The Old Fashioned Way

You can also install the plugin by directly uploading the zip file as instructed below:, (*9)

  1. Download the plugin
  2. Upload to the plugin to /wp-content/plugins/ via the WordPress plugin uploader or your preferred method
  3. Activate the plugin

The Versions

19/05 2016

dev-master

9999999-dev

Adds a tool to the WooCommerce tools page, which finds and deletes any Product variations without parents.

  Sources   Download

GPLv3

12/03 2016

1.0

1.0.0.0

Adds a tool to the WooCommerce tools page, which finds and deletes any Product variations without parents.

  Sources   Download

GPLv3