creedon Posted April 5, 2022 Share Posted April 5, 2022 @Lalat I'm thinking the curse of Ajax Loading strikes again! Try turning off Ajax Loading to see if the problem goes away. Please note that turning off Ajax Loading will affect the performance of your site. Ajax Loading is designed to increase the loading speed of your site after it first loads. You have to decide whether the custom code you are trying to use is worth turning off Ajax Loading. paul2009 has a great article on the ins and outs of Ajax Loading. Please see Why does Squarespace code only work on refresh? Lalat 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
Lalat Posted April 5, 2022 Share Posted April 5, 2022 i have turned off ajax loading ..and open it in private browser its not working either please help sir Link to comment
creedon Posted April 6, 2022 Share Posted April 6, 2022 On 4/5/2022 at 11:22 AM, Lalat said: its not working either As mentioned in my post yesterday it appears to be working to me. I even posted a picture of it working. If you are not seeing what I am seeing then you'll need to provide much more detail other than it's not working. How it is not working? What behaviour are you seeing? What did you expect to see? Can you provide pictures along with any descriptions of the problem? 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
Lalat Posted April 6, 2022 Share Posted April 6, 2022 @creedon I want it to say Your order exceeds the amount of inventory we have in stock. Please try again Link to comment
creedon Posted April 7, 2022 Share Posted April 7, 2022 @Lalat I see the issue now. It is the code was designed for product items with variants and doesn't take into account items with no variants. I think I can come up with a new version of the code but it may take several days. Please bump this thread in several days if I don't update my code. 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
creedon Posted April 7, 2022 Share Posted April 7, 2022 I have updated my code cited in my May 16, 2021 post. @Lalat 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
KrisC Posted September 2, 2022 Share Posted September 2, 2022 Most of the code worked but now I am getting repeat lines and I want to get ride of the 'Sorry, that item is out of stock'. The other line is mine but I cant make the original message disappear. Link to comment
creedon Posted September 3, 2022 Share Posted September 3, 2022 2 hours ago, KrisC said: I am getting repeat lines and I want to get ride of the 'Sorry, that item is out of stock'. Please post the URL for a page on your site where we can see your issue. If your site is not public please set up a site-wide password, if you've not already done so. Post the password here. Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the documentation at the link provided to understand how it works. Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/. We can then take a look at your issue. 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
KrisC Posted September 6, 2022 Share Posted September 6, 2022 (edited) https://thedaintyloft.com/for-sale/p/romilly-silicone-kitby-cassie-brace or https://clover-echidna-hlc2.squarespace.com/for-sale/p/luke-silicone-kit-by-tay-freitas thank you!! Edited September 6, 2022 by KrisC Link to comment
creedon Posted September 7, 2022 Share Posted September 7, 2022 On 9/2/2022 at 3:41 PM, KrisC said: I am getting repeat lines You need to set the append constant in the code to false. const append = false; 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
KrisC Posted September 8, 2022 Share Posted September 8, 2022 Sorry Creedon, it didnt work. I must be doing something wrong. Link to comment
creedon Posted September 8, 2022 Share Posted September 8, 2022 42 minutes ago, KrisC said: I must be doing something wrong. The value is still set to true. It should be false. 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
KrisC Posted September 8, 2022 Share Posted September 8, 2022 I went back to change it again and for me it still says 'false' Link to comment
creedon Posted September 9, 2022 Share Posted September 9, 2022 2 hours ago, KrisC said: I went back to change it again and for me it still says 'false' Not sure what is going on there but I've discovered a more fundamental issue. The name of the code is Change Unable to Add Item to Cart Alert for Out of Stock Variants. The code was designed to work with products that have variants. Your products have no variants and so the code is failing. I don't know of any code that works with products with no variants for v7.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
KrisC Posted September 9, 2022 Share Posted September 9, 2022 Ok. Thank you anyways. I really appreciate your time and willingness to looking into it. You got me further than I could have ever done myself, lol. Super appreciative. Thank you! Link to comment
maryb2022 Posted November 11, 2022 Share Posted November 11, 2022 I am having the same issue. @creedon - can you look at my cart, please? I want to change this text and added the code you posted but I see no change. Thanks! https://dessertdesignsnashville.com/quick-order-cakes UNABLE TO ADD ITEM Sorry, we do not have enough of that item available. Link to comment
creedon Posted November 11, 2022 Share Posted November 11, 2022 2 hours ago, maryb2022 said: I am having the same issue. @creedon - can you look at my cart, please? It appears to be working after a fashion to me. Is your issue related to the note in the code? Quote Notes : this effect is not active in SS Preview to test it use private browsing < https://bit.ly/3f6lhq2 >. 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