Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't Work With Woocommerce #2

Open
palbera opened this issue Mar 8, 2014 · 0 comments
Open

Doesn't Work With Woocommerce #2

palbera opened this issue Mar 8, 2014 · 0 comments
Assignees

Comments

@palbera
Copy link

palbera commented Mar 8, 2014

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.

@mtekk mtekk self-assigned this Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants