Skip to content

Commit

Permalink
Update src/Product/WCProductAdapter.php
Browse files Browse the repository at this point in the history
Co-authored-by: Nima Karimi <73110514+nima-karimi@users.noreply.github.com>
  • Loading branch information
chennyxie and nima-karimi committed Nov 2, 2021
1 parent f1d0907 commit 238fecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Product/WCProductAdapter.php
Expand Up @@ -226,7 +226,7 @@ public static function convert_product_types( $category_ids ): array {
* @return string
*/
protected static function get_product_type_by_id( int $category_id ): string {
$categorie_names = [];
$category_names = [];
do {
$term = get_term_by( 'id', $category_id, 'product_cat', 'ARRAY_A' );
array_push( $categorie_names, $term['name'] );
Expand Down

0 comments on commit 238fecf

Please sign in to comment.