WooCommerce set TWO image size on the store page

Job ID: 33073698

Budget: $30 – $250 USD

By default, through a function added in functions.php, you can set the size of the ''thumbnail_image_width" of product, which is displayed on the store's website.
I have a special layout - masonry - which generates the positions of elements through JS (using: https://packery.metafizzy.co/), and adapts it to the size that is given in functions.php. Setting it up with CSS is not an option, because the layout still generates incorrectly (with empty space).
The website also uses custom product loop, which consists in adding additional content between products via ACF.
Related categories: PHP JavaScript WordPress CSS WooCommerce