Earn points and vouchers on every order, online or in a branch.
+
For institutions
Supplying a hospital, clinic or company? Let's onboard you.
-
146+ institutions already buy from Gishen. Our B2B portal opens alongside the store. Call or email us now and your account will be ready on day one.
+
146+ institutions already buy from Gishen. Our B2B portal opens alongside the store. Sign up now and your account will be ready on day one.
- Bulk orders and quick reorders for medicines and medical supplies
- Team accounts with purchase approvals
@@ -467,17 +443,33 @@
+
+
+
We'll reply within one working day.
@@ -509,7 +501,7 @@
When does the online store open?
We're in the final stretch. Everyone on the waitlist hears first, by SMS or email, the day orders open.
Can I order prescription medicines?
Yes. Upload a photo of your prescription and a licensed Gishen pharmacist reviews it before your order is prepared.
Where do you deliver?
We start across Addis Ababa, delivering from our seven branches. You can also pick up from your nearest branch.
- What if you don't stock what I need?
Use the special order form. A pharmacist will source it through our suppliers and call you with the price and timing before anything is ordered.
+ What if you don't stock what I need?
When we launch, you can place a special order in the app. A pharmacist sources it through our suppliers and calls you with the price and timing before anything is ordered.
How do institutions get onboarded?
Call +251 930 099 850 or email b2b@gishenpharmacy.org with your institution's details. We'll set up your B2B account before launch.
What do you do with my details?
We use them only to tell you when we open. We never sell or share them, and we'll delete them whenever you ask.
@@ -676,31 +668,31 @@
}
});
- // Special orders: rows go to the "Special orders" sheet. Without an ENDPOINT the request opens in WhatsApp instead, so nothing is lost.
- const sform = $('sform'), sErr = $('sErr'), sBtn = $('sSubmit');
- sform.addEventListener('submit', async (e) => {
- e.preventDefault(); sErr.textContent = '';
+ // Institution sign-ups go to the "Institutions" tab. Without an ENDPOINT the details open as a pre-filled email instead.
+ const bform = $('bform'), bErr = $('bErr'), bBtn = $('bSubmit');
+ bform.addEventListener('submit', async (e) => {
+ e.preventDefault(); bErr.textContent = '';
const v = (id) => $(id).value.trim();
- const phone = normPhone(v('sPhone'), 'ET');
- const bad = [['sItem', v('sItem').length < 2, 'Tell us which medicine or product you need.'], ['sName', v('sName').length < 2, 'Please enter your name.'], ['sPhone', !phone, 'Please enter a phone number, e.g. 0911 234 567, or +country code.']];
- bad.forEach(([id, b]) => $(id).setAttribute('aria-invalid', String(b)));
+ const phone = normPhone(v('bPhone'), 'ET'), email = v('bEmail').toLowerCase();
+ const bad = [['bOrg', v('bOrg').length < 2, "Please enter your institution's name."], ['bName', v('bName').length < 2, 'Please enter a contact person.'], ['bPhone', !phone, 'Please enter a phone number, e.g. 0911 234 567, or +country code.'], ['bEmail', email && !emailOk(email), 'Please check the email, or leave it empty.']];
+ bad.forEach(([id, b]) => $(id).setAttribute('aria-invalid', String(!!b)));
const first = bad.find(([, b]) => b);
- if (first) { sErr.textContent = first[2]; $(first[0]).focus(); return; }
- const data = { type: 'special', item: v('sItem'), qty: v('sQty'), name: v('sName'), phone, notes: v('sNotes'), company: $('sCompany').value, page: location.href, createdAt: new Date().toISOString() };
+ if (first) { bErr.textContent = first[2]; $(first[0]).focus(); return; }
+ const data = { type: 'b2b', institution: v('bOrg'), kind: $('bType').value, name: v('bName'), phone, email, orders: v('bOrders'), company: $('bCompany').value, page: location.href };
if (!ENDPOINT) {
- const msg = `Special order request\nItem: ${data.item}${data.qty ? `\nQuantity: ${data.qty}` : ''}\nName: ${data.name}\nPhone: ${phone}${data.notes ? `\nNotes: ${data.notes}` : ''}`;
- open('https://wa.me/251930099850?text=' + encodeURIComponent(msg), '_blank', 'noopener');
+ const body = `Hello Gishen team,\n\nWe would like to be onboarded as a B2B customer.\n\nInstitution: ${data.institution}\nType: ${data.kind}\nContact person: ${data.name}\nPhone: ${phone}${email ? `\nEmail: ${email}` : ''}${data.orders ? `\nWhat we usually order: ${data.orders}` : ''}\n\nThank you.`;
+ location.href = `mailto:b2b@gishenpharmacy.org?subject=${encodeURIComponent('B2B onboarding: ' + data.institution)}&body=${encodeURIComponent(body)}`;
return;
}
- sBtn.disabled = true;
+ bBtn.disabled = true;
try {
const res = await fetch(ENDPOINT, { method: 'POST', headers: { 'Content-Type': 'text/plain;charset=utf-8' }, body: JSON.stringify(data) });
const out = await res.json().catch(() => ({}));
if (!res.ok || !out.ok) throw new Error(out.error || res.status);
- sform.innerHTML = `Request received.
A Gishen pharmacist will call you within one working day.
`;
+ bform.innerHTML = `Thanks, ${data.institution.replace(/[<>&"]/g, '')} is signed up.
Our B2B team will call you within one working day.
`;
} catch {
- sErr.textContent = 'Something went wrong. Please try again, or call us on +251 930 099 850.';
- sBtn.disabled = false;
+ bErr.textContent = 'Something went wrong. Please try again, or call us on +251 930 099 850.';
+ bBtn.disabled = false;
}
});
diff --git a/tools/waitlist-apps-script.gs b/tools/waitlist-apps-script.gs
index 1804f78..d216544 100644
--- a/tools/waitlist-apps-script.gs
+++ b/tools/waitlist-apps-script.gs
@@ -18,20 +18,23 @@ function doGet() {
return json_({ count: Math.max(sheet_().getLastRow() - 1, 0) });
}
-const SPECIAL_HEADERS = ['createdAt', 'item', 'qty', 'name', 'phone', 'notes', 'page', 'status'];
+const B2B_HEADERS = ['createdAt', 'institution', 'type', 'contact', 'phone', 'email', 'orders', 'page', 'status'];
+const B2B_TYPES = ['Hospital', 'Clinic', 'Company', 'NGO', 'Pharmacy', 'Other'];
-// Special order requests live on their own tab, so the waitlist count (first tab) stays right.
-function special_(d) {
- const item = String(d.item || '').trim().slice(0, 200);
+// Institution sign-ups live on their own tab, so the waitlist count (first tab) stays right.
+function b2b_(d) {
+ const org = String(d.institution || '').trim().slice(0, 160);
const name = String(d.name || '').trim().slice(0, 120);
const phone = /^\+\d{8,15}$/.test(d.phone || '') ? d.phone : '';
- if (item.length < 2 || name.length < 2 || !phone) return json_({ ok: false, error: 'invalid' });
+ const email = /^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(d.email || '') ? String(d.email).toLowerCase().slice(0, 200) : '';
+ if (org.length < 2 || name.length < 2 || !phone) return json_({ ok: false, error: 'invalid' });
+ const kind = B2B_TYPES.includes(d.kind) ? d.kind : 'Other';
+ const orders = String(d.orders || '').slice(0, 500);
const ss = SpreadsheetApp.getActiveSpreadsheet();
- const sh = ss.getSheetByName('Special orders') || ss.insertSheet('Special orders');
- if (sh.getLastRow() === 0) sh.appendRow(SPECIAL_HEADERS);
- const qty = String(d.qty || '').slice(0, 100), notes = String(d.notes || '').slice(0, 500);
- sh.appendRow([new Date(), item, qty, name, "'" + phone, notes, String(d.page || '').slice(0, 200), 'new']);
- if (NOTIFY) MailApp.sendEmail(NOTIFY, 'Special order request: ' + item, [item, qty, name, phone, notes].filter(String).join('\n'));
+ const sh = ss.getSheetByName('Institutions') || ss.insertSheet('Institutions');
+ if (sh.getLastRow() === 0) sh.appendRow(B2B_HEADERS);
+ sh.appendRow([new Date(), org, kind, name, "'" + phone, email, orders, String(d.page || '').slice(0, 200), 'new']);
+ if (NOTIFY) MailApp.sendEmail(NOTIFY, 'New institution sign-up: ' + org, [org + ' (' + kind + ')', name, phone, email, orders].filter(String).join('\n'));
return json_({ ok: true });
}
@@ -39,7 +42,7 @@ function doPost(e) {
try {
const d = JSON.parse(e.postData.contents || '{}');
if (d.company) return json_({ ok: true }); // honeypot: bots fill the hidden field
- if (d.type === 'special') return special_(d);
+ if (d.type === 'b2b') return b2b_(d);
const name = String(d.name || '').trim().slice(0, 120);
const phone = /^\+\d{8,15}$/.test(d.phone || '') ? d.phone : '';
const email = /^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(d.email || '') ? String(d.email).toLowerCase().slice(0, 200) : '';