Jump to content

amcg

Circle Member
  • Posts

    44
  • Joined

  • Last visited

Posts posted by amcg

  1. @willateamThis was originally for each individual product's page - I've added an additional comment above for the main page.If you want to disable these options on just one specific product, this code won't work.

    Instead, you'll need to target each specific item before using code similar to this. Here is another Answers post to help:

    http://answers.squarespace.com/questions/38508/only-hiding-price-and-add-to-cart-from-some-products

    Here's a screenshot of the exact code that worked for me using those instructions:

    http://take.ms/n0DGK

    **Note the Quantity line has changed to "-input"

  2. There are a couple of other, related answers to this questions, however this is the code I found which works.

    The main section of the code is:

    
    
    .product-price,
    .product-quantity-input,
    .sqs-add-to-cart-button-wrapper {
     display:none;
    }
    
    

    This code can be altered to only affect one or two of the elements by removing certain lines. Remove .product-price, from the code if you want to continue to display the price of the product.

    Add this code to the Custom CSS Editor if you want all product pages to be affected.

    If you would like this code to affect individual product pages, you can add it to the Page Code Injection area. Go to Product Settings > Advanced > Page Header Code Injection on your product page and paste in this code:

    
    
    <style>
    .product-price,
    .product-quantity-input,
    .sqs-add-to-cart-button-wrapper {
     display: none;
    }
    </style>
    
    

    This code can be used if you would like to add PayPal buttons within your products pages. Add the PayPal button code within the Additional Info area of each product, and then hide the Add to Cart button with the above CSS.

    Hopefully this helps anyone else!

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