Jump to content

StephanieMemory

Circle Member
  • Posts

    32
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by StephanieMemory

  1. On 6/4/2020 at 3:55 PM, dhobman said:

    I'm working within the 7.1 system, and here is a way to hide the product selection drop down menu (such as for "Select Size"), the quantity selection box, and the Add to Cart button on an individual product level basis. This way you can hide these elements on products within a given store page without having to use a blanket approach that affects more than specific products.

    We'll do this by creating a tag called "hideorder" and tagging any product with this tag name for which we want to hide all of these ordering options. So to start, take a single product and create a tag called "hideorder." To learn more about tags, see: https://support.squarespace.com/hc/en-us/articles/205814438)

    Next, add this code to your site's Custom CSS:

     

    /* ----------------- ultra-fresh "ORDER INTERFACE Be-Gone"  ----------------- /
    /*  add "hideorder" tag to any page to remove dropdown, quantity, and order button  */


    /*  remove select size dropdown  */
    article .tag-hideorder .variant-option {
        display: none;
    }

    /*  remove quantity dropdown  */
    article .tag-hideorder .product-quantity-input {
        display: none;
    }

    /*  remove order button  */
    article .tag-hideorder .sqs-add-to-cart-button-wrapper {
        display: none;
    }

     

    That should do it. Seems to work nicely. Also, you can adjust the code by deleting lines if you want parts of the product ordering system to appear but not others (for whatever reason). Or of course you could create additional tag names with different attributes built off this code. I hope this makes sense. Good luck!

    I tried this code with the Brine template but it doesn't work. Does this only work on 7.1 templates?

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