Jump to content

How can I make a product add-on non clickable?

Go to solution Solved by MayaViolet,

Recommended Posts

Hi,

I am setting up a product (cushion), and it needs to have the option to add cushion filling for an extra £8.00.

I've set this up as best I could, but I don't want the add-on image to be clickable. Clicking on it currently leads customer to a separate page just for the filling, which is unneccessay.

Does anyone have any suggestions for adding the filling option and removing any option for the filling to be viewed as an individual product?

Link: https://www.touchpressstudio.com/shop-home/p/gold-spot-on-black-cushion

Password: hello

Thanks!

Link to comment

@CSSnoob Yes! we can use the display: flex property to make each child element flexible, and then you can assign the order in which you want each section to appear. Take a look at this code (I adjusted some margins too to make it work as desired):

This is for desktop only; feel free to play around on mobile:

 

@media screen and (min-width: 768px) {
    .ProductItem-details .ProductItem-details-checkout {
        display: inline-flex;
}

/* Assign Order */
.ProductItem-product-price {
order: 1;
}
.ProductItem-details-excerpt {
    order: 2 !important;
margin-bottom: 0px;
}
.ProductItem-quantity-add-to-cart {
order: 4 !important;
}
.ProductItem-details-excerpt-below-add-to-cart {
order: 5 !important;
}
.pdp-product-add-ons {
order: 3 !important;
margin-bottom: 50px;
}

}

 

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.