K
K
kk952019-10-03 13:17:48
Layout
kk95, 2019-10-03 13:17:48

opencart 2.3. How to swap the location of blocks in the mobile version in the product card?

By default, in Opencart 2.3, the product card in the mobile version looks like this (from top to bottom): product photo, then comes its description, and only then the buy button. As a result, to get to the purchase, you have to "scroll the screen down for a long time." It is necessary that the buy button was before the description.
There are two blocks: col-sm-8 (photo and product description) and col-sm-4 (price and buy button)
And when you switch to mobile, col-sm-4 loses float: left; Well, it goes down accordingly.
How to insert it between a block with a photo and a block with a description? Only with a script or can you just use CSS (if so, how)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex-1917, 2019-10-04
@alex-1917

  1. col-sm-4 rearrange above block col-sm-8
  2. for block col-sm-4 add class float-md-right

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question