Nick369 Posted October 5, 2021 Share Posted October 5, 2021 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 Link to comment
Beyondspace Posted October 5, 2021 Share Posted October 5, 2021 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? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Nick369 Posted October 6, 2021 Author Share Posted October 6, 2021 17 hours ago, bangank36 said: Where exactly do you want to put your second cart? Hi, bangank36, Thank you for a quick response. At the bottom right corner 🙂 Link to comment
tuanphan Posted October 7, 2021 Share Posted October 7, 2021 @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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nick369 Posted October 7, 2021 Author Share Posted October 7, 2021 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
tuanphan Posted October 8, 2021 Share Posted October 8, 2021 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nick369 Posted October 8, 2021 Author Share Posted October 8, 2021 9 hours ago, tuanphan said: 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. Hi tuanphan, here you go https://revisualsla.com/pricing Thanks for your help! Link to comment
tuanphan Posted October 9, 2021 Share Posted October 9, 2021 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nick369 Posted October 11, 2021 Author Share Posted October 11, 2021 On 10/8/2021 at 7:09 PM, tuanphan said: ah okay thank you. You can remove code I sent, I will test new code Copy that, I appreciate your help! Link to comment
tuanphan Posted October 13, 2021 Share Posted October 13, 2021 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nick369 Posted October 13, 2021 Author Share Posted October 13, 2021 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
tuanphan Posted October 14, 2021 Share Posted October 14, 2021 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nick369 Posted October 14, 2021 Author Share Posted October 14, 2021 9 hours ago, tuanphan said: Add to Design > Custom CSS footer.sections .icon-cart-quantity { visibility: hidden; } Thank you! Link to comment
vnr Posted January 29, 2023 Share Posted January 29, 2023 Is there a way to only use this corner cart feature/code for desktop and not mobile. I already have a button in the corner for mobile mode. Thank you! Link to comment
tuanphan Posted January 31, 2023 Share Posted January 31, 2023 On 1/29/2023 at 12:01 PM, vnr said: Is there a way to only use this corner cart feature/code for desktop and not mobile. I already have a button in the corner for mobile mode. Thank you! We can use CSS code to hide it on mobile. If you share link to your site, we can check easier 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment