Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Advanced Order Numbers for WooCommerce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
WooCommerce
Advanced Order Numbers for WooCommerce
Commits
dd6f25fb
Commit
dd6f25fb
authored
Feb 24, 2016
by
Reinhold Kainhofer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for YITH WooCommerce Multi Vendors
parent
2c3cfea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ordernumbers_woocommerce.php
ordernumbers_woocommerce.php
+9
-0
No files found.
ordernumbers_woocommerce.php
View file @
dd6f25fb
...
...
@@ -262,6 +262,15 @@ class OpenToolsOrdernumbers extends OpenToolsOrdernumbersBasic {
$vendors
[]
=
$vendor
->
ID
;
}
}
// "YITH WooCommerce Multi Vendor" support (vendors stored in its own taxonomy)
if
(
function_exists
(
"yith_get_vendor"
))
{
$vendor
=
yith_get_vendor
(
$p
->
id
,
'product'
);
if
(
$vendor
->
is_valid
())
{
$vendors
[]
=
$vendor
->
slug
;
$vendors
[]
=
$vendor
->
term_id
;
}
}
// END THIRD-PARTY SUPPORT
}
$reps
[
"[skus]"
]
=
array_keys
(
$skus
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment