Okay
  Public Ticket #2415430
Custom swatches sizes
Closed

Comments

  • FelipeMartinin started the conversation

    Hi guys.

    The swatches sizes generated by the theme are too small. How to size custom them? 


    Thanks in advance.



  • FelipeMartinin replied

    Hi! 

    I followed the article instructions, but looks like it didn't work. Can you guys help me? 

    I edited the file: app/design/frontend/Mgs/supro/etc/view.xml

    More details in attachment.


    Thanks a lot in advance. 

  • [deleted] replied

    Hello,

    Sorry this is not our support scope, I can't support it for free


  • FelipeMartinin replied

    Hi! 

    According with the Magento 2 official document: "The size and dimensions of the swatch is determined by the theme. As a general rule, saving an image as a square helps to preserve the aspect ratio of a pattern."

    I'm not asking to you guys do the job to me, just instruct me how to change it in you guys theme. That would make me a very happy customer.

    Follow references: https://docs.magento.com/user-guide/catalog/swatch-create.html


    Thanks in advance

  • [deleted] replied

    Hi

    I have made for you, just the code is not true, it should be

    2245396093.png

    instead of 

    swatch_image_base

  • FelipeMartinin replied

    Hi! 

    Where did you placed this snippet? I had to restore a backup and I lost your update. I tried to do it by myself again and didn't work =/ 


    Thanks a lot in advance! 

  • [deleted] replied

    HI

    I have made in this file

    app/design/frontend/Mgs/supro/etc/view.xml

  • FelipeMartinin replied

    This is exactly the same file that I placed the snippet in my last post attachment. Why it didn't work? I placed in a right place? 


    Thanks! 

  • [deleted] replied

    Hello,

    You did wrong

    https://prnt.sc/swaj5e

    it is not correctly, I have made again for you, please keep it for future