Jump to content

Replace footer on cart page only?

Go to solution Solved by e2astudio,

Recommended Posts

Hi all,

Is it possible to replace the footer on only the cart page? I'd like to display some payment processor icons but only during the purchasing process. Is there another way of accomplishing this that I'm not aware of?

Site: shuifeng.squarespace.com

Thanks.  

Link to comment
9 minutes ago, ShuiFeng said:

Is it possible to replace the footer on only the cart page?

The cart page is generated automatically - there isn't a page you can edit. To do this easily (without requiring Javascript to manually create the elements and add them to the cart page when it appears) you'll probably want to add the icons to your site footer, and then hide the icons on other pages using CSS. 

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

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

Please see the following if you need a set of payment processor icons. Check that it contains the icons you need. You should be able to do as @e2astudio suggests and hide the icons for all but the cart page.

 Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

This is all very helpful, thank you guys!

I'm a bit stuck at the beginning though. @e2astudio how do I add images via a code block - I'm coming up empty in my searches? I uploaded the image I want to use to the Gallery, but how do I get its web address in order to insert it into the code block? Can the image be linked from the Gallery or do I have to host it externally? ...then how do I assign that image a class? 

Thanks

Link to comment
7 minutes ago, ShuiFeng said:

I'm a bit stuck at the beginning though.

I see. I misunderstood - I thought you already had that figured, just needed help to show only on cart.

It will take some custom code to complete using .svg icons. You can't do it with a traditional image from a gallery.

Link to comment
Quote

I used a standard image (.png), and found the image location (hosted on Squarespace's CDN) with Developer Tools in Chrome. It's possible to do it that way though right?

You can do it this way.

I don't have a solution using this method though.

I prefer to use SVGs, which my code does, as they tend to look better at smaller sizes than images. But again, my code is only good if it has all the payment processors you need to display.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • Solution

You can, but there's no easy way to hide it when it's placed using Fluid Engine. Instead, place the image in a Code Block wrapped in a `<div>` - something like this:

<div class="payment-icons" style="text-align:center;">
  <img src="https://images.squarespace-cdn.com/content/v1/627082fb22c34f331451d6b6/edb21702-9537-470f-a4a5-e349ea0d099c/Payment+Processor+Icons+1.png">
</div>

Then, with that Custom CSS snippet above, you should be okay to go.

Edited by e2astudio
accuracy
Link to comment

Ok, I've done as suggested and placed the code below into a code block in the footer but it doesn't display the image at all. What am I missing?
(the image currently displayed is just the static image I uploaded, the blank space above it is where I placed the code block)

EDIT: I got it. I removed the "data" from <img data-src="https://..." and the image is now displayed. Works great! Thank you! I just have to adjust the padding and remove the box shadow and it'll be perfect. 

<div class="payment-icons" style="text-align:center;">
  <img data-src="https://images.squarespace-cdn.com/content/v1/627082fb22c34f331451d6b6/edb21702-9537-470f-a4a5-e349ea0d099c/Payment+Processor+Icons+1.png">
</div>

 

Edited by ShuiFeng
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.