estherests_ Posted May 13, 2020 Share Posted May 13, 2020 Site URL: https://thecupncake.squarespace.com/ Hi there, I want to change my 'add to cart' button to 'Order now' and for a click on the button to redirect to my order form and not the checkout page (I have a personal plan) Is there a way I can repurpose the 'add to cart' button or add in another button with that functionality under all my products? Site: thecupncake.com Password: password Thanks in advance :) Link to comment
carpetscc Posted September 2, 2020 Share Posted September 2, 2020 Hey - I see from your website you found a solution - I was just wondering if you could share it with me as I need to do a similar thing on my website. Many thanks Link to comment
tuanphan Posted September 2, 2020 Share Posted September 2, 2020 1 hour ago, carpetscc said: Hey - I see from your website you found a solution - I was just wondering if you could share it with me as I need to do a similar thing on my website. Many thanks They removed add to cart & add new order button with this code (Add to Home > Settings > Advanced > Code Injection > Header) <style> .sqs-add-to-cart-button-wrapper { display: none !important; } </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(function() { $("<a class='checkoutbutton' href='/order'>ORDER THIS CAKE</a>").insertAfter(".sqs-add-to-cart-button-wrapper"); }); </script> michaelfink 1 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
alexscasny Posted September 22, 2020 Share Posted September 22, 2020 On 9/2/2020 at 10:15 AM, tuanphan said: They removed add to cart & add new order button with this code (Add to Home > Settings > Advanced > Code Injection > Header) <style> .sqs-add-to-cart-button-wrapper { display: none !important; } </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(function() { $("<a class='checkoutbutton' href='/order'>ORDER THIS CAKE</a>").insertAfter(".sqs-add-to-cart-button-wrapper"); }); </script> Hi there, i used this code as well to change "Add to cart" to a different text, but now the button style disappears and the button is only regular text. Is there a reason why there is no button anymore? Many thanks Link to comment
tuanphan Posted September 22, 2020 Share Posted September 22, 2020 13 hours ago, alexscasny said: Hi there, i used this code as well to change "Add to cart" to a different text, but now the button style disappears and the button is only regular text. Is there a reason why there is no button anymore? Many thanks Can you share site url? 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
alexscasny Posted September 27, 2020 Share Posted September 27, 2020 On 9/23/2020 at 12:23 AM, tuanphan said: Can you share site url? We can check easier. Sorry just saw now. Thans for coming back. Please find below the example url for a product page: https://www.delicario.com/oil-vinegar/p/olive-gregori-extra-virgin-olive-oil-single-variety-of-ascolana-tenera Link to comment
inunzi Posted September 27, 2020 Share Posted September 27, 2020 (edited) @alexscasny I see that the button says “Add to Basket” and I see that it’s still the shopping cart icon, and this can get a bit confusing. So do you want the shopping cart icon to be changed to a basket? Thanks! Edited September 27, 2020 by inunzi Link to comment
Solution paul2009 Posted September 28, 2020 Solution Share Posted September 28, 2020 (edited) On 9/22/2020 at 10:51 AM, alexscasny said: i used this code as well to change "Add to cart" to a different text You don’t need code to change the label on the ‘Add to Cart’ button. You can change this text by editing the product. You'll find the setting in the Checkout section of the product options. Look for Custom Button and then toggle Enable Custom label and enter your preferred text. For more information, see this help article. Edited June 2, 2022 by paul2009 Updated for Product Composer 2.0 MaryPhilip_, KimmyBartle, ThomasVision and 2 others 4 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
alexscasny Posted September 28, 2020 Share Posted September 28, 2020 24 minutes ago, paul2009 said: You don’t need code to change the label on the ‘Add to Cart’ button. You can change this text in the Options tab by checking Use Custom Add Button Label and entering new text. For more information, see this help article. Thank you, did this for all the products. Just thought there might be a code to change this overall. But the settigns work fine as well. Link to comment
alexscasny Posted September 28, 2020 Share Posted September 28, 2020 7 hours ago, inunzi said: @alexscasny I see that the button says “Add to Basket” and I see that it’s still the shopping cart icon, and this can get a bit confusing. So do you want the shopping cart icon to be changed to a basket? Thanks! Ideally yes, but not a priority. I guess this can only done with a code Link to comment
inunzi Posted September 28, 2020 Share Posted September 28, 2020 (edited) 7 hours ago, alexscasny said: Ideally yes, but not a priority. I guess this can only done with a code Would you want the code to do so? Thanks! Edited September 28, 2020 by inunzi Link to comment
caseyh Posted October 12, 2020 Share Posted October 12, 2020 On 9/2/2020 at 5:15 AM, tuanphan said: They removed add to cart & add new order button with this code (Add to Home > Settings > Advanced > Code Injection > Header) <style> .sqs-add-to-cart-button-wrapper { display: none !important; } </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(function() { $("<a class='checkoutbutton' href='/order'>ORDER THIS CAKE</a>").insertAfter(".sqs-add-to-cart-button-wrapper"); }); </script> I have Express Checkout enabled and I'm trying to use this code to change the "Purchase" button to say "Sponsor". It doesn't seem to be working. I have the code in place now: Here's the live site: https://firstpreshart.org/angel-tree/child-017 If anyone can help me change the "Purchase" text to "Sponsor," I'd be very appreciative. I also tried using the following, but that isn't working work either. This code is currently disabled on the live site. <script> // Purchase button Text document.querySelectorAll(‘.sqs-add-to-cart-button-inner’).forEach(function(b){ b.innerHTML = “Sponsor” }); </script> Source: https://heathertovey.com/blog/change-default-text-labels/ Link to comment
tuanphan Posted October 12, 2020 Share Posted October 12, 2020 1 minute ago, caseyh said: I have Express Checkout enabled and I'm trying to use this code to change the "Purchase" button to say "Sponsor". It doesn't seem to be working. I have the code in place now: Here's the live site: https://firstpreshart.org/angel-tree/child-017 If anyone can help me change the "Purchase" text to "Sponsor," I'd be very appreciative. I also tried using the following, but that isn't working work either. This code is currently disabled on the live site. <script> // Purchase button Text document.querySelectorAll(‘.sqs-add-to-cart-button-inner’).forEach(function(b){ b.innerHTML = “Sponsor” }); </script> Source: https://heathertovey.com/blog/change-default-text-labels/ Your code has invalid character ' & '' Try this code <script> // Purchase button Text document.querySelectorAll('.sqs-add-to-cart-button-inner').forEach(function(b){ b.innerHTML = "Sponsor" }); </script> 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
caseyh Posted October 12, 2020 Share Posted October 12, 2020 (edited) 5 minutes ago, caseyh said: I have Express Checkout enabled and I'm trying to use this code to change the "Purchase" button to say "Sponsor". It doesn't seem to be working. I have the code in place now: Here's the live site: https://firstpreshart.org/angel-tree/child-017 If anyone can help me change the "Purchase" text to "Sponsor," I'd be very appreciative. I also tried using the following, but that isn't working work either. This code is currently disabled on the live site. <script> // Purchase button Text document.querySelectorAll(‘.sqs-add-to-cart-button-inner’).forEach(function(b){ b.innerHTML = “Sponsor” }); </script> Source: https://heathertovey.com/blog/change-default-text-labels/ Aha! I found a slightly different solution on Stack Overflow that seems to be working for now: <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $(".sqs-add-to-cart-button-inner").text("Sponsor"); }); </script> Source: https://stackoverflow.com/questions/42396019/not-possible-to-change-button-text-via-jquery Edited October 12, 2020 by caseyh artpimpress 1 Link to comment
paul2009 Posted October 12, 2020 Share Posted October 12, 2020 12 minutes ago, caseyh said: I have Express Checkout enabled and I'm trying to use this code to change the "Purchase" button to say "Sponsor". It doesn't seem to be working. FYI, you don't need code to change "Purchase" to "Sponsor". There's a built in feature where you can change the label and it works when Express Checkout is enabled. See my post above (linked below) for further information. If a post helps you, please click a "Like" option below ↘️ tuanphan 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Jaybaumphoto Posted June 2, 2022 Share Posted June 2, 2022 On 9/28/2020 at 1:53 AM, paul2009 said: You don’t need code to change the label on the ‘Add to Cart’ button. You can change this text in the Options tab by checking Use Custom Add Button Label and entering new text. For more information, see this help article. Paul, Sorry to bump an old thread. Any clue if you're able to do this to ALL products at once rather than just one-by-one? Link to comment
paul2009 Posted June 2, 2022 Share Posted June 2, 2022 1 hour ago, Jaybaumphoto said: Any clue if you're able to do this to ALL products at once rather than just one-by-one? There isn't a site wide setting. It must be configured on an individual product basis. It would be possible to change the label with custom code but I wouldn't recommend this unless there are good reasons to do so - primarily because if Squarespace change something, your custom code could break. Can you help me to understand why you want to change for all products? Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Hansha Posted July 3, 2023 Share Posted July 3, 2023 Anyone aware of the way how to change the text displaying during and after adding to the cart? By default is says ADDING ... and ADDED and I need to change this detail. Thank you for any ideas! :) Link to comment
creedon Posted July 3, 2023 Share Posted July 3, 2023 (edited) 18 minutes ago, Hansha said: Anyone aware of the way how to change the text displaying during and after adding to the cart? Please see the following. Let us know how it goes. Edited July 3, 2023 by creedon 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
Hansha Posted July 5, 2023 Share Posted July 5, 2023 Thank you Creedon! I installed your plugin as instructed on the Github, however I fail to find (or understand) what to do next / how to change the parameters (text) of the "add to cart" button and the "adding", "addeed" text. Could you point me to some instruction please? Best regards, Rene Link to comment
creedon Posted July 5, 2023 Share Posted July 5, 2023 12 hours ago, Hansha said: Could you point me to some instruction please? Settings are in the code. If you scan through the code you will find the lines for changing the adding, added and etc. text. Hansha 1 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
Hansha Posted July 6, 2023 Share Posted July 6, 2023 18 hours ago, creedon said: Settings are in the code. If you scan through the code you will find the lines for changing the adding, added and etc. text. Thank you for the tip! Regards, R. creedon 1 Link to comment
Alexandherpixels Posted June 9 Share Posted June 9 On 7/5/2023 at 3:44 PM, creedon said: Settings are in the code. If you scan through the code you will find the lines for changing the adding, added and etc. text. Thank you so much for that code! Is there a way to rework it so that the "add to cart" button for each product will show if that specific product is already in your cart? e.g. "Add to cart +1" or "update cart quantity" etc. once that product has already been added to the cart. Link to comment
creedon Posted June 9 Share Posted June 9 5 hours ago, Alexandherpixels said: Is there a way to rework it so that the "add to cart" button for each product will show if that specific product is already in your cart? Not easily. Alexandherpixels 1 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment