Second Button in Product Section on Homepage

Second Button in Product Section on Homepage

AaronS89291
Excursionist
19 0 7

Im looking to add a second button next to my 'Buy Now' Button where my product section sits on my homepage. I want my new customer to have the option to buy immediately (which the button adds directly to cart) and also the option to view the product page to learn more.

 

I tried turning 'Dynamic Button' on but that only adds the Shop button below the Buy Now button. 

 

Can someone assist?

 

Screen Shot 2025-02-10 at 5.25.11 PM.png

Replies 5 (5)

indostudioalva
Shopify Partner
6 0 0

What template did you use? Did you ever change anything in the snippets/Product.liquid file?

- Custom Theme & Modification, Shopify App Dev, Store Migration, Mobile App Dev, Maintenance & Service
- Email: hello@studioalva.co
- Website: studioalva.co
AaronS89291
Excursionist
19 0 7

Im using the Taste template. I don't recall changing anything in the code previously.

oscprofessional
Shopify Partner
16344 2438 3180

Hi @AaronS89291 ,

To add a "View Product" button next to "Buy Now" on your homepage:

  1. Go to Shopify AdminOnline StoreThemesEdit Code.
  2. Find the product section file (main-product.liquid or featured-product.liquid).
  3. Locate the "Buy Now" button code and add this after it:

 

<a href="{{ product.url }}" class="btn btn-secondary">View Product</a>

 

     4. Ensure proper styling with CSS if needed.

     5. Save & check the homepage.

 

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
AaronS89291
Excursionist
19 0 7

Hi, I dont know where the Buy Now button code is, where it starts or end. Can you assist further?

AaronS89291
Excursionist
19 0 7

Hey again, i tried doing this and trying also looking for multiple ways and kept messing up the code. im also looking to display my 3 variants on the homepage above my two buttons im trying to create to direct the customer to the checkout once they click a variant and then have them go directly to checkout. can you assist?