Skip to content

Doesn't Work With Woocommerce #2

@antivento

Description

@antivento

Hi there,
unfortunately this doesn't work with woocommerce.
I tried to add this piece of code on line 143 of this plugin as suggested on your blog:

foreach($terms as $k => $v) {
if($v->parent == $pref_id) {
$perf_term = array($pref_id => $terms[$k]);
unset($terms[$pref_id]);
$terms = $perf_term + $terms;
break;
}
}

These lines make your plugin working on woocommerce but it doubles all categories.

Any suggestion?

Thanks in advance for your response.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions