Feature/store Page Patterns - #102
Merged
Merged
Conversation
Add page-level patterns for the WooCommerce store subsite: - page-store-homepage.php: Combines woo-hero, woo-ticker, woo-shop-categories, woo-signature-pieces, woo-our-story, woo-testimonials, and woo-newsletter - page-store-shop.php: Minimal page with banner header for product catalog - page-store-cart.php: Full cart page layout - page-store-checkout.php: Full checkout page layout These follow the page pattern strategy from ELAYNE-PAGE-PATTERNS-PLAN.md and match the structure of existing page patterns like page-homepage.php.
- Updated style.css version from 4.7.4 to 4.8.0 - Updated package.json version from 4.7.4 to 4.8.0 - Updated readme.txt Stable tag from 4.7.4 to 4.8.0 - Added 4.8.0 changelog entry to readme.txt with ADDED entries for store page patterns - Added 4.8.0 changelog entry to CHANGELOG.md with Added section for store page-level patterns
commented out as it made button visibiity zero post hover on actual produc li item & image
jasperf
force-pushed
the
feature/store-page-patterns
branch
from
July 29, 2026 07:34
a10389c to
bea52db
Compare
The orange background relied on --wp--preset--color--orange, which is only registered by the Store global style variation. When that variation isn't active the var() is invalid, background-color falls back to transparent, and the button disappears over the product image on hover. Add a hardcoded hex fallback so the hover state degrades gracefully either way.
Show the actual shop page title instead of the WP_Term fallback when the hero renders on the main shop archive rather than a category term.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This release adds four new WooCommerce store page patterns for the demo store subsite, bundling homepage, shop, cart, and checkout layouts as reusable page-composition patterns rather than one-off templates. The patterns follow the theme's Ollie-style composite convention, referencing existing section patterns via block refs rather than hardcoding markup, so the pages stay easy to maintain and override. This work ships as version 4.8.0, with the changelog,
style.css, andreadme.txtupdated in a dedicated version-bump commit following the atomic-commit convention. It also includes two follow-up fixes found while reviewing the new patterns on the store subsite: an add-to-cart button hover state on the category product grid, and a shop-page hero title that showed a generic fallback instead of the shop page's own title. Overall the change is additive: no existing patterns, templates, or theme architecture were modified.Store Page Patterns:
patterns/page-store-homepage.php,patterns/page-store-shop.php,patterns/page-store-cart.php, andpatterns/page-store-checkout.php, providing full-page compositions for the four core WooCommerce store subsite pages.Version Management:
style.cssandreadme.txt'sStable tag, following the project's three-file version convention.CHANGELOG.mdentries documenting the new store page patterns and the two fixes below, without bumping the version further for this PR's follow-up work.Add to Cart Button Hover Fix:
background-color: var(--wp--preset--color--orange)) went fully transparent — and effectively invisible over the product photo — whenever the active global style variation didn't register--wp--preset--color--orange(that custom property only exists in the "Store" style variation, not the basetheme.json). An invalidvar()reference falls back to the property's initial value rather than being skipped, so the background silently dropped out.background-color: var(--wp--preset--color--orange, #E65C00)inassets/styles/block-styles/elayne-category-products.css, adding a hardcoded fallback so the hover state degrades gracefully regardless of which global style variation is active.Shop Page Hero Title Fix:
woo-category-hero.php(used by botharchive-product-store.html, the shop page template, andtaxonomy-product_cat-store.html, the category archive template) derives its<h1>fromget_queried_object(), expecting aWP_Termon category/tag archives. The shop page's queried object is aWP_Post, not aWP_Term, so the hero always fell through to a hardcoded "Collection" fallback there — visible at/store-patterns/shop/.is_shop()branch that prints the shop page's own title (get_the_title( wc_get_page_id( 'shop' ) )) in that case. TheWP_Termbranch used by category archives is untouched, sotaxonomy-product_cat-store.htmlis unaffected.Files Changed:
CHANGELOG.md(Modified)package.json(Modified)readme.txt(Modified)style.css(Modified)assets/styles/block-styles/elayne-category-products.css(Modified)patterns/woocommerce/woo-category-hero.php(Modified)patterns/page-store-cart.php(Added)patterns/page-store-checkout.php(Added)patterns/page-store-homepage.php(Added)patterns/page-store-shop.php(Added)