สร้างแคตตาล็อกสินค้าออนไลน์: ค้นหา เลือกไซส์ ส่งออเดอร์เข้า LINE
ทดสอบกับ Claude
กรอกชื่อร้าน สินค้า ราคา ค่าส่ง และ LINE ร้าน AI จะเขียนไฟล์ HTML ไฟล์เดียวเป็นแคตตาล็อกที่ใช้ในมือถือได้ ลูกค้าส่งสรุปออเดอร์เข้าแชต คัดลอก หรือดาวน์โหลดได้
ใช้กับ: Claude, ChatGPT, Gemini, Claude Code
Prompt เต็ม พร้อมคัดลอก
## Role
You are a web developer who builds easy tools for small online shops. Write an "online product catalog with ordering" as a single HTML file. All on-page text must be in Thai.
## Shop details
- Shop name and short tagline: [shop_name]
- Products (name, price in THB, category, short description, image link or blank, options such as sizes, in stock or sold out): [products]
- Shipping fee and free-shipping minimum: [shipping]
- Shop LINE Official Account ID (starts with @) and phone: [contact]
- Link to the shop's PromptPay QR image (leave blank if none): [qr]
- Main brand color: [color]
## Features
1. Header with shop name and tagline.
2. A search box and category buttons that filter products instantly. Show a message when nothing matches.
3. Product cards: 2 columns on mobile, 4 on desktop, with image, name, description, price, an options dropdown if the product has options, and an "Add to list" button. If there is no image or it fails to load, show a colored box with the product name instead.
4. Sold-out products show "Sold out" with a disabled button.
5. A bar fixed at the bottom showing item count and subtotal, with a button that opens the order panel.
6. Order panel: items with chosen option, minus/plus buttons, line totals, shipping fee (free once the minimum is reached) and grand total. Fields: nickname, phone (validate Thai format), delivery address, optional note.
7. An "Order summary" button: if anything is missing, show in red what is missing; otherwise show the full text summary.
8. Three buttons below the summary: "Send order via LINE" opening https://line.me/R/oaMessage/{LINE ID}/?{encoded summary}, "Copy text" for other chats, and "Download as file" saving a .txt file.
9. If a QR link is set, show the QR with the amount and ask the customer to attach the slip in chat. State that the order is confirmed when the shop replies.
10. Remember the list with localStorage inside try/catch so a page refresh does not clear it.
## Design
- Sarabun font from Google Fonts with system fallback. Text at least 16px, buttons at least 48px.
- Use [color] as the main color. Works on mobile and desktop with no horizontal page scroll.
## Technical
- HTML, CSS and JavaScript in one file. No external libraries (fonts only). No server.
- Put all shop data in one config object at the top of the script with Thai comments.
- Collect only nickname, phone and delivery address. Never ask for ID card numbers or other sensitive data. No card payments on the page.
## Answer format
1. The full file in one code block, nothing cut.
2. How to open it: save as index.html and open in a browser.
3. How to add products, change prices and mark items sold out, step by step.
4. How to add product images and put the page online for free with Netlify Drop or GitHub Pages, step by step.
5. A short note on limits: the page does not cut stock automatically and the shop must confirm each order in chat.
- Explain in Thai.
## บทบาท
คุณคือนักพัฒนาเว็บที่ทำเครื่องมือให้ร้านออนไลน์เล็กใช้ง่าย ช่วยเขียน "แคตตาล็อกสินค้าออนไลน์พร้อมรับออเดอร์" เป็นไฟล์ HTML ไฟล์เดียว
## ข้อมูลร้าน
- ชื่อร้านและคำโปรยสั้นๆ: [ชื่อร้าน]
- รายการสินค้า (ชื่อ ราคาเป็นบาท หมวด คำอธิบายสั้น ลิงก์รูปหรือเว้นว่าง ตัวเลือก เช่น ไซส์ และมีของหรือหมด): [รายการสินค้า]
- ค่าส่งและยอดซื้อขั้นต่ำที่ส่งฟรี: [ค่าส่ง]
- LINE Official Account ของร้าน (ขึ้นต้นด้วย @) และเบอร์โทร: [ช่องทางติดต่อ]
- ลิงก์รูป QR PromptPay ของร้าน (ถ้าไม่มีเว้นว่าง): [QR PromptPay]
- สีหลักของร้าน: [สีหลัก]
## ฟีเจอร์ที่ต้องมี
1. ส่วนหัวแสดงชื่อร้านและคำโปรย
2. ช่องค้นหาและปุ่มหมวดสินค้า กรองสินค้าทันที ถ้าไม่พบให้แสดงข้อความแจ้ง
3. การ์ดสินค้า มือถือ 2 คอลัมน์ คอม 4 คอลัมน์ มีรูป ชื่อ คำอธิบาย ราคา ช่องเลือกตัวเลือกถ้าสินค้านั้นมี และปุ่ม "เพิ่มลงรายการ" ถ้าไม่มีรูปหรือรูปโหลดไม่ขึ้น ให้แสดงกล่องสีพร้อมชื่อสินค้าแทน
4. สินค้าที่หมดแสดงคำว่า "สินค้าหมด" และกดสั่งไม่ได้
5. แถบด้านล่างติดจอ แสดงจำนวนชิ้นและยอดรวม พร้อมปุ่มเปิดรายการสั่งซื้อ
6. หน้ารายการสั่งซื้อ: สินค้าพร้อมตัวเลือก ปุ่มลบ/บวก ราคาต่อรายการ ค่าส่ง (เป็น 0 เมื่อซื้อครบยอด) และยอดรวมสุทธิ มีช่องชื่อเล่น เบอร์โทร (ตรวจรูปแบบเบอร์ไทย) ที่อยู่จัดส่ง และหมายเหตุไม่บังคับ
7. ปุ่ม "สรุปออเดอร์" ถ้าเลือกหรือกรอกไม่ครบ ให้บอกเป็นข้อความสีแดงว่าขาดอะไร ถ้าครบ ให้แสดงข้อความสรุปทั้งหมด
8. ปุ่ม 3 ปุ่มใต้สรุป: "ส่งออเดอร์ทาง LINE ร้าน" เปิดลิงก์ https://line.me/R/oaMessage/{LINE ID}/?{ข้อความสรุปที่ encode แล้ว}, "คัดลอกข้อความ" สำหรับแชตอื่น และ "ดาวน์โหลดเป็นไฟล์" บันทึกเป็น .txt
9. ถ้าใส่ลิงก์ QR ไว้ ให้แสดงรูป QR พร้อมยอดที่ต้องโอน และบอกให้แนบสลิปในแชต เขียนบอกชัดว่าออเดอร์ยืนยันเมื่อร้านตอบกลับ
10. จำรายการไว้ด้วย localStorage ครอบด้วย try/catch รีเฟรชหน้าแล้วไม่หาย
## หน้าตา
- ภาษาไทยทั้งหมด ใช้ฟอนต์ Sarabun จาก Google Fonts ถ้าโหลดไม่ได้ใช้ฟอนต์ของเครื่อง
- ตัวหนังสืออย่างน้อย 16px ปุ่มสูงอย่างน้อย 48px
- ใช้ [สีหลัก] เป็นสีหลัก ใช้ได้ดีทั้งมือถือและคอม ไม่มีแถบเลื่อนแนวนอนทั้งหน้า
## ข้อกำหนดทางเทคนิค
- HTML, CSS และ JavaScript อยู่ในไฟล์เดียว ไม่ใช้ไลบรารีภายนอก (ยกเว้นฟอนต์) ไม่ต้องมีเซิร์ฟเวอร์
- รวมข้อมูลร้านและสินค้าไว้ในตัวแปรเดียวบนสุดของสคริปต์ พร้อมคอมเมนต์ภาษาไทยว่าแก้ตรงไหน
- เก็บแค่ชื่อเล่น เบอร์โทร และที่อยู่จัดส่ง ห้ามขอเลขบัตรประชาชนหรือข้อมูลอ่อนไหวอื่น ห้ามรับชำระเงินด้วยบัตรในหน้าเว็บ
## รูปแบบคำตอบ
1. โค้ดเต็มไฟล์ในบล็อกเดียว ห้ามตัดทอน
2. วิธีเปิดใช้: บันทึกเป็น index.html แล้วเปิดในเบราว์เซอร์
3. วิธีเพิ่มสินค้า แก้ราคา และตั้งสินค้าหมดในโค้ดทีละจุด
4. วิธีใส่รูปสินค้า และเอาขึ้นออนไลน์ฟรีด้วย Netlify Drop หรือ GitHub Pages ทีละขั้น
5. บอกข้อจำกัดสั้นๆ: หน้าเว็บนี้ไม่ตัดสต๊อกอัตโนมัติ ร้านต้องยืนยันออเดอร์ในแชตเอง คำ[ในวงเล็บสีแดง] แก้เป็นของคุณได้
คำใน [ ] ที่ต้องแก้
[shop_name]ชื่อร้านชื่อร้านและคำโปรยสั้นๆ ที่จะแสดงด้านบนเช่น ร้านเสื้อผ้าน้องมิ้นท์ เสื้อผ้าผู้หญิงใส่สบาย ไซส์ S ถึง 3XL[products]รายการสินค้าชื่อ ราคา หมวด คำอธิบาย ลิงก์รูป ตัวเลือก และมีของหรือหมด เขียนบรรทัดละ 1 สินค้าเช่น เสื้อเชิ้ตลินิน 390 บาท หมวดเสื้อ ผ้าเบาใส่ทำงานได้ ไซส์ S M L XL มีของ[shipping]ค่าส่งค่าส่งเป็นบาท และยอดซื้อขั้นต่ำที่ส่งฟรี ถ้าไม่มีให้เขียนว่าไม่มีเช่น ค่าส่ง 40 บาท ซื้อครบ 1,000 บาท ส่งฟรี[contact]ช่องทางติดต่อLINE Official Account ของร้าน (ขึ้นต้นด้วย @) และเบอร์โทรเช่น LINE @nongmint โทร 081-234-5678[qr]QR PromptPayลิงก์รูป QR PromptPay ของร้าน ถ้ายังไม่มีเว้นว่างไว้เช่น (เว้นว่าง)[color]สีหลักสีของร้าน บอกเป็นชื่อสีหรือรหัสสีเช่น ชมพูกุหลาบ #B5476B
เวอร์ชันตัวอย่าง
ร้านเสื้อผ้าออนไลน์
ผลลัพธ์ ทดสอบด้วย Claude แล้ว: ได้แคตตาล็อก 5 สินค้าในจอมือถือ ค้นหาและกรองหมวดได้ สินค้าหมดกดไม่ได้ ปรับจำนวนแล้วค่าส่งเป็น 0 เมื่อครบ 1,000 บาท แจ้งเตือนเมื่อกรอกไม่ครบ ปุ่มส่ง LINE และปุ่มคัดลอกทำงาน
## Role
You are a web developer who builds easy tools for small online shops. Write an "online product catalog with ordering" as a single HTML file. All on-page text must be in Thai.
## Shop details
- Shop name and short tagline: ร้านเสื้อผ้าน้องมิ้นท์ เสื้อผ้าผู้หญิงใส่สบาย ไซส์ S ถึง 3XL
- Products (name, price in THB, category, short description, image link or blank, options such as sizes, in stock or sold out): เสื้อเชิ้ตลินิน 390 บาท หมวดเสื้อ ไซส์ S M L XL มีของ / เสื้อยืดคอกลม 199 บาท หมวดเสื้อ ไซส์ M L XL 2XL มีของ / กางเกงขายาวเอวยืด 450 บาท หมวดกางเกง ไซส์ M L XL มีของ / กางเกงผ้าฝ้าย 350 บาท หมวดกางเกง ไม่มีตัวเลือก มีของ / เดรสแขนสั้น 590 บาท หมวดเดรส ไซส์ S M L หมด
- Shipping fee and free-shipping minimum: ค่าส่ง 40 บาท ซื้อครบ 1,000 บาท ส่งฟรี
- Shop LINE Official Account ID (starts with @) and phone: LINE @nongmint โทร 081-234-5678
- Link to the shop's PromptPay QR image (leave blank if none): (เว้นว่าง)
- Main brand color: ชมพูกุหลาบ #B5476B
## Features
1. Header with shop name and tagline.
2. A search box and category buttons that filter products instantly. Show a message when nothing matches.
3. Product cards: 2 columns on mobile, 4 on desktop, with image, name, description, price, an options dropdown if the product has options, and an "Add to list" button. If there is no image or it fails to load, show a colored box with the product name instead.
4. Sold-out products show "Sold out" with a disabled button.
5. A bar fixed at the bottom showing item count and subtotal, with a button that opens the order panel.
6. Order panel: items with chosen option, minus/plus buttons, line totals, shipping fee (free once the minimum is reached) and grand total. Fields: nickname, phone (validate Thai format), delivery address, optional note.
7. An "Order summary" button: if anything is missing, show in red what is missing; otherwise show the full text summary.
8. Three buttons below the summary: "Send order via LINE" opening https://line.me/R/oaMessage/{LINE ID}/?{encoded summary}, "Copy text" for other chats, and "Download as file" saving a .txt file.
9. If a QR link is set, show the QR with the amount and ask the customer to attach the slip in chat. State that the order is confirmed when the shop replies.
10. Remember the list with localStorage inside try/catch so a page refresh does not clear it.
## Design
- Sarabun font from Google Fonts with system fallback. Text at least 16px, buttons at least 48px.
- Use ชมพูกุหลาบ #B5476B as the main color. Works on mobile and desktop with no horizontal page scroll.
## Technical
- HTML, CSS and JavaScript in one file. No external libraries (fonts only). No server.
- Put all shop data in one config object at the top of the script with Thai comments.
- Collect only nickname, phone and delivery address. Never ask for ID card numbers or other sensitive data. No card payments on the page.
## Answer format
1. The full file in one code block, nothing cut.
2. How to open it: save as index.html and open in a browser.
3. How to add products, change prices and mark items sold out, step by step.
4. How to add product images and put the page online for free with Netlify Drop or GitHub Pages, step by step.
5. A short note on limits: the page does not cut stock automatically and the shop must confirm each order in chat.
- Explain in Thai.
ร้านสบู่และของทำมือ
ผลลัพธ์ แคตตาล็อกโทนเขียว 2 หมวด ถุงหอมเลือกกลิ่นได้ หลังกดสรุปจะแสดง QR พร้อมยอดที่ต้องโอน
## Role
You are a web developer who builds easy tools for small online shops. Write an "online product catalog with ordering" as a single HTML file. All on-page text must be in Thai.
## Shop details
- Shop name and short tagline: บ้านสบู่ใบเตย ของใช้ทำมือจากสมุนไพร
- Products (name, price in THB, category, short description, image link or blank, options such as sizes, in stock or sold out): สบู่ขมิ้น 80 บาท หมวดสบู่ มีของ / สบู่มะขาม 80 บาท หมวดสบู่ มีของ / ถุงหอม 120 บาท หมวดของขวัญ กลิ่นตะไคร้ กลิ่นมะลิ มีของ / ชุดของขวัญ 3 ชิ้น 290 บาท หมวดของขวัญ มีของ
- Shipping fee and free-shipping minimum: ค่าส่ง 45 บาท ซื้อครบ 800 บาท ส่งฟรี
- Shop LINE Official Account ID (starts with @) and phone: LINE @baansabu โทร 089-222-3333
- Link to the shop's PromptPay QR image (leave blank if none): [ลิงก์รูป QR PromptPay ของร้าน]
- Main brand color: เขียวใบเตย #2E8B57
## Features
1. Header with shop name and tagline.
2. A search box and category buttons that filter products instantly. Show a message when nothing matches.
3. Product cards: 2 columns on mobile, 4 on desktop, with image, name, description, price, an options dropdown if the product has options, and an "Add to list" button. If there is no image or it fails to load, show a colored box with the product name instead.
4. Sold-out products show "Sold out" with a disabled button.
5. A bar fixed at the bottom showing item count and subtotal, with a button that opens the order panel.
6. Order panel: items with chosen option, minus/plus buttons, line totals, shipping fee (free once the minimum is reached) and grand total. Fields: nickname, phone (validate Thai format), delivery address, optional note.
7. An "Order summary" button: if anything is missing, show in red what is missing; otherwise show the full text summary.
8. Three buttons below the summary: "Send order via LINE" opening https://line.me/R/oaMessage/{LINE ID}/?{encoded summary}, "Copy text" for other chats, and "Download as file" saving a .txt file.
9. If a QR link is set, show the QR with the amount and ask the customer to attach the slip in chat. State that the order is confirmed when the shop replies.
10. Remember the list with localStorage inside try/catch so a page refresh does not clear it.
## Design
- Sarabun font from Google Fonts with system fallback. Text at least 16px, buttons at least 48px.
- Use เขียวใบเตย #2E8B57 as the main color. Works on mobile and desktop with no horizontal page scroll.
## Technical
- HTML, CSS and JavaScript in one file. No external libraries (fonts only). No server.
- Put all shop data in one config object at the top of the script with Thai comments.
- Collect only nickname, phone and delivery address. Never ask for ID card numbers or other sensitive data. No card payments on the page.
## Answer format
1. The full file in one code block, nothing cut.
2. How to open it: save as index.html and open in a browser.
3. How to add products, change prices and mark items sold out, step by step.
4. How to add product images and put the page online for free with Netlify Drop or GitHub Pages, step by step.
5. A short note on limits: the page does not cut stock automatically and the shop must confirm each order in chat.
- Explain in Thai.
ร้านอะไหล่และอุปกรณ์เกษตร
ผลลัพธ์ แคตตาล็อกโทนส้ม ค้นหาชื่ออะไหล่ได้เร็ว คิดค่าส่งคงที่ทุกออเดอร์
## Role
You are a web developer who builds easy tools for small online shops. Write an "online product catalog with ordering" as a single HTML file. All on-page text must be in Thai.
## Shop details
- Shop name and short tagline: ช่างเอกเกษตรภัณฑ์ อุปกรณ์สวนราคาบ้านๆ
- Products (name, price in THB, category, short description, image link or blank, options such as sizes, in stock or sold out): หัวสปริงเกอร์ 25 บาท หมวดระบบน้ำ มีของ / สายยาง 4 หุน ม้วน 20 เมตร 350 บาท หมวดระบบน้ำ มีของ / กรรไกรตัดกิ่ง 220 บาท หมวดเครื่องมือ มีของ / ถุงมือผ้าโหล 120 บาท หมวดเครื่องมือ หมด
- Shipping fee and free-shipping minimum: ค่าส่ง 60 บาท ไม่มีส่งฟรี
- Shop LINE Official Account ID (starts with @) and phone: LINE @changek โทร 086-444-5555
- Link to the shop's PromptPay QR image (leave blank if none): (เว้นว่าง)
- Main brand color: ส้มอิฐ #C65D2E
## Features
1. Header with shop name and tagline.
2. A search box and category buttons that filter products instantly. Show a message when nothing matches.
3. Product cards: 2 columns on mobile, 4 on desktop, with image, name, description, price, an options dropdown if the product has options, and an "Add to list" button. If there is no image or it fails to load, show a colored box with the product name instead.
4. Sold-out products show "Sold out" with a disabled button.
5. A bar fixed at the bottom showing item count and subtotal, with a button that opens the order panel.
6. Order panel: items with chosen option, minus/plus buttons, line totals, shipping fee (free once the minimum is reached) and grand total. Fields: nickname, phone (validate Thai format), delivery address, optional note.
7. An "Order summary" button: if anything is missing, show in red what is missing; otherwise show the full text summary.
8. Three buttons below the summary: "Send order via LINE" opening https://line.me/R/oaMessage/{LINE ID}/?{encoded summary}, "Copy text" for other chats, and "Download as file" saving a .txt file.
9. If a QR link is set, show the QR with the amount and ask the customer to attach the slip in chat. State that the order is confirmed when the shop replies.
10. Remember the list with localStorage inside try/catch so a page refresh does not clear it.
## Design
- Sarabun font from Google Fonts with system fallback. Text at least 16px, buttons at least 48px.
- Use ส้มอิฐ #C65D2E as the main color. Works on mobile and desktop with no horizontal page scroll.
## Technical
- HTML, CSS and JavaScript in one file. No external libraries (fonts only). No server.
- Put all shop data in one config object at the top of the script with Thai comments.
- Collect only nickname, phone and delivery address. Never ask for ID card numbers or other sensitive data. No card payments on the page.
## Answer format
1. The full file in one code block, nothing cut.
2. How to open it: save as index.html and open in a browser.
3. How to add products, change prices and mark items sold out, step by step.
4. How to add product images and put the page online for free with Netlify Drop or GitHub Pages, step by step.
5. A short note on limits: the page does not cut stock automatically and the shop must confirm each order in chat.
- Explain in Thai.
Prompt นี้ช่วยอะไร
ร้านขายของออนไลน์มักส่งรูปสินค้าทีละรูปในแชต ลูกค้าถามราคาซ้ำ และจดออเดอร์ตกหล่นได้ง่าย Prompt นี้ให้ AI เขียนหน้าแคตตาล็อกของร้านเป็นไฟล์เดียว ลูกค้าดูสินค้า เลือกไซส์ แล้วส่งสรุปออเดอร์เข้าแชต LINE ของร้าน
- หาสินค้าง่าย มีช่องค้นหาและปุ่มกรองตามหมวด
- เลือกไซส์หรือสีได้ ตั้งสินค้าหมดให้กดสั่งไม่ได้
- เห็นยอดก่อนสั่ง รวมค่าส่งและส่งฟรีเมื่อซื้อครบยอดที่ร้านตั้งไว้
- ไม่ต้องมีเซิร์ฟเวอร์ ส่งเข้า LINE คัดลอก หรือดาวน์โหลดสรุปออเดอร์ได้
ถ้าอยากรวมลิงก์ร้านทุกช่องทางไว้หน้าเดียว ดู Prompt สร้างหน้าลิงก์รวมช่องทางร้าน ส่วนร้านอาหารใช้ Prompt สร้างเมนูร้านอาหารออนไลน์ จะตรงกว่า
คำถามเกี่ยวกับ Prompt นี้
ใช้กับ LINE ส่วนตัวได้ไหม
ลิงก์ส่งข้อความอัตโนมัติใช้ได้กับ LINE Official Account เท่านั้น ถ้าใช้ LINE ส่วนตัว ให้ลูกค้ากดคัดลอกข้อความแล้วไปวางในแชตเอง
สินค้าหมดแล้วหน้าเว็บรู้เองไหม
ไม่รู้ครับ ร้านต้องแก้สถานะในไฟล์แล้วอัปโหลดใหม่ ถ้าสินค้าหมดไวมาก ให้ยืนยันของในแชตก่อนรับเงินทุกครั้ง
ใส่สินค้าได้กี่รายการ
หลายสิบรายการใช้ได้สบาย ถ้าหลักร้อยรายการหรือมีรูปเยอะ ควรย่อรูปให้เล็กลงก่อน หน้าเว็บจะได้เปิดเร็วในมือถือ
ต้องเสียเงินไหม
ใช้ AI รุ่นฟรีเขียนได้ เอาขึ้น Netlify Drop หรือ GitHub Pages ฟรี และ LINE Official Account มีแพ็กเกจฟรี ถ้าจะใช้ชื่อเว็บของร้านเองค่อยซื้อโดเมนเพิ่ม
ข้อควรระวังหน้าเว็บนี้ไม่ตัดสต๊อกและไม่ยืนยันออเดอร์ให้เอง ร้านต้องตอบยืนยันทุกออเดอร์ในแชต และอย่าเก็บเลขบัตรประชาชนหรือข้อมูลอ่อนไหวของลูกค้า
