# EmailJS Template Code for Pottery Website Copy and paste these templates into your EmailJS dashboard. ## Template 1: Main Order Template (ID: template_qf9hvwa) **Template Name:** `pottery_order_confirmation` **Template ID:** `template_qf9hvwa` (matches your script.js config) ### Subject Line: ``` New Pottery Order #{{order_id}} - {{customer_name}} ``` ### HTML Email Body: ```html

🏺 New Order Received

Artisan Pottery Studio

Order Information

📋 Order Summary

Order ID: {{order_id}}

Order Date: {{order_date}}

Total Amount: ${{order_total}}

Items Count: {{items_count}} items

👤 Customer Information

Name: {{customer_name}}

Email: {{customer_email}}

Phone: {{customer_phone}}

Preferred Contact Method: {{preferred_contact}}

📍 Shipping Address

{{shipping_address}}

💳 Payment Information

Preferred Payment Method: {{payment_preference}}

{{#if order_notes}}

📝 Special Instructions

{{order_notes}}

{{/if}}

🛍️ Ordered Items

{{{items_table}}}
Item Name Category Color Unit Price Qty Subtotal
TOTAL ${{order_total}}
⚠️ This order requires payment confirmation before processing.

📞 Next Steps

  1. Contact customer within 24 hours at {{customer_email}} or {{customer_phone}}
  2. Confirm order details and answer any questions
  3. Arrange secure payment using customer's preferred method: {{payment_preference}}
  4. Confirm shipping details and delivery timeline
  5. Begin pottery creation and update customer on progress
  6. Send shipping notification when order is ready

💡 Customer Communication:

A confirmation email copy has been sent to the customer at: {{customer_email}}

``` --- ## Template 2: Contact Form Template **Template Name:** `pottery_contact_form` ### Subject Line: ``` 💬 New Contact Message from {{from_name}} - Pottery Studio ``` ### HTML Email Body: ```html

💬 New Contact Form Message

Artisan Pottery Studio Website

👤 Contact Details

Name: {{from_name}}

Email: {{from_email}}

Date Received: {{contact_date}}

📝 Message Content

{{message}}

💡 To Reply: Simply reply to this email or contact {{from_name}} directly at {{from_email}}

``` --- ## Template 3: Newsletter Subscription Template **Template Name:** `pottery_newsletter_subscription` ### Subject Line: ``` 📧 New Newsletter Subscription - Pottery Studio ``` ### HTML Email Body: ```html

📧 New Newsletter Subscription

Artisan Pottery Studio

📝 Subscriber Information

Email Address: {{subscriber_email}}

Subscription Date: {{subscribe_date}}

📋 Action Required:

Please add {{subscriber_email}} to your newsletter mailing list.

Consider sending a welcome email to the new subscriber!

``` --- ## How to Use These Templates: 1. **Log into your EmailJS dashboard** 2. **Go to Email Templates** 3. **Create New Template** for each one above 4. **Copy and paste** the HTML code into the template editor 5. **Set the Subject Line** as shown above 6. **Save each template** and note the Template IDs 7. **Update your script.js** if template IDs are different ## Template Variables Reference: **Order Template Variables:** - `{{order_id}}` - Unique order number - `{{order_date}}` - Full date and time - `{{order_total}}` - Total amount - `{{customer_name}}` - Customer's full name - `{{customer_email}}` - Customer's email - `{{customer_phone}}` - Customer's phone - `{{preferred_contact}}` - Contact preference - `{{shipping_address}}` - Full shipping address - `{{payment_preference}}` - Payment method choice - `{{order_notes}}` - Special instructions - `{{{items_table}}}` - HTML table of items (note: triple braces) - `{{items_count}}` - Number of items **Contact Template Variables:** - `{{from_name}}` - Contact form sender name - `{{from_email}}` - Contact form sender email - `{{message}}` - Contact form message - `{{contact_date}}` - When message was sent **Newsletter Template Variables:** - `{{subscriber_email}}` - Newsletter subscriber email - `{{subscribe_date}}` - When they subscribed These templates will create professional, branded emails that match your pottery website's aesthetic and provide all the information you need to process orders and customer communications!