Problem/Motivation

The original template code on commerce-product.html.twig is:

<article{{ attributes }}>
  <div class="row">
    <div class="col-sm-6">{{- product|without('variation_attributes', 'field_imagen') -}}</div>
    <div class="photo col-sm-6">{{ product.field_imagen }}</div>
  </div>
</article>

And then products just spread over 50% of the screen on small screens and wider when you are not using field_imagen field. In fact, I think this field is not a default commerce field and I don't know what is doing here...

Proposed resolution

Delete this template if default commerce template is applied instead. I can do a patch if requiered ;-)

CommentFileSizeAuthor
#4 barrio_commerce_product.patch1012 bytescalbasi

Comments

calbasi created an issue. See original summary.

calbasi’s picture

Title: Commerce product templates use 50% of width » Commerce product template use 50% of width
Priority: Minor » Normal
hatuhay’s picture

Please provide patch

calbasi’s picture

StatusFileSize
new1012 bytes

Here you are ;-)

calbasi’s picture

Status: Active » Needs review
hatuhay’s picture

Status: Needs review » Fixed

  • hatuhay committed 0b215b4 on 5.x authored by calbasi
    Issue #3163333 by calbasi: Commerce product template use 50% of width
    

  • hatuhay committed f8a52ed on 8.x-4.x authored by calbasi
    Issue #3163333 by calbasi: Commerce product template use 50% of width
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.