Re: Product Grid Layout

Solved

Product Grid Layout

Bramm
Explorer
76 0 7

Hello,

 

I am struggling with the layout of my products on my store.

 

i would like to replace the product title and the product vendor with metafields 

on the first line I want product.metafields.custom.geurnaam  (this one should replace the title)

on the second line I want product.metafields.custom.concentraat 

on the third line I want product.metafields.custom.merk (this one should replace the product vendor)

 

With your help I was able to get this set up in my old theme but unfortunately just copying doesn't help. 

 

The image on the left shows how i want it , the right one shows its current state

 

armani goed.pngarmani slecht.png

https://el5298tkybtt82ws-53265825967.shopifypreview.com 

 

Thank you for the help i appreciate it 

Accepted Solutions (3)

Dan-From-Ryviu
Shopify Partner
11288 2212 2381

This is an accepted solution.

Go to your Online Store > Themes > in the theme you want to edit > click "..." > Edit code > find product-grid-item.liquid file, find this line of code 

<div class="grid-item__meta-main">

Replace 2 lines of code below it with those codes 

<div class="grid-product__title">product.metafields.custom.geurnaam </div>
<div>product.metafields.custom.concentraat</div>
<div class="grid-product__vendor">product.metafields.custom.merk</div>

Save your file

- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

View solution in original post

Rahul_dhiman
Shopify Partner
761 145 157

This is an accepted solution.

hello @Bramm ,

So this would be correct code .

Go to your Online Store > Themes > in the theme you want to edit > click "..." > Edit code > find product-grid-item.liquid file, find this line of code

<div class="grid-item__meta-main">

Replace 2 lines of code below it with those codes

<div class="grid-product__title">{{product.metafields.custom.geurnaam}} </div>
<div>{{product.metafields.custom.concentraat}}</div>
<div class="grid-product__vendor">{{product.metafields.custom.merk}}</div>
Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages

View solution in original post

BSSCommerce-B2B
Shopify Partner
1972 564 566

This is an accepted solution.

Hi @Bramm ,

I have reviewed your requirement, you just need to edit code liquid and the issue will be resolved.  You can follow my instructions! 

Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1718353352550.png

 

Step 2:  Search for the file "product-grid-item.liquid". In this file, search class="grid-item__meta-main" and replace lines of code below it with this code snippet : 

<div class="grid-product__title">{{product.metafields.custom.geurnaam}} </div>
<div>{{product.metafields.custom.concentraat}}</div>
<div class="grid-product__vendor">{{product.metafields.custom.merk}}</div>

In this step, you will  replace the product title and the product vendor with metafields as you describe: 

- The first line I want product.metafields.custom.geurnaam  (this one should replace the title)

- The second line I want product.metafields.custom.concentraat 

- The third line I want product.metafields.custom.merk (this one should replace the product vendor)

 

Step 3: Save your code and reload this page.

 

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir! 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

Replies 4 (4)

Dan-From-Ryviu
Shopify Partner
11288 2212 2381

This is an accepted solution.

Go to your Online Store > Themes > in the theme you want to edit > click "..." > Edit code > find product-grid-item.liquid file, find this line of code 

<div class="grid-item__meta-main">

Replace 2 lines of code below it with those codes 

<div class="grid-product__title">product.metafields.custom.geurnaam </div>
<div>product.metafields.custom.concentraat</div>
<div class="grid-product__vendor">product.metafields.custom.merk</div>

Save your file

- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

Rahul_dhiman
Shopify Partner
761 145 157

This is an accepted solution.

hello @Bramm ,

So this would be correct code .

Go to your Online Store > Themes > in the theme you want to edit > click "..." > Edit code > find product-grid-item.liquid file, find this line of code

<div class="grid-item__meta-main">

Replace 2 lines of code below it with those codes

<div class="grid-product__title">{{product.metafields.custom.geurnaam}} </div>
<div>{{product.metafields.custom.concentraat}}</div>
<div class="grid-product__vendor">{{product.metafields.custom.merk}}</div>
Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages

BSSCommerce-B2B
Shopify Partner
1972 564 566

This is an accepted solution.

Hi @Bramm ,

I have reviewed your requirement, you just need to edit code liquid and the issue will be resolved.  You can follow my instructions! 

Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1718353352550.png

 

Step 2:  Search for the file "product-grid-item.liquid". In this file, search class="grid-item__meta-main" and replace lines of code below it with this code snippet : 

<div class="grid-product__title">{{product.metafields.custom.geurnaam}} </div>
<div>{{product.metafields.custom.concentraat}}</div>
<div class="grid-product__vendor">{{product.metafields.custom.merk}}</div>

In this step, you will  replace the product title and the product vendor with metafields as you describe: 

- The first line I want product.metafields.custom.geurnaam  (this one should replace the title)

- The second line I want product.metafields.custom.concentraat 

- The third line I want product.metafields.custom.merk (this one should replace the product vendor)

 

Step 3: Save your code and reload this page.

 

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir! 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

Bramm
Explorer
76 0 7

You guys are all amazing, thank you!