Jump to content

Match Product Page to Quick View. Page Redirect

Recommended Posts

Posted

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

  • Replies 2
  • Views 872
  • Created
  • Last Reply
Posted
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

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Archived

This topic is now archived and is closed to further replies.

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