Dedicated cart page: commerce_cart binding claims <main> and overlaps the checkout commerce_cart_link binding
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by tracing how the commerce_cart and commerce_cart_link bindings are produced for dedicated cart pages, then read the related fixes in #6302 and #6532. Reproduce with the ranges in website/cart/index.html and inspect the binding preflight mentioned in the issue. Done means the cart page imports without overlapping bindings, with the conflict resolved where the bindings are produced.
Written by the indexing model from the issue text.
Description
Summary
On a Shopify store's dedicated /cart page, the commerce_cart binding claims the whole <main id="MainContent">. The checkout button inside it also gets its own commerce_cart_link binding. SSI's runtime binding preflight rejects the overlap, and the whole import fails:
static_site_importer_runtime_binding_claim_conflict: Provider entity bindings claim overlapping canonical source-page ranges.
This follows on from #6302 / #6532. That fix stops the cart scope before containers of page landmarks. On a dedicated cart page, the scope still lands on the <main> landmark itself, which contains the cart-link anchor.
Reproduction
https://neurodivergentle.com/, a Shopify store, imported on SSI 1.39.38. It also failed in production on 2026-11-29 (SSI 1.39.2x).website/cart/index.html:carts/commerce_cartbinding: range 68187–85525, thewp:groupMainContent<main>.cart_links/commerce_cart_linkbinding: range 78516–79941,wp:buttonanchor:"checkout"(type:"submit"), selectormain > … > button. This is inside the cart range.
- The binding ranges were captured by temporary logging in
Static_Site_Importer_Runtime_Entity_Binding_Validation::preflight_runtime_entity_binding_anchors().
Expected
Bindings from one source page never overlap, and the cart page imports. Pick whichever of these is cleaner at the owning layer:
- A cart-link anchor inside a resolved cart scope belongs to that cart, because the native cart block renders its own checkout. Don't emit it as a separate binding.
- Or narrow the cart scope so it excludes independently bound controls.
Overlapping provider bindings should be resolved where they are produced, not left for the SSI preflight to reject the entire import.
- Dominant language
- PHP
- Stars
- 31
- Forks
- 7
- Avg merge
- 5h 48m
- Merged PRs (30d)
- 796
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/blocks-engine
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Automattic/blocks-engine#4943 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Automattic/blocks-engine#4942 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Automattic/blocks-engine#4921 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Automattic/blocks-engine#775 ·
Maintainers usually reply within 1 day
-
perf: a full CSS syntax memo stops memoizing, so per-route stylesheet passes re-split the same selectors (asset_writes, 56-page import)Possibly taken @chubes4 claimed this today. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Automattic/blocks-engine#7655 ·
Maintainers usually reply within 1 day
All issues in Automattic/blocks-engine
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Codeinwp/optimole-wp#1259 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Sylius/SyliusResourceBundle#1179 ·
-
repo:ckeditor
Difficulty 1/5 Under an hour Newbie friendliness 78/100
craftcms/ckeditor#682 · 1 comment ·
Maintainers usually reply within 1 day