MSCCreative Posted January 27, 2022 Share Posted January 27, 2022 @creedon yes, all the code from step one is in the header and the second step is in there as well at line 149 Link to comment
creedon Posted January 27, 2022 Share Posted January 27, 2022 6 hours ago, MSCCreative said: yes, all the code from step one is in the header and the second step is in there as well at line 149 That won't work. Please read my previous post. 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
MSCCreative Posted January 28, 2022 Share Posted January 28, 2022 @creedon there is no option for me to navigate to this path you are suggesting:Store Settings > Advanced > Page Header Code Injection for the store page Here is a video of what I am seeing: Thanks and I appreciate all the help on this. video1480061846.mp4 Link to comment
creedon Posted January 28, 2022 Share Posted January 28, 2022 17 hours ago, MSCCreative said: there is no option for me to navigate to this path you are suggesting:Store Settings > Advanced > Page Header Code Injection for the store page Please see per-page code injection. 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
MSCCreative Posted January 29, 2022 Share Posted January 29, 2022 @creedon Ok, understood. I followed those steps on this page here: https://resources.milestonechurch.com/store/p/thepowerofconnectioninthechurch-9s5t3 and the from is still there. Is it possible that we did not set this site up correctly? Link to comment
MSCCreative Posted January 29, 2022 Share Posted January 29, 2022 @creedon actually hold that I think I found it! Link to comment
MSCCreative Posted January 29, 2022 Share Posted January 29, 2022 @creedon Ok I found the store page in the nav with the gear wheel and pasted it in the injection window and now all the pricing is gone. Link to comment
creedon Posted February 3, 2022 Share Posted February 3, 2022 (edited) @MSCCreative Please see my April 5, 2021 post again. I have made some recent updates which I think may address your issue. Let us know how it goes. Edited May 24, 2022 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
Jackie123 Posted May 24, 2022 Share Posted May 24, 2022 On 4/6/2021 at 3:28 PM, creedon said: I have updated my code post. Let us know how it goes. worked like a charm. thank you! creedon 1 Link to comment
RtN Posted February 13, 2023 Share Posted February 13, 2023 (edited) hi, can someone help me please ? i want change the price display, no decimal .00 for my store. i have read the discussions before, but my englisch is not really good, I am from austria, near germany 😉 Is there a way, that I can put in a code to my css that the prices on the products pages are without decimal .00 ? i don't have variants for on of the products at the moment. there is always only one size per jacket. if someone can help me would be nice thanks in advance Edited February 13, 2023 by RtN Link to comment
creedon Posted February 14, 2023 Share Posted February 14, 2023 On 2/13/2023 at 12:47 PM, RtN said: Is there a way, that I can put in a code to my css that the prices on the products pages are without decimal .00 ? CSS can not make this kind of transformation. My code cited in my April 5, 2021 post can. 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
Caseyffd Posted February 28, 2023 Share Posted February 28, 2023 Hello all! I'm trying to hide where it says "from" on my product page because i have multiple variants my website is xlr8coffee.com/coffee password; xlr88 thank you for your help 🙂 Link to comment
tuanphan Posted March 6, 2023 Share Posted March 6, 2023 On 3/1/2023 at 3:48 AM, Caseyffd said: Hello all! I'm trying to hide where it says "from" on my product page because i have multiple variants my website is xlr8coffee.com/coffee password; xlr88 thank you for your help 🙂 Use this 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
AmberM Posted March 9, 2023 Share Posted March 9, 2023 Hi guys, I am currently in the process of setting up a website for my fabric company. However, i am having a difficult time with pricing variants on my product page. On the product page it shows "from £6 per metre" which is the lowest amount (half a metre) , but i want to show the full price per metre which is £12 per metre as it is deceiving to the customer. Is there any Custom CSS i could use to do this? If anyone could help me out, i'd really appreciate it! Thank you 🙂 Link to comment
paul2009 Posted March 9, 2023 Share Posted March 9, 2023 7 minutes ago, AmberM said: On the product page it shows "from £6 per metre" which is the lowest amount (half a metre) , but i want to show the full price per metre which is £12 per metre as it is deceiving to the customer. This is an issue when you use variants as a proxy for the quantity. You'll also be unable to track inventory easily, as each variant (0.5m, 1m, 2m) will have a separate stock level. For example, selling two half-metre variants will not alter the stock level of the one metre variant. There are a number of ways to tackle this, but it will depend on whether you want to change it on the Product List Page (PLP) only, or on the Product Detail Page (PDP) too. A possible workaround for the pricing is to add text to the store page that indicates that all pricing is for a half-metre. I know of fabric stores that link to a reference page explaining why fabrics are sold in half-metre lengths 🙂. Another workaround would be to add a suffix to the prices on the PLP, so that each one shows something similar to "£6.00 per half-metre". Finally, some script could be written to double the cost of the prices on the PLP so that they are shown per metre. However, as @creedon has commented already in this thread, this isn't as straightforward and may need to be re-written when Squarespace make changes to the platform. I hope this gets you started. If you need further help, I recommend that you include a working link to the site. Did this help? Please give feedback by clicking an icon below ⬇️ 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
creedon Posted October 4 Share Posted October 4 Here is example settings for my cited code in my April 5, 2021 post to change the visually hidden assistive text. 'Sale Price:' : 'Sale Price - ', 'Original Price:' : 'Was - ', 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
Saffra Posted Sunday at 03:35 PM Share Posted Sunday at 03:35 PM Hi there! I've tried tried your code Creedon but for me it doesn't seem to work. Worth mentioning is that I know zero about JavaScript, so troubleshooting for me is difficult (even with AI apparently). However this code (injected in Code Injection -> Footer) removes the "," but keeps the zeros aferwards. I want to remove the entire ",00". The price is in SEK, I don't know if that might effect the outcome. The website: https://www.zsuzsannalendemar.com/ Note! Until this problem is solved I have used the code underneith and devided every price with 100 as I type it in to have it displayed the way I want. It's not very convenient though. The code: <!-- Reformat Product Price (15,000.00 -> 15000) --> <!-- Author: Dmitry Kiselyov @_dmitrykiselyov --> <script src="https://cdn.jsdelivr.net/npm/@ryanmorr/ready@1.4.0/dist/ready.umd.js"></script> <script>!function(){function reformatPrice(price){var priceClone=price.cloneNode(!0);function reformat(){priceClone.innerHTML=price.innerHTML;var target=priceClone.querySelector(".sqs-money-native")||priceClone,textNode=priceClone.querySelector(".sqs-money-native");target.textContent.length>1?target.textContent=format(target.textContent):textNode&&(textNode.textContent=format(textNode.textContent))}function format(text){return text.replace(",","").replace(/\.\d{2}/,"")}function watch(){var observer;new MutationObserver(reformat).observe(price,{childList:!0})}priceClone.classList.add("product-price-clone"),price.parentNode.insertBefore(priceClone,price.nextElementSibling),price.style.display="none",reformat(),watch()}ready(".product-price:not(.product-price-clone),.original-price:not(.product-price-clone)",reformatPrice)}();</script> <!-- end Reformat Product Price --> Any help out there? 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