Jump to content

Beth_King

Circle Member
  • Posts

    28
  • Joined

  • Last visited

2 Followers

Personal Information

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Beth_King's Achievements

  1. Hello, this is exactly what I want to do on this page but with swatches. So that when you hover on a small circle the word above changes to what that marterial is. The page is here: https://clavichord-trout-3tzg.squarespace.com/product-template Please can you help?
  2. Me too, Come on Squarespace, this isn't good enough we need first and surname fields at the very least.
  3. Yes, as I understood it though. Your code targets pages with the hide-atc tag and hides the button on those pages so this would be perfect it I can get it to work. This would mean the client would only need to add the tag to the product page when it sells out and the button would disappear, I'm assuming?
  4. I've installed the full code in the Store > Page Header Code Injection and added the hide-atc tag to the product page but its not working? <style> /* begin store product detail elements tagged hide Version : 2.1 SS Versions : 7.1, 7.0 v7.0 Templates : Adirondack Brine ( Aria, Blend, Burke, Cacao, Clay, Fairfield, Feed, Foster, Greenwich, Hatch, Heights, Hunter, Hyde, Impact, Jaunt, Juke, Keene, Kin, Lincoln, Maple, Margot, Marta, Mentor, Mercer, Miller, Mojave, Moksha, Motto, Nueva, Pedro, Pursuit, Rally, Rover, Royce, Sofia, Sonora, Stella, Thorne, Vow, Wav, West ) York ( Artesia, Flores, Harris, Jasper, Jones, Lange, Shibori, Taylor ) your template is not listed? then it is not currently supported Note : the following tags added to your products will hide elements hide atc ( add to cart ) hide price hide quantity By : Thomas Creedon < http://www.tomsWeb.consulting/ > */ /* 7.1 */ /* begin atc */ /* layout simple */ .tag-hide-atc .ProductItem-details .sqs-add-to-cart-button-wrapper, /* layouts full, half, wrap */ .tag-hide-atc.pdp-layout .pdp-details .sqs-add-to-cart-button-wrapper, /* end atc */ /* begin price */ /* layout simple */ .tag-hide-price .ProductItem-details .ProductItem-product-price, /* layouts full, half, wrap */ .tag-hide-price.pdp-layout .pdp-details .pdp-details-price, /* end price */ /* begin quantity */ /* layout simple */ .tag-hide-quantity .ProductItem .ProductItem-details .product-quantity-input, /* layouts full, half, wrap */ .tag-hide-quantity.pdp-layout .pdp-details .pdp-details-quantity, /* end quantity */ /* 7.0 */ /* Brine, York */ .tag-hide-atc .ProductItem-details .sqs-add-to-cart-button-wrapper, .tag-hide-price .ProductItem-details .product-price, .tag-hide-quantity .ProductItem-details .product-quantity-input, /* Adirondack */ .tag-hide-atc #productDetails .sqs-add-to-cart-button-wrapper, .tag-hide-price #productDetails .product-price, .tag-hide-quantity #productDetails .product-quantity-input, twc-selector /* dummy selector so that each selector line above can end with a comma */ { display : none; } /* end store product detail elements tagged hide */ </style>
  5. Hi Creedon, I studied your code and added the tag 'hide-atc' and 'tag-hide-atc' to this product page https://disegnojournal.com/shop/p/disegno-28 to test it. Then I added style script to the Store > Settings > Code Injection. The product page layout is wrap, and so added all variations incase the client changes the design. Any idea why it's not hiding the ATC buttons? Could it be conflicting with your code to add the 2nd atc button? Thanks!!
  6. Can I use a code block on those pages with the CSS or a script to hide them on those pages and I could add it to Additional Information section of the product page?
  7. Thanks Creedon, I need to hide them only on specific pages though. It's complicated with digital and hardcopy products sold on one page and with EU check out and digital copies with a third party (off site). The hardcopy products are bought through the client's Squarespace site whereas when they've sold out the digital copies are sold off site. What is happening at the moment is that the ATC button appears when the hardcopy is sold out but I can't mark it as sold out as the digital copy is below to purchase so I just need to hide the ATC buttons on those pages....That code would hide them all?
  8. Hi again Creedon. Thanks again for your help. But I now just need to hide the cart buttons I've added on specific product pages. Here's an example - on this page https://disegnojournal.com/shop/p/disegno24-digital I need to hide the buttons by identifying the block and hiding them. This is CSS code that I've tried...but it doesn't work...pls can you help? [data-section-id="604d1646e89f7c51415d5e00"] { //CSS Hide Add to Cart Button .ProductItem-details .sqs-add-to-cart-button-wrapper .sqs-add-to-cart-button {display:none;} } Thanks! Beth
  9. Creedon! That's brilliant thank you. I just need to add a gap/padding between the buttons. Nearly there! Thank you so much for your help. You Legend! 🙂
  10. I remembered now as I was a bit confused - my original code above changed a link to a button and I couldnt see the JQuery script in the Product Page > Settings > Advanced > Code injection. So I've been scratching my head. Then realised that the script in a code block in Product Page > Additional information. Here it is... <script>(function(document){ // Edit HTML between the quotes. var BUTTON_PRETEXT_HTML = '<p><a href="https://disegno.newsstand.co.uk">EU BUY NOW</a></p>'; var TITLE_SUBTEXT_HTML = '<p>Rumba red</p>'; /**************************************************************** * DO NOT MODIFY CODE BELOW, unless you know what you're doing. ****************************************************************/ // Execute code based on if it's in the header or footer if(document.readyState == 'loading') { document.addEventListener('DOMContentLoaded', init); } else { init(); } function init(){ var buttonContainer = document.querySelector('.sqs-add-to-cart-button-wrapper'); var productTitle = document.querySelector('.ProductItem-details-title'); var div; if(buttonContainer) { div = document.createElement('div'); div.setAttribute('class', 'sqs-add-to-cart-button-pretext'); div.innerHTML = BUTTON_PRETEXT_HTML; buttonContainer.insertBefore(div, buttonContainer.firstChild); } } If I attempt to change the Product Page layout to 'Simple' the EU BUY NOW button vanishes. It's still missing when I revert the product page design back to 'Wrap' layout so I discard the changes. Perhaps I have to re-enter the script above once the layout is changed?
  11. Hi Creedon, Thanks so much for this - I'm wondering if I made a donation you would help write the script for the EU Buy Now Button to be seen on mobile view?
  12. Hi Creedon, Yes I see that but when I choose Simple, and the design changes the 2nd add to cart button disappears. Very odd. So I don't save the changes.
  13. Thanks Paul2009, I tried to choose 'Simple' layout but the button disappeared altogether. I'm going to need to add new Json code. Thanks for input/info. Much appreciated!
×
×
  • 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.