Skip to content

Force 2 products per row on mobile for Prettyblock product lists#996

Merged
CySSoO merged 1 commit intoprettyblockfrom
cyssoo/display-products-two-per-row-on-mobile
Mar 9, 2026
Merged

Force 2 products per row on mobile for Prettyblock product lists#996
CySSoO merged 1 commit intoprettyblockfrom
cyssoo/display-products-two-per-row-on-mobile

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Mar 9, 2026

Motivation

  • Ensure Prettyblock product blocks display two items per row on mobile to improve layout consistency and match the intended design.

Description

  • Change default mobile items in views/templates/hook/ever_presented_products.tpl to default:2 and enforce a minimum of mobileItems >= 2 so mobile grids produce two columns (col-6).
  • Apply d-none d-md-block only when a carousel is active by wrapping it with {if isset($carousel) && $carousel} so non-carousel product blocks on mobile can use the 2-column layout.
  • Only views/templates/hook/ever_presented_products.tpl was modified.

Testing

  • The patch was applied successfully using apply_patch and the file was updated as expected.
  • Changes were reviewed with git diff -- views/templates/hook/ever_presented_products.tpl which shows the intended modifications.
  • The change was committed with git add and git commit and git status --short reports no other uncommitted changes.

Codex Task

@CySSoO CySSoO merged commit b5398e4 into prettyblock Mar 9, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant