Strong N Free Journal / Business Tools
Ask first. Send the information they requested.
A practical walkthrough of how we connect a Shopify Yes/No popup, a scheduled ChatGPT check and a personalized Gmail follow-up—with a recorded answer and checks to prevent repeat emails.
Someone buying DTF transfers may also be interested in wholesale blank garments. At Strong N Free, we ask before sending that information. The customer's answer stays with the order, and a separate process checks whether a follow-up should be sent.
This guide explains the implementation in plain language. It is a theme-specific build, not a universal copy-and-paste installer. You will need access to your Shopify theme, the relevant app connections and an email account authorized to send the messages.
The important distinction: clicking Yes does not send an email directly. Our process checks completed, paid orders on an hourly schedule. It is not an instant Shopify order webhook, and it does not automatically subscribe customers to a newsletter.
1. Define the offer and the audience
Start with one clear question. Our popup asks:
We Offer Blank Garments Wholesale!
Want info sent?
Yes / No
We target qualifying cart items associated with Stock DTF Transfers, Special Effect Prints, DTF Gang Sheet and UV-DTF Stickers Gang Sheet, including their applicable subcategories.
Define what each answer means. Yes requests this information email. No declines this specific offer; it is not a global change to an existing newsletter subscription. Keep the question separate from unrelated marketing permissions.
2. Verify the Shopify and Gmail connections
Use the correct Shopify store and the business Gmail account authorized to send the follow-up. Confirm that the connections available to the scheduled task can:
- Read an order's email, payment status and saved answer.
- Search Gmail Sent for a previous follow-up.
- Send the approved email.
- Add the sent-status tag to the Shopify order.
Test the exact app connections the task will use. If access is denied, report the problem and stop that action. Inaccessible order data must never be treated as a Yes, a No or permission to guess.
3. Make a backup before changing the theme
In Shopify admin, open Online Store → Themes, open the theme's actions menu and choose Duplicate. Give the copy a clear name, then install and test the popup on that copy before publishing.
A theme backup protects the storefront code. It is not a backup of orders or email activity. See Shopify's theme duplication instructions.
4. Build the popup before checkout
This is a custom storefront feature, not a setting that appears automatically inside Shopify's email tools. Our implementation separates the popup from the cart-eligibility check:
| Theme file | Purpose |
|---|---|
snippets/snf-wholesale-interest.liquid |
Popup layout, styling, checkout-button handling and saving the answer. |
sections/snf-wholesale-eligibility.liquid |
Checks the cart and returns eligibility plus any saved choice. |
layout/theme.liquid |
Includes the popup snippet in the storefront. |
Our eligibility logic reads selected main-menu branches and includes specific exclusions. If menu labels or links change, review the targeting again.
When the shopper uses a supported cart checkout button, the code checks the cart. If it qualifies and has no saved Yes or No, the popup appears. Otherwise checkout continues.
This happens before Shopify's hosted checkout. Test the cart drawer, cart page and accelerated-payment routes separately. A theme-level popup does not prove that every express-checkout route is covered.
5. Save Yes or No where the order process can read it
Use one consistent cart attribute name. In our implementation it is Wholesale Blank Garments Info, with a value of Yes or No.
The popup saves the answer through Shopify's locale-aware Cart Ajax API and checks the returned cart to confirm that the value was saved. Shopify documents this in the Cart API reference.
For a completed order, check Additional details in Shopify admin. The email process reads the order's customAttributes; this is separate from the ordinary order Note.
Do not rely only on a browser variable. If saving fails, show a retry message rather than pretending it succeeded. Define and test when a saved cart choice resets so an old answer is not assumed to be a fresh request indefinitely.
6. Approve a useful, personalized email
Our subject is Blank Garments Wholesale Information. The email uses the actual customer first name and exact order number. If no first name is available, the greeting is “Hi there.”
Thanks for asking about our wholesale blank garments. Here's the information you requested with order [order number].
The approved HTML email uses a mobile-friendly, single-column layout with clickable T-shirt, sweatshirt and hoodie photos. Every image has descriptive alternative text and a clear category link beneath it.
Use public image URLs and current collection links rather than customer-uploaded files or prices that may become outdated. Send a sample to the owner for approval before contacting customers.
7. Set precise rules for sending
Our order checks require a paid, uncancelled order, an order email address, an exact Yes answer and no evidence that the follow-up has already been sent. Define a go-live cutoff so the task's date range is deliberate.
- The financial status must be PAID.
- The order must not be cancelled.
- The order must have an email address.
-
Wholesale Blank Garments Infomust equalYes. - The order must be within the approved date range and not already contacted.
Do not send under these rules for No, a missing or unexpected answer, pending payment, authorization-only payment or partial payment. Keep test orders separate from real customer sends.
If older requests need a catch-up, approve that scope separately. A task can operate correctly and still ignore orders outside its configured start date.
8. Check for duplicates in Shopify and Gmail
We use the Shopify order tag wholesale-info-email-sent. Before sending, check that the tag is absent, then search Gmail Sent for the same recipient, subject and exact order number. Inspect possible matches rather than relying on a vague name match.
If the email already exists, do not send another; reconcile the Shopify tag. If there is no match, send once and add the tag only after Gmail confirms success.
If sending succeeds but tagging fails, the Gmail Sent check provides a second record during recovery. If the send outcome is uncertain, inspect Sent before retrying. Avoid overlapping manual catch-up and scheduled sends.
9. Test the complete journey
Use controlled test orders and owner-approved email addresses. Test more than the successful Yes path:
| Test | Expected result |
|---|---|
| Eligible cart, Yes, completed paid order | One personalized email, followed by the sent tag. |
| No, missing answer or unexpected value | No information email. |
| Pending, authorized, partially paid or cancelled order | No email under these rules. |
| Order already contacted | No duplicate. |
| Sent email exists but the tag is missing | Reconcile the tag without resending. |
| Missing order email | Skip the send and report when appropriate. |
| Shopify or Gmail unavailable | Stop the affected action; do not guess or send blindly. |
| Mobile cart, cart drawer and express checkout | Verify coverage and that ordinary checkout still works. |
Check the sender, greeting, order number, all three photos and their links. Remove customer names, email addresses and order details from any public teaching screenshots.
10. Enable the schedule and review its results
Our task is configured to check hourly, not immediately when someone clicks Yes. Test the instructions in a regular session before scheduling them, then review the first scheduled results.
Keep the full rules, exact attribute name, subject, image links and duplicate checks in the task's saved instructions. Availability depends on the tools and permissions available to the task. The official OpenAI documentation on scheduled tasks explains how to manage tasks and inspect recent runs.
After an outage, reconcile qualifying unsent orders within the approved period rather than checking only the most recent hour.
Additional reliability protections to consider
The recorded answer, paid-order checks and duplicate protection are part of the documented workflow. The following are additional recommendations, not a claim that every safeguard is already installed:
- Connection preflight: verify the intended Shopify app and Gmail connections before processing.
- Bounded retries: retry genuinely temporary service errors a limited number of times; do not repeatedly retry a permission denial.
- Visible failure alerts: distinguish a failed check from a disabled schedule and report the affected stage.
- Recovery reconciliation: use the approved date range and sent evidence to catch up safely.
- Independent health monitoring: check the last successful run and flag a paused task. A disabled task cannot reliably monitor itself.
These measures reduce silent failures. They cannot guarantee uninterrupted access, prevent every platform-initiated pause or replace attention to genuine authorization problems.
Two important limits
Gmail does not guarantee the Primary inbox
Sending through Gmail does not guarantee a particular tab or delivery outcome. Gmail automatically categorizes messages, and recipient settings affect placement. A successful test in one inbox is not a guarantee for every customer. See Google's explanation of Gmail categories.
A request for information is not a blanket marketing subscription
Our workflow does not change customer marketing subscriptions. Keep the message focused on what was requested, and review the applicable consent, identification and unsubscribe requirements before expanding it into a broader campaign. Canadian guidance distinguishes responses to specific requests from other commercial messages; consult the CRTC's CASL guidance for details.
Build a workflow around what customers actually ask for
The useful part is the complete process: a clear question, a saved answer, a relevant email and a reliable record of what was sent. Start small, test both Yes and No, and review failures as carefully as successful sends.
Explore wholesale blanks More Strong N Free guides