Jump to content

Displaying product dimensions in a summary block

Recommended Posts

Hi there!

I'm using a summary block to build my customer facing product store so that I can limit my displayed stock to exactly 30 products. Within the summary block, I am able to display product name, price, and image very easily, however I'm struggling to display dimension as it isn't a default piece of metadata that is integrated with the summary block.

Each product has been given dimensions via .csv import under the "Width" and "Height" field, but I have no idea how to access and display that info. Clearly those fields are intended for use for shipping, but I see no reason why I shouldn't be able to access them through some sort of code. I just don't have much of an idea how to get at the data and display it in the summary block. 

Any ideas? The website page is here: www.twomoons.io/shop

Thanks!

Link to comment
  • Replies 2
  • Views 310
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

3 minutes ago, TwoMoonsAI said:

Each product has been given dimensions via .csv import under the "Width" and "Height" field, but I have no idea how to access and display that info. Clearly those fields are intended for use for shipping, but I see no reason why I shouldn't be able to access them through some sort of code. 

You won't be able to pull the size information into the Summary Block because this data isn't available (Squarespace don't expose the shipping information in the markup). 

However, you could add the available sizes as tags instead. If you enable tags as the Primary or Secondary Metadata (see below) the sizes will then appear in the Summary Block beside the title and price

image.thumb.png.5f6bda1c1ea45c289eb75d850da34365.png

Did this help? Please give feedback by clicking an icon below  ⬇️

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment

Hi Paul,

Thanks for the prompt reply - much appreciated! Tags weren't a great solution as we tend to have a wide variety of potential dimension options, and moving between these seemed like more hassle that it was worth. 

In case anyone in future comes here wondering what I did, I just made the compromise of limiting the product description to dimensions and displaying the excerpt on the summary page. The only issue was text formatting, but solved that through a direct CSS script to reduce text size to fit in line with my page.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.