// === Register All REST API Routes === add_action('rest_api_init', function () { $routes = [ ['chat', ['GET', 'POST'], 'grobot_chat'], ['login', 'POST', 'grobot_login'], ['signup', 'POST', 'grobot_signup'], ['product-info', 'POST', 'grobot_get_product_info'], ['order', 'POST', 'grobot_place_order'], ['user-info', 'GET', 'grobot_get_user_info'], ['orders', 'GET', 'grobot_get_orders'], ['cancel-order', 'POST', 'grobot_cancel_order'], ['support', 'POST', 'grobot_support_ticket'], ['update-address', 'POST', 'grobot_update_address', true], ['cart/add', 'POST', 'grobot_cart_add'], ['cart', 'GET', 'grobot_cart_view'], ['cart/empty', 'POST', 'grobot_cart_empty'], ['invoice', 'GET', 'grobot_invoice_download', true], ['store-token', 'POST', 'grobot_store_device_token'], ['push', 'POST', 'grobot_send_push_notification', true], ]; foreach ($routes as $r) { register_rest_route('grobot/v1', '/' . $r[0], [ 'methods' => $r[1], 'callback' => $r[2], 'permission_callback' => $r[3] ?? '__return_true' ]); } }); // === grobot Chat === function grobot_chat($request) { if ($_SERVER['REQUEST_METHOD'] === 'GET') { return grobot_response('info', '🤖 This is the grobot chat endpoint. Use POST with {"message": "...", "session_id": "..."} to talk to the assistant.'); } $input = sanitize_text_field($request['message'] ?? ''); $session_id = sanitize_text_field($request['session_id'] ?? ''); if (!$input) { return grobot_response('error', '❌ Empty message.'); } $api_key = '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'; $body = json_encode([ 'model' => 'meta-llama/llama-3-70b-instruct', 'messages' => [ ['role' => 'system', 'content' => << 'user', 'content' => $input] ] ]); $res = wp_remote_post('https://openrouter.ai/api/v1/chat/completions', [ 'headers' => [ 'Authorization' => 'Bearer ' . $api_key, 'Content-Type' => 'application/json', 'HTTP-Referer' => 'https://grohunt.com', 'X-Title' => 'grobot-ecommerce-chat' ], 'body' => $body ]); if (is_wp_error($res)) { return grobot_response('error', '⚠️ Network error.'); } $json = json_decode(wp_remote_retrieve_body($res), true); $reply = $json['choices'][0]['message']['content'] ?? null; if (!$reply) { return grobot_response('error', '🤖 No reply received.'); } $reply = grobot_normalize_text($reply); grobot_log_transcript($session_id, $input, $reply); grobot_maybe_send_push($reply); return grobot_response('success', '✅ AI replied', ['reply' => $reply]); } function grobot_log_transcript($session_id, $query, $reply) { global $wpdb; $table = $wpdb->prefix . 'grobot_transcripts'; $wpdb->insert($table, [ 'session_id' => sanitize_text_field($session_id), 'query' => grobot_normalize_text($query), 'reply' => grobot_normalize_text($reply), 'timestamp' => current_time('mysql') ]); } function grobot_maybe_send_push($reply) { $reply = grobot_normalize_text($reply); if (stripos($reply, 'order confirmed') !== false) { $user = wp_get_current_user(); if ($user && $user->ID) { $token = get_user_meta($user->ID, 'grobot_device_token', true); if ($token) { grobot_send_push_notification($token, 'Order Placed', 'Your order has been placed successfully.'); } } } } function grobot_send_push_notification($token, $title, $body) { $serverKey = 'YOUR-FIREBASE-SERVER-KEY'; $url = 'https://fcm.googleapis.com/fcm/send'; $payload = json_encode([ 'to' => $token, 'notification' => [ 'title' => grobot_normalize_text($title), 'body' => grobot_normalize_text($body), ] ]); $headers = [ 'Authorization: key=' . $serverKey, 'Content-Type: application/json', ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); curl_exec($ch); curl_close($ch); } function grobot_store_device_token($request) { $user_id = get_current_user_id(); $token = sanitize_text_field($request['token'] ?? ''); if ($user_id && $token) { update_user_meta($user_id, 'grobot_device_token', $token); return grobot_response('success', 'Token saved'); } return grobot_response('error', 'Missing user or token'); } function grobot_response($status, $message, $data = []) { return new WP_REST_Response([ 'status' => $status, 'message' => grobot_normalize_text($message), 'data' => $data ], $status === 'success' ? 200 : 400); } function grobot_normalize_text($text) { return str_ireplace([ 'Grobot', 'GroHunt.com', 'Grohunt.com' ], [ 'grobot', 'grohunt.com', 'grohunt.com' ], $text); } Achar (Pickles)
Previous
Previous Product Image

Tomato Ketchup

38.00150.00
Next

Kaju (Cashew)

45.00899.00
Next Product Image

Achar (Pickles)

20.0080.00

🥭 Made with Traditional Recipes – Crafted using age-old techniques for authentic taste.
🌿 Rich in Spices & Natural Ingredients – No artificial preservatives, just pure flavor!
🔥 Perfectly Spicy, Tangy & Aromatic – Elevates every meal with a zesty twist.
🍛 Pairs Well with Everything – Enjoy with rice, roti, parathas, or dal-chawal.

Add to Wishlist
Add to Wishlist
SKU: N/A Category: Tags: , ,

Description

🥭🌶️ Pickle (Achar) – A Burst of Spicy & Tangy Goodness!

Authentic Indian Taste – Made with carefully selected ingredients like raw mangoes, lemons, chilies, and exotic spices.
Handcrafted with Love – Traditional preparation methods for an irresistible homemade feel.
Naturally Preserved – Sun-dried and pickled in mustard oil for a rich, deep flavor.
Multiple Variants – Available in Mango, Lemon, Chili, Mixed, and many more flavors.
No Artificial Colors or Chemicals – 100% natural, ensuring purity in every bite!

🛍️ Add a Punch of Flavor to Every Meal with Our Authentic Pickles! 🍽️🔥

Craving something spicy, tangy, and utterly delicious? Our traditional homemade-style pickle (achar) is made from farm-fresh ingredients like raw mangoes, lemons, chilies, and aromatic Indian spices. Sun-dried and preserved in high-quality mustard oil, it brings the perfect balance of heat, tanginess, and mouthwatering flavors to your plate.

Why Choose Our Pickles?
Purely Homemade Taste – Just like grandma used to make!
Rich, Spicy & Tangy – Elevates the taste of any dish.
Long-Lasting Freshness – Naturally preserved without chemicals.
Multiple Varieties – Mango, Lemon, Chilli, Mixed, and more!

🍽️ Best Enjoyed With:
🍛 Rice & Dal | 🍞 Parathas | 🍚 Khichdi | 🍲 Curries | 🫓 Roti

🌟 Spice Up Every Bite – Try Our Pickle Today! 😋

Additional information

Weights

1kg, 250g, 500g

Reviews

There are no reviews yet.

Be the first to review “Achar (Pickles)”

Your email address will not be published. Required fields are marked *

Shopping cart

1

Subtotal: 50.00

View cartCheckout