Skip to content

Instantly share code, notes, and snippets.

View jkohlbach's full-sized avatar

Josh Kohlbach jkohlbach

View GitHub Profile
@elliotcondon
elliotcondon / gist:c94abec50dc26ac065c6
Last active January 26, 2023 20:09
WooCommerce 'Create variations from all attributes' randomisation fix
<?php
/*
* array_cartesian
*
* This function will fix a frustrating issue in the WooCommerce plugin
* When adding a product using variations, you will most likely use the 'Create variations from all attributes' function
* The issue with this function is that it will create the variations in a random order
* This is frustrating for your clients to edit
*