Jump to content

Match Product Page to Quick View. Page Redirect

Recommended Posts

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

image.thumb.png.6de983ed2fdc2e9ba21b0b2c9ac1d55b.png

image.thumb.png.13a7fb64443acbb5c7944da124b95f86.png

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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:
spacer.png

Edited by paul2009

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.