Jump to content

Inserting Same Additional Info Block to Products in Category

Recommended Posts

Hi

I am adding products to my store. There are 3 main categories. I would like to add 'Additional Info' under each product in each category. The products have the same Additional Info but if I want to change them I have to change them all individually.

Is there a way to make one file of Additional Info and pull it into all products in that category? So I can simply change one Additional Info section and it updates all?

Thanks

Mark

Link to comment
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

There isn't a "feature" that can do this, but a developer could write some code to achieve this, pulling in content according to the product's category. That said, it will depend on the content that you want to add. For example, it may be a few simple lines of text or it may be structured content consisting of different blocks.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
On 3/6/2022 at 3:40 AM, SparkyMark said:

Thanks.

It doesn't need to be dependant on category. It's just that if I have 30 products with the same Additional Info and I wanted to change a common detail I would need to change 30. 

If you share link to a product + describe text you want to add, we can give the code to add text to 30 products

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 1 month later...

Hi @tuanphan

I'm hoping to do the same thing, but I notice that SparkyMark didn't provide you an example to create the example code.

I'm wondering if it would be possible to do it this way:

1. Create an individual page with the text (formatting included), and leave it unlinked on my site.

Example of what I need: https://www.whoishenri.com/product-information

2. Embed the content of this page through a custom code block on to every product's "additional info" section on the product page (I've tried using the SS embed feature to do this, but it won't work).

Example product page to display content (it's currently manually inserted on to this page to show you what it would look like): https://www.whoishenri.com/full-collection/p/crisp-sunshine

Thanks!

Cam

Link to comment

Hi @tuanphan

Update...

I've created the following <iframe> code and deployed successfully in the "additional info" section on the product page: https://www.whoishenri.com/full-collection/p/crisp-sunshine

It is now successfully bringing in the information from https://www.whoishenri.com/product-information

Quote

<head>
  <style> iframe { border: none } </style>
</head>
<body>
  <iframe src="https://whoishenri.com/product-information"
          scrolling="yes" width="100%" height="700" allowfullscreen sandbox>
    <p>
      <a href="https://whoishenri.com/product-information">
         Fallback link for browsers that don't support iframes
      </a>
    </p>
  </iframe>
</body>

The remaining challenge I wonder if you could help me with:

  • I don't want to show a scrolling option on desktop/ tablet. But I need to have scrolling="yes" so that the iframe doesn't cut off at 700px on mobile and cut off the information.
  • Is it possible to have a responsive iframe without scrolling?

Thank you!

Cam

Edited by whoishenri_
Responsible = Responsive.
Link to comment
On 4/28/2022 at 5:12 PM, whoishenri_ said:

Hi @tuanphan

Update...

I've created the following <iframe> code and deployed successfully in the "additional info" section on the product page: https://www.whoishenri.com/full-collection/p/crisp-sunshine

It is now successfully bringing in the information from https://www.whoishenri.com/product-information

The remaining challenge I wonder if you could help me with:

  • I don't want to show a scrolling option on desktop/ tablet. But I need to have scrolling="yes" so that the iframe doesn't cut off at 700px on mobile and cut off the information.
  • Is it possible to have a responsive iframe without scrolling?

Thank you!

Cam

Add to Design > Custom CSS

iframe[src*="whoishenri.com"] {
    height: 900px;
}
@media screen and (max-width:991px) {
iframe[src*="whoishenri.com"] {
    height: 1200px;
}
}
@media screen and (max-width:767px) {
iframe[src*="whoishenri.com"] {
    height: 2000px;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.