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
  • Views 826
  • 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.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.