'', 'category_id' => '', 'limit' => 12, 'in_stock' => 'true', 'search' => '', 'columns' => 4, 'fields' => '', 'style' => 'modern', ], $atts); if (empty($atts['store_id'])) { return '

' . __('Please specify a store_id', 'dutchie-analytics') . '

'; } $api = new API_Client(); $args = [ 'store_id' => $atts['store_id'], 'limit' => (int) $atts['limit'], ]; if (!empty($atts['category_id'])) { $args['category_id'] = $atts['category_id']; } if (!empty($atts['search'])) { $args['search'] = $atts['search']; } if ($atts['in_stock'] === 'true') { $args['in_stock'] = true; } if (!empty($atts['fields'])) { $args['fields'] = $atts['fields']; } $data = $api->get_products($args); $products = $data['products'] ?? []; if (empty($products)) { return '

' . __('No products found', 'dutchie-analytics') . '

'; } ob_start(); ?>
<?php echo esc_attr($product['name']); ?>

$ % THC % CBD

'', 'category_id' => '', 'limit' => 20, 'in_stock' => 'true', 'slides_per_view' => 4, 'autoplay' => 'true', 'style' => 'modern', ], $atts); if (empty($atts['store_id'])) { return '

' . __('Please specify a store_id', 'dutchie-analytics') . '

'; } $api = new API_Client(); $args = [ 'store_id' => $atts['store_id'], 'limit' => (int) $atts['limit'], ]; if (!empty($atts['category_id'])) { $args['category_id'] = $atts['category_id']; } if ($atts['in_stock'] === 'true') { $args['in_stock'] = true; } $data = $api->get_products($args); $products = $data['products'] ?? []; if (empty($products)) { return '

' . __('No products found', 'dutchie-analytics') . '

'; } $carousel_id = 'dutchie-carousel-' . uniqid(); ob_start(); ?> get_stores(); $stores = $data['stores'] ?? []; if (empty($stores)) { return '

' . __('No stores found', 'dutchie-analytics') . '

'; } ob_start(); ?>

''], $atts); if (empty($atts['store_id'])) { return '

' . __('Please specify a store_id', 'dutchie-analytics') . '

'; } $api = new API_Client(); $data = $api->get_store_brands($atts['store_id']); $brands = $data['brands'] ?? []; if (empty($brands)) { return '

' . __('No brands found', 'dutchie-analytics') . '

'; } ob_start(); ?>
'', 'date' => '', ], $atts); if (empty($atts['store_id'])) { return '

' . __('Please specify a store_id', 'dutchie-analytics') . '

'; } $api = new API_Client(); $data = $api->get_store_specials($atts['store_id'], $atts['date'] ?: null); $specials = $data['specials'] ?? []; if (empty($specials)) { return '

' . __('No specials for this date', 'dutchie-analytics') . '

'; } ob_start(); ?>
<?php echo esc_attr($special['name']); ?>

% OFF