We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

For a specific product only, hide buy buttons except Buy With Prime

For a specific product only, hide buy buttons except Buy With Prime

EB24
Visitor
2 0 0

Hello,

I'm out of stock for a specific product, except on Amazon.

For this product only, I'd like to disable all buy buttons, except the 'Buy With Prime' option.

 

I've created a separate product template and assigned it the product, and am able to disable ALL buy buttons in that template - however, I'd like to keep the 'Buy With Prime' option. Can anyone please assist? Thank you!

Replies 2 (2)

richardcobain
Trailblazer
160 7 22

To keep only the "Buy With Prime" button while disabling all other buy buttons, you can follow these steps:

  1. Edit the product template: In your Shopify admin, go to the product template where you've disabled the buy buttons.

  2. Use Liquid conditionals: Modify the template’s Liquid code to check if the product is connected to Amazon or uses the "Buy With Prime" feature. You can add a conditional statement to show only the "Buy With Prime" button and hide the other buy options.

  3. Hide other buttons: For other buy buttons, you can use custom CSS or Liquid to hide them while keeping the Amazon "Buy With Prime" option visible.

If you're unfamiliar with Liquid or CSS, you may want to consult a Shopify expert to ensure everything works smoothly.

EB24
Visitor
2 0 0

Thank you Richard. Do you know what liquid conditional statement I should use?