Installation & Theme App Embed Setup — RUTHH COD Form & Upsells
Goal and Expected Result
Section titled “Goal and Expected Result”Activate the RUTHH COD Form & Upsells Theme App Embed (cod-app-embed) in your Shopify Theme Editor so the COD button, modal/inline form, and storefront coordinators load on your store without editing theme.liquid.
Preconditions
Section titled “Preconditions”- RUTHH COD Form & Upsells is installed on your Shopify store.
- You have permission to edit the active theme in Online Store → Themes.
- At least one delivery country is enabled in Form Builder → Form Designer (Countries card).
Numbered Instructions
Section titled “Numbered Instructions”1. Open the Theme Editor from the App Home Checklist
Section titled “1. Open the Theme Editor from the App Home Checklist”- In Shopify Admin, open RUTHH COD Form & Upsells (
/app). - Locate the Theme App Embed status card on the Home setup checklist.
- Click Enable in Theme Editor. This uses
buildThemeEditorUrlto open your active theme editor with thecod-app-embedextension pre-selected (?context=apps&activateAppId={apiKey}/cod-app-embed).
2. Save the App Embed in Shopify Theme Editor
Section titled “2. Save the App Embed in Shopify Theme Editor”- In the left sidebar of the Shopify Theme Editor (under the App embeds tab), verify that RUTHH COD Form & Upsells is toggled On.
- Click Save in the top-right corner of the Theme Editor.
- Return to the RUTHH COD Form & Upsells Admin tab. The app uses
useEmbedActivation()(shopify.app.extensions()) on window focus to detect activation and updates the status badge to Active.
3. Optional: Place the Manual Product Block (cod-form)
Section titled “3. Optional: Place the Manual Product Block (cod-form)”By default, the App Embed (cod-app-embed) automatically coordinates placement on product pages (form[action*="/cart/add"]) and cart pages/drawers (button[name="checkout"], input[name="checkout"]).
If you want to control the exact vertical position of the COD trigger or embedded form inside a specific product template:
- In Shopify Theme Editor, navigate to Products → Default product (or your custom product template).
- Under the Product information section, click Add block and select COD Form (
cod-form) under Apps. - Drag the block to your preferred position (for example, directly below the variant picker or buy buttons) and click Save.
Warnings and Edge Cases
Section titled “Warnings and Edge Cases”- Unpublished themes: If you are testing on a draft/unpublished theme, open the Theme Editor for that specific theme via Online Store → Themes → Customize and enable the App Embed under App embeds.
Troubleshooting Steps
Section titled “Troubleshooting Steps”- Status badge still says “Inactive” after saving in Theme Editor:
- Confirm you saved the App Embed on your published (live) theme rather than a draft theme.
- Click back into the app window or refresh
/appsoshopify.app.extensions()re-queries the active theme state.
- COD button does not appear on Product or Cart pages after activation:
- Check Settings → Visibility (
/app/settings) and verify Form Display is not set toDisabled(or restricted toCart page onlywhen viewing a product page). - Verify the product is not excluded by your product/collection targeting rules or min/max subtotal bounds.
- Check Settings → Visibility (