Jump to content

Add Second Cart to the Page

Recommended Posts

  • Replies 12
  • Created
  • Last Reply

Top Posters In This Topic

37 minutes ago, Nick369 said:

Site URL: https://revisualsla.com/

Hey everyone,

Trying to add a second cart that appears and is sticky regardless of the page you go to and still have the cart in the header.

Please help!

Thank you in advance!

N

Where exactly do you want to put your second cart?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

@Nick369 Try adding to Settings > Advanced > Code Injection > Footer

<!-- Cart in bottom right corner -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
  jQuery(document).ready(function($){
    var clone_cart = $('.header-actions-action.header-actions-action--cart').clone();
    $('footer.sections').append(clone_cart);
})
</script>
<style>
footer.sections .header-actions-action.header-actions-action--cart {
    position: fixed;
    bottom: 2vw;
    right: 2vw;
    z-index: 99999;
}
  footer.sections svg.icon.icon--cart {
    stroke: #1a114b;
}  
</style>

 

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
12 hours ago, tuanphan said:

@Nick369 Try adding to Settings > Advanced > Code Injection > Footer

<!-- Cart in bottom right corner -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
  jQuery(document).ready(function($){
    var clone_cart = $('.header-actions-action.header-actions-action--cart').clone();
    $('footer.sections').append(clone_cart);
})
</script>
<style>
footer.sections .header-actions-action.header-actions-action--cart {
    position: fixed;
    bottom: 2vw;
    right: 2vw;
    z-index: 99999;
}
  footer.sections svg.icon.icon--cart {
    stroke: #1a114b;
}  
</style>

 

Works well! Appreciated!

I do have two more questions though:

1. How can I hide it until after the first item is added to the cart?

2. The amount of items in the cart doesn't change when I add the item, until after I reload the page. The top cart updates right away. Please help!

Thank you!!!

Link to comment
16 hours ago, Nick369 said:

Works well! Appreciated!

I do have two more questions though:

1. How can I hide it until after the first item is added to the cart?

2. The amount of items in the cart doesn't change when I add the item, until after I reload the page. The top cart updates right away. Please help!

Thank you!!!

Can you share link to a product? I don't see shop page nor product page. I think need to test something with add to cart button to fix this problem.

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
9 hours ago, Nick369 said:

Hi tuanphan, here you go https://revisualsla.com/pricing

Thanks for your help!

ah okay thank you. You can remove code I sent, I will test new code

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
On 10/12/2021 at 3:49 AM, Nick369 said:

Copy that, I appreciate your help!

I tested some code & no luck. Can't help you with this. You can find another one.

If you want to remove Cart Quantity Number on new cart icon, I can give the code

 

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
15 hours ago, tuanphan said:

I tested some code & no luck. Can't help you with this. You can find another one.

If you want to remove Cart Quantity Number on new cart icon, I can give the code

 

Yes, please! Better than nothing. I appreciate you giving it a go, not as easy as initially presumed.

Link to comment
13 hours ago, Nick369 said:

Yes, please! Better than nothing. I appreciate you giving it a go, not as easy as initially presumed.

Add to Design > Custom CSS

footer.sections .icon-cart-quantity {
    visibility: hidden;
}

 

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.