Shop: pick photos, and colors from a drop-down #33

Merged
jcoffey-dev merged 2 commits from shop/photo-gallery into main 2026-10-17 01:12:39 +00:00
Owner

Product pages put a small copy of every photo under the large one; picking one (a click or the arrow keys) shows it large. Radio buttons and CSS do it, with no script.

A product whose sizes come in colors gets a Color drop-down: only that color's sizes show, a size already picked carries over, and the photos switch to that color's. Packs can't carry scripts, so this one ships with HotDog like the cart's ({{ variantPicker }}), and only when some page has colors. Without it the page lists every color as before.

The Fourthwall import marks each photo with the color it shows, and -photos now counts per color.

Shop pack 1.4.0. New strings: "Color" (the drop-down's default label) and "Photos" (the picker's label).

Product pages put a small copy of every photo under the large one; picking one (a click or the arrow keys) shows it large. Radio buttons and CSS do it, with no script. A product whose sizes come in colors gets a Color drop-down: only that color's sizes show, a size already picked carries over, and the photos switch to that color's. Packs can't carry scripts, so this one ships with HotDog like the cart's (`{{ variantPicker }}`), and only when some page has colors. Without it the page lists every color as before. The Fourthwall import marks each photo with the color it shows, and `-photos` now counts per color. Shop pack 1.4.0. New strings: "Color" (the drop-down's default label) and "Photos" (the picker's label).
jcoffey-dev added 2 commits 2026-10-17 00:39:10 +00:00
Product pages put a small copy of every photo under the large one. Picking
one, with a click or the arrow keys, shows it large. Plain radio buttons
and CSS do it, with no script; a product with one photo shows no row.
Shop: pick a color from a drop-down, and see its photos
ci / go (pull_request) Successful in 1m32s
ci / editor-ui (pull_request) Successful in 1m33s
89faa7b939
A product whose sizes come in colors gets a Color drop-down. Only the
chosen color's sizes show, a size already picked carries over, and the
photos switch to that color's. The script ships with HotDog like the
cart's, only when some page has colors; without it the page lists every
color as before.

The Fourthwall import marks each photo with the color it shows, and
-photos now counts per color.
jcoffey-dev merged commit 2e865388de into main 2026-10-17 01:12:39 +00:00
jcoffey-dev deleted branch shop/photo-gallery 2026-10-17 01:12:39 +00:00
Sign in to join this conversation.