My Shopify theme is Ride. I want to add the [quick buy button] to my Residential Playground Equipment collection page. However, I don’t want to affect other pages.
I have used the Buy Button channel plugin, but it requires modifying the theme code and it seems to target all product lines, which is not what I want.
So I need your help. Here is the basic information of my website and the help points:
You can add a “Quick Buy” button to just one collection with a conditional code edit.
First, duplicate your theme for safety and make these edits on the new copy.* In your theme’s code editor, go to the Snippets folder and open the file card-product.liquid.
Then scroll to the bottom of the file, just before the last closing </div>, and paste the following code block. It will only show the button on your “Residential Playground Equipment” collection.
Click Save. Preview your “Residential Playground Equipment” collection to see the new buttons, then check any other collection page to confirm they are not there.
If you want a Quick Buy or Pre-Order button specifically for your Residential Playground Equipment collection without affecting other pages, I recommend using an app like EZ PreOrder – PreSale Manager. Here’s how it works:
Select the products you want to offer for pre-order (in your case, products in the Residential Playground Equipment collection).
Customize the button style and text – you can make it appear like a “Quick Buy” button or give it a glassy look with custom CSS.
Test the collection page – the pre-order button will appear only for that collection, leaving all other products untouched.
This approach is much simpler than manually coding, and the app handles stock, payments, and pre-order management automatically.
If you want, you can also style the button to match your theme. For example, a glassy look under the Add to Cart button can be done with a few lines of CSS.
Thank you for your reply. Your code is very effective, but there is a problem. The buy it now button also appears on other pages. But I only want this button to appear on my residential playground collection page.
This is the residential playground collection page after adding the code: