Carrian Posted July 14, 2020 Share Posted July 14, 2020 Site URL: https://sparkotechengineering.squarespace.com Password: customer 123 Good day, so I have my code which the function is to hide the price, quantity, Add to cart button and add a button to redirect it to Contact Us page. My concern is my code doesnt apply in my quick view page it only applies in the product page of the product item. ***Note: My main goal is to change the redirection of the "Add to cart button" into another page (Contact Us) but due to my beginner skills thats the only code that i produced. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> <script> $(function() { $("<a class='ordernow' href='/contact'>Request Now</a>").insertAfter(".sqs-add-to-cart-button-wrapper"); }); </script> <style> .product-quantity-input { display:none !important; } </style> <style> .ProductItem-details .sqs-add-to-cart-button-wrapper .sqs-add-to-cart-button { display:none !important; } </style> <style> .ProductItem .ProductItem-details .product-price { display:none !important; } </style> reference pictures: PIC 1 = product page PIC 2 = quick view Link to comment
paul2009 Posted July 14, 2020 Share Posted July 14, 2020 9 hours ago, Carrian said: My main goal is to change the redirection of the "Add to cart button" into another page (Contact Us). My code doesn't apply in my quick view page This is due to the way Quickview windows are generated dynamically. Your code will run before a window is created. We've produced a pre-built solution that you can purchase to automatically replace Add to Cart buttons with Request/Inquiry/Enquiry buttons. The replacement button will launch an enquiry form that allows potential customers to ask about the product. It's really easy to install. You add the code once, and the button will automatically be added to all products, or just the products you have tagged. It's up to you. The contact form will automatically include the name of the product that the customer was viewing, making it easy to follow-up on these requests. You'll find full details and pricing here: Product Enquiry Form Extension. Example: About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.