Forum Replies Created
- AuthorPosts
clickeke
ParticipantWCFM Marketplace – Multivendor Marketplace 3.2.3 fix this issue verified.
Thank you for your helps.clickeke
Participant@Makers Thank you for the information, we’ve tried your workaround and the result is the same as yours.
About the workaround, we use woocommerce to disable main category at first, and it’s useless.
So we take a look about the $vendor_categories.Please refer our analysis as below
1. The SQL query is in function “wcfmmp_get_vendor_taxonomy” under wc-multivendor-marketplace\core\class-wcfmmp-vendor.php
2. There are a huge logic after query, so we skip to verify those code.
But we think the problem is in that.
3. We take a shortcut by modifying SQL query.You can make the $vendor_categories return correctly by adding code
$sql .= ” GROUP BY
term
,parent
ORDER BYparent
“;right after $sql is assembled.
The SQL will force query return the correct structure for the logic after assembled.
Even though this problem should be piece of a cake without changing sql.Wish we can see the fix coming.
Attachments:
You must be logged in to view attached files.clickeke
ParticipantHi,
We’ve checked that categories and sub-categories which associated with vendor are more than two sub-categories.
And we don’t know why $vendor_categories in wcfmmp-view-store-category.php are only 1 category and 1 sub-category.
Could you help us to check database by using sql or any way we can check that $vendor_categories is query correctly?Thank you for your quickly responding.
- AuthorPosts