How To Fix Clone Website WooCommerce Table (Cart is empty)


How To Fix Clone Website WooCommerce Table (Cart is empty) Banner

Woocommerce tables are not in the default tables from WordPress clone site database and have to be declared to be used with Multisite Clone Duplicator.

 

 

Use these Plugins (Free)

Duplicator – WordPress Migration Plugin: Click Me!

File Manager: Click Me!

 


In your functions.php, add this filter:

function mucd_primary_table_to_copy($primary_tables) {
$primary_tables[] = 'woocommerce_api_keys';
$primary_tables[] = 'woocommerce_attribute_taxonomies';
$primary_tables[] = 'woocommerce_downloadable_product_permissions';
$primary_tables[] = 'woocommerce_log';
$primary_tables[] = 'woocommerce_order_itemmeta';
$primary_tables[] = 'woocommerce_order_items';
$primary_tables[] = 'woocommerce_payment_tokenmeta';
$primary_tables[] = 'woocommerce_payment_tokens';
$primary_tables[] = 'woocommerce_sessions';
$primary_tables[] = 'woocommerce_shipping_zones';
$primary_tables[] = 'woocommerce_shipping_zone_locations';
$primary_tables[] = 'woocommerce_shipping_zone_methods';
$primary_tables[] = 'woocommerce_tax_rates';
$primary_tables[] = 'woocommerce_tax_rate_locations';
return $primary_tables;
}
add_filter('mucd_default_primary_tables_to_copy', 'mucd_primary_table_to_copy');

 

Well, I hope this article must have helped you. If you have any problem regarding this post just drop your comment here or you can also say “Thanks” simply.

Have fun! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *