Is there a way to hide the "add to basket" button in the default and category pages. Basically I would like to have a "more details" button so that the user will have to get to the detail page to get the "add to basket" button.
Thanks,
Eric
Hiding add to basket in category pages
- freedom1029
- Lieutenant, Jr. Grade (LT JG)
- Posts: 35
- Joined: Thu Nov 01, 2007 1:40 pm
- Location: Montreal
Re: Hiding add to basket in category pages
Edit your ConLib/AddToCartLink.ascx.cs file and locate following code in it
and change it as below
That's it. Now customer can only add product to basket via product details page.
Code: Select all
MoreDetailsLink.Visible = !AC.Visible;
Code: Select all
AC.Visible = false;
MoreDetailsLink.Visible = !AC.Visible;
- freedom1029
- Lieutenant, Jr. Grade (LT JG)
- Posts: 35
- Joined: Thu Nov 01, 2007 1:40 pm
- Location: Montreal
Re: Hiding add to basket in category pages
OK I made the modification as you mentioned ans saved the files(.aspx, .cs) in my custom folder and uploaded them to my server. However if I go on my store I still see the add to basket buttons, do I have to do something in order for my store to update to my new custom files?
Thanks,
Eric
Thanks,
Eric
Re: Hiding add to basket in category pages
You have make change in actual ConLib/AddToCartLink.ascx.cs file. Do not create a copy of it under Custom folder.
- freedom1029
- Lieutenant, Jr. Grade (LT JG)
- Posts: 35
- Joined: Thu Nov 01, 2007 1:40 pm
- Location: Montreal
Re: Hiding add to basket in category pages
Ok thanks for your help, this is working perfectly. I guess if ever I update to the latest version I will have to remember to make those changes manually again.
Eric
Eric
Re: Hiding add to basket in category pages
Yes you are right.