Skip to content

Commit d6230a5

Browse files
committed
Product page: show suit name instead of BED 01, Acquire defaults to black
- Replace "BED 01 · <code>" label with "<code> <name>" on product page - Main page Acquire button adds to cart with default black ink (no redirect) - Card art/cover still links to product page for color selection https://claude.ai/code/session_01VhWRYXbuqapZ9YkvksroaS
1 parent 4ecad38 commit d6230a5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

product.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<!-- LEFT: live plot preview on Strathmore Bristol -->
5151
<div class="pd-stage-wrap">
5252
<div class="pd-stage" id="pdStage">
53-
<span class="pd-bedlabel tiny" id="pdBedlabel">BED 01</span>
53+
<span class="pd-bedlabel tiny" id="pdBedlabel"></span>
5454
<canvas id="pdCanvas"></canvas>
5555
<svg id="pdSvg" preserveAspectRatio="xMidYMid meet" aria-hidden="true"><path id="pdPath" d=""></path></svg>
5656
<button class="pd-replay" id="pdReplay" hidden>▶&#xFE0E; Watch it plot</button>

scripts/product.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
$("pdPrice").textContent = suit.price || "";
3939
$("pdAcquirePrice").textContent = suit.price || "";
4040
$("pdLore").textContent = suit.lore || "";
41-
$("pdBedlabel").textContent = "BED 01 · " + suit.code;
41+
$("pdBedlabel").textContent = suit.code + " " + suit.name;
4242
var sizeM = (suit.edition || "").split("·").pop().trim();
4343
$("pdSize").textContent = sizeM || "11×14″";
4444

scripts/shop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'<button class="plotbtn" data-plot="' + key + '">▶︎ Plot</button>' +
3232
'</a>' +
3333
'<div class="buy"><div><div class="ed">' + s.edition + '</div><div class="t">' + s.code + ' ' + s.name + '</div></div>' +
34-
'<div style="display:flex;align-items:center"><span class="pr">' + s.price + '</span><a class="acq" href="' + href + '">Acquire</a></div></div>';
34+
'<div style="display:flex;align-items:center"><span class="pr">' + s.price + '</span><button class="acq" data-acq="' + key + '" data-color="black">Acquire</button></div></div>';
3535
grid.appendChild(card);
3636

3737
// Crop the viewBox to the suit's actual bounding box (+ padding) so every

0 commit comments

Comments
 (0)