Jump to content

How to remove a button on some product items

Go to solution Solved by NicholeAllder,

Recommended Posts

Hi,

I'm doing some amends to a site. The programmer created an extra button with a form attached on a couple of products.

https://growthcollective.com.au/purchase-programs/p/leadership-fundamentals

and https://growthcollective.com.au/purchase-programs/p/emerging-leader

The client has created some new products but needs the second button 'Request an Invoice' removed on these pages. 

https://growthcollective.com.au/purchase-programs/p/disc-profile

https://growthcollective.com.au/purchase-programs/p/disc-profile-fbjc2

 

I believe this is the code to create the second button, but can't seem to customise it to only show on the first 2 pages.

image.png.b1db226af51516afeaf2cf73ac6dcefa.png

Thanks

Link to comment
  • Replies 2
  • Views 130
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

This is also in the advanced area heading...

<!--second shopping button attempt-->

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>

   <script>

   $(function() {

     $("<a class='checkoutbutton' href='/request-an-invoice/'>Request an Invoice</a>").insertAfter(".sqs-add-to-cart-button-wrapper");        

   });

 

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.