Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Match Product Page to Quick View. Page Redirect


Carrian

Question

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

2 answers to this question

Recommended Posts

  • 1
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

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

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