Cyperpunk-girl-333 Posted January 16 Share Posted January 16 hi I'm trying to figure out why the above code wont move my accordion into the product description on page https://enchantanddelight.com.au/shop-enchant-and-delight/p/purple-fluorite-specimen?rq=Purple Fluorite Cluster I would like the price to sit above the buy now button Link to comment
Beyondspace Posted January 16 Share Posted January 16 11 hours ago, Cyperpunk-girl-333 said: hi I'm trying to figure out why the above code wont move my accordion into the product description on page https://enchantanddelight.com.au/shop-enchant-and-delight/p/purple-fluorite-specimen?rq=Purple Fluorite Cluster I would like the price to sit above the buy now button Which code are you using to moving it up to product description? Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
Cyperpunk-girl-333 Posted January 16 Author Share Posted January 16 (edited) <script> (function(){ var accordion = document.querySelector('.ProductItem-additional .accordion-block'); var cartButton = document.querySelector('.sqs-add-to-cart-button-wrapper'); if(accordion && cartButton) { // Remove accordion from current position. accordion.parentNode.removeChild(accordion); // Add accordion before the cart button. cartButton.after(accordion); } })() </script> I'd like the price to sit below the accordion and above above the buy now button? Is this possible with more code? Also the Accordion disappears in mobile view? How do i set it up so it behaves the same way on desktop as it does on mobile? Edited January 16 by Cyperpunk-girl-333 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