Commit Graph

13 Commits

Author SHA1 Message Date
Roman Pyrih
4bbd4973b9 Save 2026-05-05 16:01:40 +02:00
59410b9825 Save 2026-05-04 15:50:30 +02:00
7ac795ba3f feat(new-layout): add-to-cart handler + piece configurator (Phase 02 plans 01-02)
Plan 02-01 (piece/crop configurator, complete):
- #piece reuse z shared partial product-cover-thumbnails.tpl
- 8 hidden inputs (is_crop, crop_pos_x/y, crop_width/height, piece_bg_top/left, is_reflection) w formie #add-to-cart-or-refresh
- Defensive setup w custom.js: setTimeout(600) init, no-op override totalpriceinfospecific/prod, DOM stubs
- CSS scope pod body#product .product-size-data .product-size-data--new

Plan 02-02 (add-to-cart submission, PARTIAL):
- Capture-phase native addEventListener (useCapture=true) blokuje PS core crash
  (button poza formą w nowym layoucie — closest('form') zwracało 0)
- Manualny AJAX POST: form.serialize() + qty + add=1&action=update do /pl/koszyk
- Fancybox-blocker port z custom.js:327 (nie odpalał się bo selector 0 matches)
- Manual sync is_crop/crop_width/height przed POST (obejście crash checkedHandler)
- prestashop.emit('updatedCart') + defensive blockcart refresh fetch
- Loading spinner + success flash CSS
- Inline handler mirror w product.tpl z idempotency guard (window.__p02p02Bound)
  — cache-buster dla browser cachowanego custom.js

Deferred do Plan 02-03 (customization + modal blocker dla production):
- Customization nie zapisuje się (squaremeter hook gate'owany discretion=on + brak dimension fields)
- Success modal (wymaga POST do /module/ps_shoppingcart/ajax)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 23:33:45 +02:00
161c090ef0 product structure 2026-04-09 14:30:11 +02:00
Roman Pyrih
bcfc7c55ae New Page 2026-03-11 10:45:20 +01:00
49a38bfea8 Save 2026-03-02 16:09:56 +01:00
b82b1200f7 Save 2026-02-25 13:22:46 +01:00
Roman Pyrih
e579d0a597 Save 2026-02-24 15:30:37 +01:00
Roman Pyrih
34c56d8409 save 2026-02-24 14:32:16 +01:00
f0ccc5353d Save 2026-02-23 15:57:03 +01:00
Roman Pyrih
e901917065 Save 2026-02-20 15:59:49 +01:00
Roman Pyrih
8dbdb723fd Change product material box 2024-12-18 13:17:54 +01:00
8e6cd8b410 first commit 2024-12-17 13:43:22 +01:00