|
|
| Line 108: |
Line 108: |
|
| |
|
| = TroubleShooting = | | = TroubleShooting = |
| Due to a problem in Woocomerce, if you have a large number of product categories, you may experience low performance when counting data to synchronize and making a synchronize.
| |
| This is how you can fix this:
| |
|
| |
|
| On Woocomerce side, edit the file '''app/code/core/Mage/Catalog/Model/Category/Api.php''' to add the line visible into comment
| |
|
| |
| <source lang="php">
| |
|
| |
| ...
| |
|
| |
| /**
| |
| * Convert node to array
| |
| *
| |
| * @param Varien_Data_Tree_Node $node
| |
| * @return array
| |
| */
| |
| protected function _nodeToArray(Varien_Data_Tree_Node $node)
| |
| {
| |
| // Only basic category data
| |
| $result = array();
| |
| $result['category_id'] = $node->getId();
| |
| $result['parent_id'] = $node->getParentId();
| |
| $result['name'] = $node->getName();
| |
| $result['is_active'] = $node->getIsActive();
| |
| $result['position'] = $node->getPosition();
| |
| $result['level'] = $node->getLevel();
| |
|
| |
| /* LDR Add here this new line to add the missing property returned by web service */
| |
| $result['updated_at'] = $node->getUpdatedAt();
| |
|
| |
| $result['children'] = array();
| |
|
| |
| foreach ($node->getChildren() as $child) {
| |
| $result['children'][] = $this->_nodeToArray($child);
| |
| }
| |
|
| |
| return $result;
| |
| }
| |
|
| |
| ...
| |
|
| |
|
| </lang> | | </lang> |