Skip to content

Commit

Permalink
improvements in debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
markmiddleton committed Nov 13, 2023
1 parent fafda48 commit eaee857
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/AlgoliaSyncService.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function algoliaElementSynced($element)
AlgoliaSync::$plugin->algoliaSyncService->logger("Product Query - is this item enabled? ".$myProduct->enabled, basename(__FILE__) , __LINE__);
AlgoliaSync::$plugin->algoliaSyncService->logger("is this VARIANT enabled? ".$element->enabled, basename(__FILE__) , __LINE__);
AlgoliaSync::$plugin->algoliaSyncService->logger("Product Type? ".$myProduct->type, basename(__FILE__) , __LINE__);
AlgoliaSync::$plugin->algoliaSyncService->logger(print_r($myProduct, true), basename(__FILE__) , __LINE__);
// AlgoliaSync::$plugin->algoliaSyncService->logger(print_r($myProduct, true), basename(__FILE__) , __LINE__);

if (
isset($algoliaSettings['algoliaElements'][$elementInfo['type']][$elementInfo['sectionId'][0]]['sync'])
Expand Down Expand Up @@ -527,8 +527,8 @@ public function prepareAlgoliaSyncElement($element, $action = 'save', $algoliaMe
break;
case 'variant':

AlgoliaSync::$plugin->algoliaSyncService->logger("Variant Info -----", basename(__FILE__) , __LINE__);
AlgoliaSync::$plugin->algoliaSyncService->logger(print_r($element,true), basename(__FILE__) , __LINE__);
AlgoliaSync::$plugin->algoliaSyncService->logger("Variant is being loaded", basename(__FILE__) , __LINE__);
// AlgoliaSync::$plugin->algoliaSyncService->logger(print_r($element,true), basename(__FILE__) , __LINE__);

$recordUpdate['elementType'] = ucwords($elementTypeSlug);
$recordUpdate['handle'] = $elementInfo['sectionHandle'];
Expand Down

0 comments on commit eaee857

Please sign in to comment.