Skip to content

Commit bd90dc8

Browse files
authored
Merge pull request #182 from w3bdesign/Make-work-with-premium-version
Make work with premium version
2 parents 1bfb210 + c901b63 commit bd90dc8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

classes/class-send-products.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,10 @@ public static function send_products_to_algolia($id = '')
224224
*/
225225
$result = $index->saveObjects($records);
226226

227-
if ('Algolia\AlgoliaSearch\Response\NullResponse' === get_class($result)) {
228-
wp_die(esc_html__('No response from the server. Please check your settings and try again', 'algolia_woo_indexer_settings'));
227+
if ('Algolia\AlgoliaSearch\Response\NullResponse' === get_class($result)) {
228+
echo '<div class="notice notice-error is-dismissible">
229+
<p>' . esc_html__('Potential API key issue. You may dismiss this if you are using the premium version.', 'algolia-woo-indexer') . '</p>
230+
</div>';
229231
}
230232

231233
/**

0 commit comments

Comments
 (0)